From d2b36a334c1a60b7b35e0eb3a9edd6988d49628d Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 19 七月 2025 15:34:15 +0800
Subject: [PATCH] no message
---
rsf-server/src/main/resources/mapper/manager/LocItemMapper.xml | 30 +++++++++++++++++++++++++++++-
1 files changed, 29 insertions(+), 1 deletions(-)
diff --git a/rsf-server/src/main/resources/mapper/manager/LocItemMapper.xml b/rsf-server/src/main/resources/mapper/manager/LocItemMapper.xml
index 90ad348..bc18949 100644
--- a/rsf-server/src/main/resources/mapper/manager/LocItemMapper.xml
+++ b/rsf-server/src/main/resources/mapper/manager/LocItemMapper.xml
@@ -1,5 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vincent.rsf.server.manager.mapper.LocItemMapper">
-
+ <select id="listByMatnr" resultType="com.vincent.rsf.server.manager.entity.LocItem">
+ SELECT
+ *
+ FROM
+ (
+ SELECT
+ li.id,
+ li.loc_id,
+ li.loc_code,
+ l.barcode,
+ li.matnr_id,
+ li.matnr_code,
+ li.maktx,
+ li.batch,
+ li.unit,
+ SUM( li.anfme ) anfme,
+ li.fields_index
+ FROM
+ man_loc_item li
+ INNER JOIN man_loc l ON l.id = li.loc_id
+ WHERE l.use_status = #{type}
+ GROUP BY
+ loc_id,
+ matnr_id,
+ batch,
+ fields_index
+ )t
+ ${ew.customSqlSegment}
+ </select>
</mapper>
--
Gitblit v1.9.1