自动化立体仓库 - WMS系统
dubin
2025-12-19 b00eeab31bd13ba34a03301aa441b0751d6a93e4
src/main/java/com/zy/asrs/mapper/LocDetlMapper.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.LocDetl;
import com.zy.asrs.entity.LocDetlWarningDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@@ -19,8 +20,8 @@
    Integer getStockOutPageCount(Map<String, Object> map);
    @Update("update asr_loc_detl set qty=#{qty}, modi_time = getDate() where loc_no = #{locNo} and mat_no = #{matNo}")
    int updateAnfme(Double qty, String locNo, String matNo);
    @Update("update asr_loc_detl set qty=#{qty}, modi_time = getDate(),all_weight=#{weight},all_qty=#{allQty} where loc_no = #{locNo} and mat_no = #{matNo}")
    int updateAnfme(Double qty, String locNo, String matNo,Double weight,Double allQty);
    @Update("update asr_loc_detl set loc_no = #{newLocNo}, modi_time=getDate() where loc_no = #{oldLocNo}")
    int updateLocNo(String newLocNo, String oldLocNo);
@@ -37,7 +38,7 @@
    Integer getStockStatisCount(Map<String, Object> condition);
    List<LocDetl> getStockStatisExcel();
    List<LocDetl> getStockStatisExcel(LocDetl locDetl);
    /**
     * 库存上报ERP时,根据物料汇总查询库存总量
@@ -45,4 +46,13 @@
     */
    @Select("select mat_no,mat_name,sum(qty) qty from asr_loc_detl group by mat_no,mat_name")
    List<LocDetl> getStockSum();
    List<LocDetlWarningDTO> selectAllWarning(LocDetlWarningDTO locDetlWarningDTO);
    int getAllWarningCount(LocDetlWarningDTO locDetlWarningDTO);
    List<LocDetl> selectByZpallet(String barcode);
    @Update("update asr_loc_detl set zpallet = #{tBarcode}, modi_time=getDate() where zpallet = #{sBarcode}")
    int updateZpallet(String sBarcode, String tBarcode,String batch);
}