From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能

---
 java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml
index 6a68974..f858177 100644
--- a/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml
@@ -17,8 +17,9 @@
 
     <!-- 鏌ヨ鍚堝悓鎴垮眿鍙樻洿淇℃伅 add by wuxw 2018-07-03 -->
     <select id="getContractChangePlanRoomInfo" parameterType="Map" resultType="Map">
-        select t.owner_name,t.owner_name ownerName,t.contract_id,t.contract_id contractId,t.pr_id,t.pr_id prId,t.plan_id,t.plan_id planId,t.status_cd,t.status_cd statusCd,t.owner_id,t.owner_id
-        ownerId,t.store_id,t.store_id storeId,t.room_id,t.room_id roomId,t.room_name,t.room_name roomName
+        select t.owner_name,t.owner_name ownerName,t.contract_id,t.contract_id contractId,t.pr_id,t.pr_id prId,t.plan_id,
+        t.plan_id planId,t.owner_id,t.owner_id
+        ownerId,t.store_id,t.store_id storeId,t.room_id,t.room_id roomId,t.room_name,t.room_name roomName,t.operate
         from contract_change_plan_room t
         where 1 =1
         <if test="ownerName !=null and ownerName != ''">
@@ -33,9 +34,7 @@
         <if test="planId !=null and planId != ''">
             and t.plan_id= #{planId}
         </if>
-        <if test="statusCd !=null and statusCd != ''">
-            and t.status_cd= #{statusCd}
-        </if>
+
         <if test="ownerId !=null and ownerId != ''">
             and t.owner_id= #{ownerId}
         </if>
@@ -48,6 +47,9 @@
         <if test="roomName !=null and roomName != ''">
             and t.room_name= #{roomName}
         </if>
+        <if test="operate !=null and operate != ''">
+            and t.operate= #{operate}
+        </if>
         order by t.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
@@ -58,7 +60,7 @@
 
     <!-- 淇敼鍚堝悓鎴垮眿鍙樻洿淇℃伅 add by wuxw 2018-07-03 -->
     <update id="updateContractChangePlanRoomInfo" parameterType="Map">
-        update contract_change_plan_room t set t.status_cd = #{statusCd}
+        update contract_change_plan_room t set t.operator = #{operator}
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
         </if>
@@ -106,9 +108,6 @@
         </if>
         <if test="planId !=null and planId != ''">
             and t.plan_id= #{planId}
-        </if>
-        <if test="statusCd !=null and statusCd != ''">
-            and t.status_cd= #{statusCd}
         </if>
         <if test="ownerId !=null and ownerId != ''">
             and t.owner_id= #{ownerId}

--
Gitblit v1.8.0