wzy
2020-12-13 28d2d010f0dda4c11c024d516287aeee6094548b
zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml
@@ -113,8 +113,20 @@
            <if test="(record.endTime!=null  )">
               and a.datatime <![CDATA[ < ]]> #{record.endTime}
            </if>
            <if test="record.beaultId != null and record.beaultId !='' ">
               and   a.beault_id = #{record.beaultId}
            </if>
            <if test="record.companyId != null and record.companyId !='' ">
               and   a.company_id = #{record.companyId}
            </if>
            <if test="record.beaultId != null and record.beaultId !='' ">
               and   a.beault_id = #{record.beaultId}
            </if>
            <if test="record.vipQueryKey != null and record.vipQueryKey != ''  ">
               and c.VIP_NAME like concat('%',#{record.vipQueryKey},'%')
               or (c.VIP_NO like concat('%',#{record.vipQueryKey},'%')
               or c.PHONE like concat('%',#{record.vipQueryKey},'%')
               )
            </if>
         </if>
      </where>
@@ -169,6 +181,15 @@
            <if test="record.companyId != null and record.companyId !='' ">
               and   a.company_id = #{record.companyId}
            </if>
            <if test="record.beaultId != null and record.beaultId !='' ">
               and   a.beault_id = #{record.beaultId}
            </if>
            <if test="record.vipQueryKey != null and record.vipQueryKey != ''  ">
               and c.VIP_NAME like concat('%',#{record.vipQueryKey},'%')
               or (c.VIP_NO like concat('%',#{record.vipQueryKey},'%')
               or c.PHONE like concat('%',#{record.vipQueryKey},'%')
               )
            </if>
         </if>
      </where>
   </select>