自动化立体仓库 - WMS系统
LSH
2023-09-17 94b1cdb1943346c055be5d8c14046d9af390b97e
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -592,21 +592,28 @@
        LabellerMatParam labellerMatParam = new LabellerMatParam();
        labellerMatParam.setDevNo(param.getDevNo());
        labellerMatParam.setLabNo(param.getLabNo());
        ArrayList<LabellerMatParam.CombMat> combMats = new ArrayList<>();
        String orderNo = "";
//        ArrayList<LabellerMatParam.CombMat> combMats = new ArrayList<>();
        ArrayList<LabellerMatParam.BoxNo> boxNos = new ArrayList<>();
//        String orderNo = "";
        for (WrkDetl wrkDetl:wrkDetls){
            LabellerMatParam.CombMat combMat = new LabellerMatParam.CombMat(wrkDetl);
            orderNo=wrkDetl.getOrderNo();
            combMat.setTemp1("1");
            combMats.add(combMat);
            LabellerMatParam.BoxNo boxNo = new LabellerMatParam.BoxNo();
            boxNo.setBoxNo(wrkDetl.getBatch());
            boxNos.add(boxNo);
        }
        labellerMatParam.setBoxNos(boxNos);
//        for (WrkDetl wrkDetl:wrkDetls){
//            LabellerMatParam.CombMat combMat = new LabellerMatParam.CombMat(wrkDetl);
//            orderNo=wrkDetl.getOrderNo();
//            combMat.setTemp1("1");
//            combMats.add(combMat);
//        }
        labellerMatParam.setCombMats(combMats);
        labellerMatParam.setLabellingTime(DateUtils.convert(new Date()));
//        labellerMatParam.setCombMats(combMats);
//        labellerMatParam.setLabellingTime(DateUtils.convert(new Date()));
        labellerMatParam.setWrkNo(basDevp.getWrkNo().toString());
        labellerMatParam.setLabTemplate("1");
        labellerMatParam.setOrderNo(orderNo);
//        labellerMatParam.setLabTemplate("1");
//        labellerMatParam.setOrderNo(orderNo);
        wrkMast.setWrkSts(53L);
        if (!wrkMastService.updateById(wrkMast)){
            throw new CoolException("异常,请重新申请");
@@ -900,12 +907,10 @@
    @Override
    @Transactional
    public void cs1(String barcode) {
        WrkMast wrkMast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("io_type", 201));
        int workNo = commonService.getWorkNo(WorkNoType.getWorkNoType(201));
        wrkMast.setWrkNo(workNo);
        wrkMast.setBarcode(barcode);
        wrkMast.setWrkSts(42L);
        wrkMastService.insert(wrkMast);
        BasDevp basDevp = basDevpService.selectById(216);
        basDevp.setWrkNo(9992);
        basDevp.setBarcode(barcode);
        basDevpService.updateById(basDevp);
    }
    /*
@@ -914,7 +919,10 @@
    @Override
    @Transactional
    public void cs2() {
        BasDevp basDevp = basDevpService.selectById(216);
        basDevp.setWrkNo(0);
        basDevp.setBarcode("");
        basDevpService.updateById(basDevp);
    }
    /*