From a1b58ba2228050f962809573466194aaff1a6e7a Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期一, 26 四月 2021 14:41:16 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml
index 89e199c..f858177 100644
--- a/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ContractChangePlanRoomServiceDaoImplMapper.xml
@@ -18,7 +18,7 @@
<!-- 鏌ヨ鍚堝悓鎴垮眿鍙樻洿淇℃伅 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
+ 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
@@ -34,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>
@@ -62,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>
@@ -110,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