From 7ed1bcd3128514c8c9032c4e547d795d286d8be7 Mon Sep 17 00:00:00 2001
From: cl <1442464845@qq.com>
Date: 星期四, 16 四月 2026 10:58:58 +0800
Subject: [PATCH] 分组处理
---
rsf-server/src/main/resources/mapper/manager/LocMapper.xml | 33 ++++++++++++++++++++++++++++++++-
1 files changed, 32 insertions(+), 1 deletions(-)
diff --git a/rsf-server/src/main/resources/mapper/manager/LocMapper.xml b/rsf-server/src/main/resources/mapper/manager/LocMapper.xml
index 330516c..6d7246a 100644
--- a/rsf-server/src/main/resources/mapper/manager/LocMapper.xml
+++ b/rsf-server/src/main/resources/mapper/manager/LocMapper.xml
@@ -10,10 +10,41 @@
FROM
man_loc l
INNER JOIN man_loc_item loi ON l.id = loi.loc_id
+ WHERE l.deleted = 0
GROUP BY
use_status
</select>
<select id="getLocDetls" resultType="com.vincent.rsf.server.manager.controller.dto.LocStockDto">
-
+ SELECT
+ li.loc_code,
+ li.loc_id,
+ l.barcode,
+ li.matnr_code AS matnr,
+ li.matnr_id,
+ li.maktx,
+ li.spec,
+ li.batch,
+ SUM(li.anfme) AS anfme,
+ li.splr_id,
+ li.unit,
+ l.update_time
+ FROM
+ man_loc l
+ LEFT JOIN man_loc_item li ON l.id = li.loc_id
+ WHERE l.deleted = 0 and li.deleted=0
+ GROUP BY
+ li.loc_code,
+ li.loc_id,
+ l.barcode,
+ li.matnr_code,
+ li.matnr_id,
+ li.maktx,
+ li.spec,
+ li.batch,
+ li.splr_id,
+ li.unit,
+ l.update_time
+ ORDER BY
+ l.update_time DESC
</select>
</mapper>
--
Gitblit v1.9.1