xiaoyong931011
2022-05-18 1d05d20580e92757afeac1e8e44dd4ace41ed321
zq-erp/src/main/resources/mybatis/mapper/hive/SysVipInfoDao.xml
@@ -755,6 +755,7 @@
        <include refid="select"></include>
        <include refid="from"></include>
        where 1=1
        and (a.IS_DELETE is null or a.IS_DELETE = '')
        and
        (a.VIP_NO =#{key} or
        a.VIP_NAME =#{key} or
@@ -1386,7 +1387,7 @@
            select x.vip_id, count(1) arriveCnt from (
                                                 select vip_id, date_format(datatime, '%Y-%m-%d')
                                                 from achieve_new
                                                 where 1=1  and (a.IS_DELETE is null or a.IS_DELETE = '')
                                                 where 1=1
                                                 <!-- 本月到店次数 -->
                                                 <if test="record.sort == 'monthArrived'">
                                                     and date_format(curdate(), '%Y-%m') = date_format(datatime, '%Y-%m')
@@ -1425,7 +1426,7 @@
        </if>
        left join sys_shop_info g on a.shop_id = g.id
        left join sys_vip_level h on a.level_id=h.id
        where 1=1
        where 1=1 and (a.IS_DELETE is null or a.IS_DELETE = '')
        <if test="record.queryKey != null and record.queryKey != ''">
            and (instr(PHONE,#{record.queryKey})
                or instr(VIP_NAME ,#{record.queryKey})