自动化立体仓库 - WMS系统
#
LSH
2023-12-07 d497d66f3cfb2a2d0672c499b3a19d006548aa2a
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -61,8 +61,8 @@
    private WaitPakinService waitPakinService;
    @Autowired
    private CommonService commonService;
//    @Autowired
//    private LocDetlRullUpDetailService locDetlRullUpDetailService;
    @Autowired
    private LocDetlRullUpDetailService locDetlRullUpDetailService;
    @Override
    @Transactional
@@ -764,13 +764,14 @@
            waitPakin.setModiUser(userId);
            waitPakin.setModiTime(now);
            waitPakin.setRollUp(rollUp);
//            if (!Cools.isEmpty(matList.getMatDetlList())){
//                for (PalletizingCompleteParam.MatDetlList matDetlList:matList.getMatDetlList()){
//                    LocDetlRullUpDetail locDetlRullUpDetail = new LocDetlRullUpDetail();
//                    locDetlRullUpDetail.setUuid(rollUp);
//                    locDetlRullUpDetail.setWrkNo(matDetlList.getBoxNoDetl());
//                }
//            }
            if (!Cools.isEmpty(matList.getMatDetlList())){
                for (PalletizingCompleteParam.MatDetlList matDetlList:matList.getMatDetlList()){
                    LocDetlRullUpDetail locDetlRullUpDetail = new LocDetlRullUpDetail();
                    locDetlRullUpDetail.setUuid(rollUp);
                    locDetlRullUpDetail.setRollNo(matDetlList.getBoxNoDetl());
                    locDetlRullUpDetail.setRollWeight(matDetlList.getWeightDetl().toString());
                }
            }
            if (!waitPakinService.insert(waitPakin)) {
                throw new CoolException("保存入库通知档失败");
            }