From e0c9131696c8ba61037c36f8c85e5bb67d5d9d81 Mon Sep 17 00:00:00 2001
From: duckweed <duckweed_lzy@aliyun.com>
Date: 星期二, 08 十月 2019 22:05:39 +0800
Subject: [PATCH] 修复拜访时间显示问题

---
 java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml
index e923afc..8600e17 100644
--- a/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/visit/VisitServiceDaoImplMapper.xml
@@ -7,9 +7,9 @@
     <!-- 淇濆瓨璁垮淇℃伅淇℃伅 add by wuxw 2018-07-03 -->
     <insert id="saveBusinessVisitInfo" parameterType="Map">
         insert into business_visit_info(
-        departure_time,v_name,visit_gender,owner_id,user_id,v_id,visit_time,phone_number,operate,visit_case,community_id,b_id
+        departure_time,v_name,visit_gender,owner_id,user_id,v_id,phone_number,operate,visit_case,community_id,b_id,visit_time
         ) values (
-        #{departureTime},#{vName},#{visitGender},#{ownerId},#{userId},#{vId},NOW(),#{phoneNumber},#{operate},#{visitCase},#{communityId},#{bId}
+        #{departureTime},#{vName},#{visitGender},#{ownerId},#{userId},#{vId},#{phoneNumber},#{operate},#{visitCase},#{communityId},#{bId},#{visitTime}
         )
     </insert>
 
@@ -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