From 068fde7238049565d12b39b28e02b0202264910f Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 31 八月 2023 17:29:27 +0800
Subject: [PATCH] 优化代码权限

---
 java110-db/src/main/resources/mapper/store/ResourceStoreV1ServiceDaoImplMapper.xml |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/store/ResourceStoreV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/ResourceStoreV1ServiceDaoImplMapper.xml
index 2ca5a74..791a4c0 100644
--- a/java110-db/src/main/resources/mapper/store/ResourceStoreV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/ResourceStoreV1ServiceDaoImplMapper.xml
@@ -8,10 +8,10 @@
         insert into resource_store(sh_id, description, remark, store_id, res_id, parent_rst_id, warning_stock, rss_id,
                                    res_name, rst_id, out_low_price, price, mini_unit_stock, unit_code, res_code,
                                    mini_unit_code, average_price, stock, out_high_price, show_mobile, is_fixed,
-                                   mini_stock)
+                                   mini_stock,community_id)
         values (#{shId}, #{description}, #{remark}, #{storeId}, #{resId}, #{parentRstId}, #{warningStock}, #{rssId},
                 #{resName}, #{rstId}, #{outLowPrice}, #{price}, #{miniUnitStock}, #{unitCode}, #{resCode},
-                #{miniUnitCode}, #{averagePrice}, #{stock}, #{outHighPrice}, #{showMobile}, #{isFixed}, #{miniStock})
+                #{miniUnitCode}, #{averagePrice}, #{stock}, #{outHighPrice}, #{showMobile}, #{isFixed}, #{miniStock},#{communityId})
     </insert>
 
     <!-- 鏌ヨ鐗╁搧淇℃伅淇℃伅 add by wuxw 2018-07-03 -->
@@ -40,6 +40,9 @@
         </if>
         <if test="storeId !=null and storeId != ''">
             and t.store_id= #{storeId}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
         </if>
         <if test="resId !=null and resId != ''">
             and t.res_id= #{resId}
@@ -116,9 +119,7 @@
         <if test="remark !=null and remark != ''">
             , t.remark= #{remark}
         </if>
-        <if test="storeId !=null and storeId != ''">
-            , t.store_id= #{storeId}
-        </if>
+
         <if test="parentRstId !=null and parentRstId != ''">
             , t.parent_rst_id= #{parentRstId}
         </if>
@@ -174,6 +175,12 @@
         <if test="resId !=null and resId != ''">
             and t.res_id= #{resId}
         </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
     </update>
 
     <!-- 鏌ヨ鐗╁搧淇℃伅鏁伴噺 add by wuxw 2018-07-03 -->
@@ -196,6 +203,9 @@
         <if test="storeId !=null and storeId != ''">
             and t.store_id= #{storeId}
         </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
         <if test="resId !=null and resId != ''">
             and t.res_id= #{resId}
         </if>

--
Gitblit v1.8.0