From 89e99d6ffd85964552cccfc908d6432fbed9bd12 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 08 十月 2019 19:26:10 +0800
Subject: [PATCH] 优化访客登记功能
---
java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml
index 9bfb93f..064bf3c 100644
--- a/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml
@@ -22,7 +22,7 @@
visitCase,t.community_id,t.community_id communityId,t.b_id,t.b_id bId
from business_visit_info t
where 1 =1
- <if test="departureTime !=null and departureTime != ''">
+ <if test="departureTime !=null ">
and t.departure_time= #{departureTime}
</if>
<if test="vName !=null and vName != ''">
@@ -40,7 +40,7 @@
<if test="vId !=null and vId != ''">
and t.v_id= #{vId}
</if>
- <if test="visitTime !=null and visitTime != ''">
+ <if test="visitTime !=null ">
and t.visit_time= #{visitTime}
</if>
<if test="phoneNumber !=null and phoneNumber != ''">
@@ -69,7 +69,7 @@
) select
t.departure_time,t.v_name,'0',t.visit_gender,t.owner_id,t.user_id,t.v_id,t.visit_time,t.phone_number,t.visit_case,t.community_id,t.b_id
from business_visit_info t where 1=1
- <if test="departureTime !=null and departureTime != ''">
+ <if test="departureTime !=null ">
and t.departure_time= #{departureTime}
</if>
<if test="vName !=null and vName != ''">
@@ -87,7 +87,7 @@
<if test="vId !=null and vId != ''">
and t.v_id= #{vId}
</if>
- <if test="visitTime !=null and visitTime != ''">
+ <if test="visitTime !=null ">
and t.visit_time= #{visitTime}
</if>
<if test="phoneNumber !=null and phoneNumber != ''">
@@ -115,7 +115,7 @@
phoneNumber,t.visit_case,t.visit_case visitCase,t.community_id,t.community_id communityId,t.b_id,t.b_id bId
from s_visit_info t
where 1 =1
- <if test="departureTime !=null and departureTime != ''">
+ <if test="departureTime !=null ">
and t.departure_time= #{departureTime}
</if>
<if test="vName !=null and vName != ''">
@@ -136,7 +136,7 @@
<if test="vId !=null and vId != ''">
and t.v_id= #{vId}
</if>
- <if test="visitTime !=null and visitTime != ''">
+ <if test="visitTime !=null ">
and t.visit_time= #{visitTime}
</if>
<if test="phoneNumber !=null and phoneNumber != ''">
@@ -164,7 +164,7 @@
<if test="newBId != null and newBId != ''">
,t.b_id = #{newBId}
</if>
- <if test="departureTime !=null and departureTime != ''">
+ <if test="departureTime !=null ">
, t.departure_time= #{departureTime}
</if>
<if test="vName !=null and vName != ''">
@@ -179,7 +179,7 @@
<if test="userId !=null and userId != ''">
, t.user_id= #{userId}
</if>
- <if test="visitTime !=null and visitTime != ''">
+ <if test="visitTime !=null ">
, t.visit_time= #{visitTime}
</if>
<if test="phoneNumber !=null and phoneNumber != ''">
@@ -206,7 +206,7 @@
select count(1) count
from s_visit_info t
where 1 =1
- <if test="departureTime !=null and departureTime != ''">
+ <if test="departureTime !=null ">
and t.departure_time= #{departureTime}
</if>
<if test="vName !=null and vName != ''">
@@ -227,7 +227,7 @@
<if test="vId !=null and vId != ''">
and t.v_id= #{vId}
</if>
- <if test="visitTime !=null and visitTime != ''">
+ <if test="visitTime !=null ">
and t.visit_time= #{visitTime}
</if>
<if test="phoneNumber !=null and phoneNumber != ''">
--
Gitblit v1.8.0