From b9e4e2edbb3767ee347a91d2238544ae736b53c0 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 22 七月 2025 10:29:27 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
---
north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml | 33 ++++++++++++++++++++++++++++++++-
1 files changed, 32 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..42b8df8 100644
--- a/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml
+++ b/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml
@@ -17,7 +17,28 @@
and m.type regexp #{materialStore.type}
</if>
</where>
+ order by m.id desc
limit #{offset},#{pageSize};
+ </select>
+
+ <select id="getSelectMaterialStores">
+ select
+ *
+ from
+ mm.material_store m
+ <where>
+ <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>
+ order by m.id desc
+ </select>
+
+ <select id="getSelectMaterialStoreById">
+ select * from mm.material_store m where id=#{id}
</select>
<select id="getSelectMaterialStorePageTotal">
@@ -30,7 +51,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 +74,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