From 78185a4e60ba99cb619df880b511e1b888b8ee26 Mon Sep 17 00:00:00 2001
From: cl <1442464845@qq.com>
Date: 星期四, 16 四月 2026 13:38:03 +0800
Subject: [PATCH] deleted
---
rsf-server/src/main/resources/mapper/manager/LocMapper.xml | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/rsf-server/src/main/resources/mapper/manager/LocMapper.xml b/rsf-server/src/main/resources/mapper/manager/LocMapper.xml
index 88ef7cd..a70b2d7 100644
--- a/rsf-server/src/main/resources/mapper/manager/LocMapper.xml
+++ b/rsf-server/src/main/resources/mapper/manager/LocMapper.xml
@@ -10,7 +10,7 @@
FROM
man_loc l
INNER JOIN man_loc_item loi ON l.id = loi.loc_id
- WHERE l.deleted = 0
+ WHERE l.deleted = 0 AND loi.deleted = 0
GROUP BY
use_status
</select>
@@ -24,18 +24,26 @@
li.maktx,
li.spec,
li.batch,
- SUM( li.anfme ) anfme,
+ 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
+ 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.batch
+ li.maktx,
+ li.spec,
+ li.batch,
+ li.splr_id,
+ li.unit,
+ l.update_time
ORDER BY
l.update_time DESC
</select>
--
Gitblit v1.9.1