From f81300462deff06ab6c90b24ecb9f0ba5031a766 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 22 Jan 2021 11:23:52 +0800 Subject: [PATCH] modify --- zq-erp/src/main/resources/mybatis/mapper/hive/SysVipLabelDao.xml | 32 ++++++++++++++++++++++++++++++-- 1 files changed, 30 insertions(+), 2 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipLabelDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipLabelDao.xml index aa566df..b71cf45 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipLabelDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysVipLabelDao.xml @@ -10,15 +10,38 @@ 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 @@ -44,4 +67,9 @@ </if> </if> </select> + + <delete id="deleteByVipId"> + delete from sys_vip_label + where vip_id=#{vipId} + </delete> </mapper> \ No newline at end of file -- Gitblit v1.9.1