From b85a2ab202e1da68ca1e532a783dc0f5685dad3b Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 22 八月 2024 23:43:40 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override
---
north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml | 16 +++++++++++++++-
1 files changed, 15 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..51ffa8c 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>
@@ -51,6 +57,14 @@
delete from mm.material_store where id=#{id}
</delete>
+ <select id="selectMaterialStore" >
+ select count(*) from mm.material_inventory where material_code=#{id}
+ </select>
+
+ <select id="selectMaterialStoreJson" >
+ select count(*) from mm.material_store where json=#{json}
+ </select>
+
--
Gitblit v1.8.0