| | |
| | | create_by, |
| | | id, |
| | | vip_id, |
| | | label |
| | | label, |
| | | shop_id, |
| | | company_id, |
| | | is_all, |
| | | user_id, |
| | | color |
| | | ) values ( |
| | | #{createTime}, |
| | | #{createBy}, |
| | | #{id}, |
| | | #{vipId}, |
| | | #{label} |
| | | #{label}, |
| | | #{shopId}, |
| | | #{companyId}, |
| | | #{isAll}, |
| | | #{userId}, |
| | | #{color} |
| | | ) |
| | | </insert> |
| | | |
| | | <update id="update"> |
| | | update sys_vip_label |
| | | <set> |
| | | <if test="label != null and label !='' "> |
| | | label = #{label}, |
| | | </if> |
| | | <if test="color != null and color !='' "> |
| | | color = #{color}, |
| | | </if> |
| | | </set> |
| | | WHERE ID=#{id} |
| | | </update> |
| | | |
| | | <delete id="deleteById"> |
| | | delete from sys_vip_label |
| | |
| | | </if> |
| | | </if> |
| | | </select> |
| | | |
| | | <delete id="deleteByVipId"> |
| | | delete from sys_vip_label |
| | | where vip_id=#{vipId} |
| | | </delete> |
| | | </mapper> |