From d9aab59e3d4c8688eaf00c0d98f6926a218ff57f Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期一, 28 四月 2025 15:28:11 +0800 Subject: [PATCH] 拣货单出库完成,但是库存没减,日志埋点 --- src/main/java/com/zy/asrs/mapper/PlaMapper.java | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/mapper/PlaMapper.java b/src/main/java/com/zy/asrs/mapper/PlaMapper.java index eb64e27..f6c4c13 100644 --- a/src/main/java/com/zy/asrs/mapper/PlaMapper.java +++ b/src/main/java/com/zy/asrs/mapper/PlaMapper.java @@ -7,6 +7,7 @@ import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; +import java.util.Date; import java.util.List; import java.util.Map; @@ -17,10 +18,17 @@ @Select("select brand, matnr,workshop, sum(weight_anfme) as weight from asr_pla_detl where brand = #{brand} GROUP BY brand,matnr,workshop ORDER BY matnr,workshop") List<Pla> getStockStatisAllByBrand(@Param("brand") String brand); - @Select("select brand, matnr,workshop , sum(weight_anfme) as weight from asr_pla_detl GROUP BY brand,matnr,workshop ORDER BY matnr,workshop desc") - List<Pla> getStockStatisAll(); +// @Select("select brand, matnr,workshop , sum(weight_anfme) as weight from asr_pla_detl GROUP BY brand,matnr,workshop ORDER BY matnr,workshop desc") + List<Pla> getStockStatisAll(@Param("brand") String brand,@Param("status") String status,@Param("stime") Date stime, @Param("etime") Date etime, + @Param("type") String type,@Param("workshop") String workshop,@Param("transfer") String transfer); Integer getStockStatisCountAll(Map<String, Object> map); + /** + * 鑷姩瑙e喕鍐荤粨鏃堕棿瓒呰繃90澶╃殑搴撳瓨 + * @return 鏇存柊鏁伴噺 + */ + int autoThaw(); + } -- Gitblit v1.9.1