From 6db03250bcbf51193b8dd71a698ea2b202c6d6ad Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 26 十二月 2025 15:59:20 +0800
Subject: [PATCH] 班组产量汇总报表,客户名称不能重复创建显示
---
north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 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 6125485..de24da0 100644
--- a/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml
+++ b/north-glass-erp/src/main/resources/mapper/mm/MaterialStore.xml
@@ -6,6 +6,42 @@
<select id="getSelectMaterialStore">
select
+ m.id,m.type,m.json,m.create_time,bb.consume,bb.type as bomType,bb.price
+ from
+ mm.material_store m
+ left join sd.bom_base as bb on bb.material_id=m.id
+ <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
+ limit #{offset},#{pageSize};
+ </select>
+
+ <select id="getSelectProductBOM">
+ select
+ m.id,m.type,m.json,m.create_time,bb.consume,bb.type as bomType,bb.price,bb.id as tabId
+ from
+ sd.bom_base as bb
+ left join mm.material_store m on bb.material_id=m.id
+ <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
+ limit #{offset},#{pageSize};
+ </select>
+
+ <select id="getSelectMaterialStores">
+ select
*
from
mm.material_store m
@@ -18,7 +54,6 @@
</if>
</where>
order by m.id desc
- limit #{offset},#{pageSize};
</select>
<select id="getSelectMaterialStoreById">
--
Gitblit v1.8.0