From 045c46e4891afefd6d1d9d8988f1416eacd3de1b Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 25 三月 2022 14:44:49 +0800 Subject: [PATCH] #杰克缝纫机立库 【根据单号检索单据数据】 优化 --- src/main/java/com/zy/asrs/mapper/LocDetlMapper.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/mapper/LocDetlMapper.java b/src/main/java/com/zy/asrs/mapper/LocDetlMapper.java index a789797..44e3627 100644 --- a/src/main/java/com/zy/asrs/mapper/LocDetlMapper.java +++ b/src/main/java/com/zy/asrs/mapper/LocDetlMapper.java @@ -34,7 +34,7 @@ List<LocDetl> getStockStatisExcel(); - @Select("select sum(anfme) as sum from asr_loc_detl where matnr = #{matnr}") + @Select("select sum(a.anfme) as sum from asr_loc_detl a left join asr_loc_mast b on a.loc_no = b.loc_no where b.loc_sts = 'F' and a.matnr = #{matnr}") Double selectSumAnfmeByMatnr(@Param("matnr") String matnr); List<LocDetl> selectPakoutByRule(String matnr); -- Gitblit v1.9.1