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/community/ResourceStoreServiceDaoImplBakMapper.xml |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/community/ResourceStoreServiceDaoImplBakMapper.xml b/java110-db/src/main/resources/mapper/community/ResourceStoreServiceDaoImplBakMapper.xml
index ebc0445..15bf552 100644
--- a/java110-db/src/main/resources/mapper/community/ResourceStoreServiceDaoImplBakMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/ResourceStoreServiceDaoImplBakMapper.xml
@@ -9,7 +9,8 @@
         select t.res_id resId,t.rst_id rstId,t.store_id storeId,t.res_name resName,t.res_code resCode,rst.name rstName,
         t.unit_code unitCode,t.remark,t.out_low_price outLowPrice,t.out_high_price outHighPrice,
         t.show_mobile showMobile,t.description,t.price,t.stock,t.create_time createTime,t.sh_id shId,
-        t.rss_id rssId,rss.spec_name rssName
+        t.rss_id rssId,rss.spec_name rssName,t.mini_unit_code,t.mini_unit_code miniUnitCode,
+        t.mini_unit_stock,t.mini_unit_stock miniUnitStock,t.mini_stock,t.mini_stock miniStock
         from resource_store t
         left join resource_store_type rst on rst.rst_id = t.rst_id and rst.status_cd = '0'
         left join resource_store_specification rss on rss.rss_id = t.rss_id and rss.status_cd = '0'
@@ -58,6 +59,15 @@
         </if>
         <if test="shId !=null and shId != ''">
             and t.sh_id= #{shId}
+        </if>
+        <if test="miniUnitCode !=null and miniUnitCode != ''">
+            and t.mini_unit_code= #{miniUnitCode}
+        </if>
+        <if test="miniUnitStock !=null and miniUnitStock != ''">
+            and t.mini_unit_stock= #{miniUnitStock}
+        </if>
+        <if test="miniStock !=null and miniStock != ''">
+            and t.mini_stock= #{miniStock}
         </if>
         <if test="createTime !=null and createTime != ''">
             and t.create_time= #{createTime}
@@ -114,6 +124,15 @@
         <if test="shId !=null and shId != ''">
             and t.sh_id= #{shId}
         </if>
+        <if test="miniUnitCode !=null and miniUnitCode != ''">
+            and t.mini_unit_code= #{miniUnitCode}
+        </if>
+        <if test="miniUnitStock !=null and miniUnitStock != ''">
+            and t.mini_unit_stock= #{miniUnitStock}
+        </if>
+        <if test="miniStock !=null and miniStock != ''">
+            and t.mini_stock= #{miniStock}
+        </if>
         <if test="createTime !=null and createTime != ''">
             and t.create_time= #{createTime}
         </if>

--
Gitblit v1.8.0