From cddcf22a61489ee9c2dfee169d817ccd66f95430 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 03 九月 2021 02:23:43 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/store/StorehouseServiceDaoImplMapper.xml | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/store/StorehouseServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/StorehouseServiceDaoImplMapper.xml
index fa00883..506a8ea 100644
--- a/java110-db/src/main/resources/mapper/store/StorehouseServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/StorehouseServiceDaoImplMapper.xml
@@ -13,7 +13,6 @@
)
</insert>
-
<!-- 鏌ヨ浠撳簱淇℃伅锛圔usiness锛� add by wuxw 2018-07-03 -->
<select id="getBusinessStorehouseInfo" parameterType="Map" resultType="Map">
select t.sh_desc,t.sh_desc shDesc,t.sh_type,t.sh_type shType,t.sh_obj_id,t.sh_obj_id
@@ -45,9 +44,7 @@
<if test="storeId !=null and storeId != ''">
and t.store_id= #{storeId}
</if>
-
</select>
-
<!-- 淇濆瓨浠撳簱淇℃伅鑷� instance琛ㄤ腑 add by wuxw 2018-07-03 -->
<insert id="saveStorehouseInfoInstance" parameterType="Map">
@@ -77,9 +74,7 @@
<if test="storeId !=null and storeId != ''">
and t.store_id= #{storeId}
</if>
-
</insert>
-
<!-- 鏌ヨ浠撳簱淇℃伅 add by wuxw 2018-07-03 -->
<select id="getStorehouseInfo" parameterType="Map" resultType="Map">
@@ -99,7 +94,7 @@
</if>
<if test="shObjIds !=null">
and t.sh_obj_id in
- <foreach collection="shObjIds" item="taskId" index="index" open="(" close=")" separator=",">
+ <foreach collection="shObjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
@@ -122,9 +117,7 @@
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
-
</select>
-
<!-- 淇敼浠撳簱淇℃伅 add by wuxw 2018-07-03 -->
<update id="updateStorehouseInfoInstance" parameterType="Map">
@@ -154,7 +147,6 @@
<if test="bId !=null and bId != ''">
and t.b_id= #{bId}
</if>
-
</update>
<!-- 鏌ヨ浠撳簱鏁伴噺 add by wuxw 2018-07-03 -->
@@ -192,8 +184,5 @@
<if test="storeId !=null and storeId != ''">
and t.store_id= #{storeId}
</if>
-
-
</select>
-
</mapper>
--
Gitblit v1.8.0