From 28d2d010f0dda4c11c024d516287aeee6094548b Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Sun, 13 Dec 2020 19:04:45 +0800
Subject: [PATCH] finish daily-list-new

---
 zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml
index 361aeb2..e0e4c58 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml
+++ b/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>

--
Gitblit v1.9.1