From c7ec9c28226d597db7113cd2cc203a085791eb00 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 21 二月 2024 14:54:48 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/store/ComplaintTypeV1ServiceDaoImplMapper.xml |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/store/ComplaintTypeV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ComplaintTypeV1ServiceDaoImplMapper.xml
index 05ed27b..0952a40 100644
--- a/java110-db/src/main/resources/mapper/store/ComplaintTypeV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ComplaintTypeV1ServiceDaoImplMapper.xml
@@ -19,7 +19,7 @@
     <select id="getComplaintTypeInfo" parameterType="Map" resultType="Map">
         select t.type_cd,t.type_cd typeCd,t.type_name,t.type_name typeName,t.notify_way,t.notify_way
         notifyWay,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id
-        communityId,t.appraise_reply,t.appraise_reply appraiseReply
+        communityId,t.appraise_reply,t.appraise_reply appraiseReply,t.create_time createTime
         from complaint_type t
         where 1 =1
         <if test="typeCd !=null and typeCd != ''">
@@ -66,9 +66,7 @@
         <if test="remark !=null and remark != ''">
             , t.remark= #{remark}
         </if>
-        <if test="communityId !=null and communityId != ''">
-            , t.community_id= #{communityId}
-        </if>
+
         <if test="appraiseReply !=null and appraiseReply != ''">
             , t.appraise_reply= #{appraiseReply}
         </if>
@@ -76,6 +74,9 @@
         <if test="typeCd !=null and typeCd != ''">
             and t.type_cd= #{typeCd}
         </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
 
     </update>
 

--
Gitblit v1.8.0