From ee4dc5d6c9d3bc8ae8e704f93fa6b233e8b42e8f Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期五, 31 五月 2024 11:49:55 +0800
Subject: [PATCH] 首页分成两张表格

---
 north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml b/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml
index 4911316..1c3214b 100644
--- a/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml
+++ b/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml
@@ -20,6 +20,10 @@
         limit #{offset},#{pageSize};
     </select>
 
+    <select id="getSelectMaterialStoreById">
+        select * from mm.material_store m where id=#{id}
+    </select>
+
     <select id="getSelectMaterialStorePageTotal">
         select
         CEILING(count(id)/#{pageSize}) as 'pageTotal',
@@ -30,7 +34,9 @@
             <if test="materialStore.id != null and materialStore.id != ''">
                 and m.id regexp #{materialStore.id}
             </if>
-
+            <if test="materialStore.type != null and materialStore.type != ''">
+                and m.type regexp #{materialStore.type}
+            </if>
         </where>
         limit #{offset},#{pageSize};
     </select>

--
Gitblit v1.8.0