From 65763d38cf9b6b8067a293d9c99297efea0de3e3 Mon Sep 17 00:00:00 2001
From: 928255095 <928255095@qq.com>
Date: 星期二, 07 九月 2021 22:04:15 +0800
Subject: [PATCH] Merge branch 'xinghong-dev' into 'master'

---
 java110-db/src/main/resources/mapper/community/RoomRenovationRecordServiceDaoImplMapper.xml |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/RoomRenovationRecordServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/RoomRenovationRecordServiceDaoImplMapper.xml
index 01ca275..e061fb8 100755
--- a/java110-db/src/main/resources/mapper/community/RoomRenovationRecordServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/RoomRenovationRecordServiceDaoImplMapper.xml
@@ -6,7 +6,7 @@
 
     <!-- 淇濆瓨瑁呬慨璁板綍淇℃伅 add by wuxw 2018-07-03 -->
     <insert id="saveRoomRenovationRecordInfo" parameterType="Map">
-        insert into room_renovation_record(record_id,r_id,staff_id,staff_name,state,remark,create_time) values (#{recordId},#{rId},#{staffId},#{staffName},#{state},#{remark},#{createTime})
+        insert into room_renovation_record(record_id,r_id,staff_id,staff_name,state,remark,create_time,is_true) values (#{recordId},#{rId},#{staffId},#{staffName},#{state},#{remark},#{createTime},#{isTrue})
     </insert>
 
     <!-- 鏌ヨ瑁呬慨璁板綍淇℃伅(涓庢枃浠惰〃鍏宠仈) -->
@@ -18,6 +18,7 @@
         re.staff_name staffName,
         re.remark,
         re.state,
+        re.is_true isTrue,
         td. NAME stateName,
         re.create_time createTime,
         r.room_id roomId,
@@ -61,6 +62,9 @@
         </if>
         <if test="statusCd != null and statusCd != ''">
             and re.status_cd = #{statusCd}
+        </if>
+        <if test="isTrue != null and isTrue != ''">
+            and re.is_true = #{isTrue}
         </if>
         <if test="createTime !=null and createTime != ''">
             and re.create_time= #{createTime}
@@ -107,6 +111,9 @@
         <if test="statusCd != null and statusCd != ''">
             and re.status_cd = #{statusCd}
         </if>
+        <if test="isTrue != null and isTrue != ''">
+            and re.is_true = #{isTrue}
+        </if>
         <if test="createTime !=null and createTime != ''">
             and re.create_time= #{createTime}
         </if>
@@ -121,7 +128,9 @@
         re.staff_name staffName,
         re.remark,
         re.state,
-        td. NAME stateName,
+        td.name stateName,
+        re.is_true isTrue,
+        td2.name isTrueName,
         re.create_time createTime,
         r.room_id roomId,
         r.room_name roomName
@@ -132,6 +141,8 @@
         LEFT JOIN t_dict td ON td.table_name = 'room_renovation_record'
         AND td.table_columns = 'state'
         AND re.state = td.status_cd
+        LEFT JOIN t_dict td2 ON td2.table_name = 'room_renovation_record'
+        AND td2.table_columns = 'is_true' AND re.is_true = td2.status_cd
         WHERE 1 = 1
         <if test="recordId !=null and recordId != ''">
             and re.record_id= #{recordId}
@@ -159,6 +170,9 @@
         </if>
         <if test="statusCd != null and statusCd != ''">
             and re.status_cd = #{statusCd}
+        </if>
+        <if test="isTrue != null and isTrue != ''">
+            and re.is_true = #{isTrue}
         </if>
         <if test="createTime !=null and createTime != ''">
             and re.create_time= #{createTime}
@@ -203,6 +217,9 @@
         <if test="statusCd != null and statusCd != ''">
             and re.status_cd = #{statusCd}
         </if>
+        <if test="isTrue != null and isTrue != ''">
+            and re.is_true = #{isTrue}
+        </if>
         <if test="createTime !=null and createTime != ''">
             and re.create_time= #{createTime}
         </if>

--
Gitblit v1.8.0