From 157e6e40348f7605761460bbcf56d3aba9c0c022 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 24 三月 2022 13:25:52 +0800
Subject: [PATCH] #杰克缝纫机立库 【手动修改订单】 - 1
---
src/main/resources/mapper/LocDetlMapper.xml | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index bbc4c50..b438b09 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -106,24 +106,32 @@
</select>
<select id="selectPakoutByRule" resultMap="BaseResultMap">
- select * from asr_loc_detl
+ select a.* from asr_loc_detl a left join asr_loc_mast b on a.loc_no = b.loc_no
where 1=1
- and matnr = #{matnr}
+ and b.loc_sts = 'F'
+ and a.matnr = #{matnr}
order by
- DATEPART(yyyy,modi_time),DATEPART(mm,modi_time),DATEPART(dd,modi_time)
+ DATEPART(yyyy,a.modi_time),DATEPART(mm,a.modi_time),DATEPART(dd,a.modi_time)
desc,
case
- when (left(loc_no, 2) = '01') then 0
- when (left(loc_no, 2) = '02') then 1
- when (left(loc_no, 2) = '03') then 1
- when (left(loc_no, 2) = '04') then 0
- when (left(loc_no, 2) = '05') then 0
- when (left(loc_no, 2) = '06') then 1
- when (left(loc_no, 2) = '07') then 1
- when (left(loc_no, 2) = '08') then 0
+ when (left(a.loc_no, 2) = '01') then 0
+ when (left(a.loc_no, 2) = '02') then 1
+ when (left(a.loc_no, 2) = '03') then 1
+ when (left(a.loc_no, 2) = '04') then 0
+ when (left(a.loc_no, 2) = '05') then 0
+ when (left(a.loc_no, 2) = '06') then 1
+ when (left(a.loc_no, 2) = '07') then 1
+ when (left(a.loc_no, 2) = '08') then 0
else 0
end
desc
</select>
+ <select id="getAsrsLocDetl" resultMap="BaseResultMap">
+ select a.* from asr_loc_detl a left join asr_loc_mast b on a.loc_no = b.loc_no where a.matnr = #{matnr} and b.loc_sts = 'F'
+ </select>
+
+ <select id="countLocNoNum" resultType="integer">
+ select count(*) from asr_loc_detl where loc_no = #{loc_no}
+ </select>
</mapper>
--
Gitblit v1.9.1