From a85a8d0c33d4a821a98a0ff6789298a23a180006 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期一, 28 四月 2025 14:39:45 +0800 Subject: [PATCH] 拣货单出库完成,但是库存没减,日志埋点 --- src/main/java/com/zy/asrs/mapper/PlaMapper.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/mapper/PlaMapper.java b/src/main/java/com/zy/asrs/mapper/PlaMapper.java index 2172c72..f6c4c13 100644 --- a/src/main/java/com/zy/asrs/mapper/PlaMapper.java +++ b/src/main/java/com/zy/asrs/mapper/PlaMapper.java @@ -3,10 +3,32 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; import com.zy.asrs.entity.Pla; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; + +import java.util.Date; +import java.util.List; +import java.util.Map; @Mapper @Repository public interface PlaMapper extends BaseMapper<Pla> { + @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(@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