| | |
| | | wrkMast.setIoType(1); // 入出库状态:1.入库 |
| | | wrkMast.setIoPri(13D); // 优先级 |
| | | wrkMast.setCrnNo(dto.getCrnNo()); |
| | | wrkMast.setOutMost(locMastService.isOutMost(dto.getLocNo())?1:0);; |
| | | wrkMast.setOutMost(locMastService.isOutMost(dto.getLocNo(), true)?1:0);; |
| | | wrkMast.setSourceStaNo(dto.getSourceStaNo()); |
| | | wrkMast.setStaNo(dto.getStaNo()); |
| | | wrkMast.setLocNo(dto.getLocNo()); |
| | |
| | | wrkMast.setWrkSts(2L); // 工作状态:生成入库ID |
| | | wrkMast.setIoType(10); // 入出库状态:10.空板入库 |
| | | wrkMast.setIoPri(13D); // 优先级 |
| | | wrkMast.setOutMost(locMastService.isOutMost(dto.getLocNo())?1:0);; |
| | | wrkMast.setOutMost(locMastService.isOutMost(dto.getLocNo(), true)?1:0);; |
| | | wrkMast.setCrnNo(dto.getCrnNo()); |
| | | wrkMast.setSourceStaNo(dto.getSourceStaNo()); |
| | | wrkMast.setStaNo(dto.getStaNo()); |
| | |
| | | wrkMast.setEmptyMk("Y"); // 空板 |
| | | wrkMast.setLinkMis("Y"); |
| | | wrkMast.setBarcode(barcode); |
| | | // wrkMast.setSteNo(findSte(wrkMast.getLocNo())); |
| | | wrkMast.setCtnType(sourceStaNo.getCtnType()); // 容器类型 |
| | | // 操作人员数据 |
| | | wrkMast.setAppeTime(new Date()); |
| | |
| | | return dto; |
| | | } |
| | | |
| | | /** |
| | | * 非通用性代码,只适用于边锋项目 |
| | | * @param locNo |
| | | * @return |
| | | */ |
| | | private Integer findSte(String locNo) { |
| | | int i = Integer.parseInt(locNo.substring(0, 2)); |
| | | if (i >= 1 && i <= 7){ |
| | | return 1; |
| | | } else if (i >= 8 && i <= 14) { |
| | | return 2; |
| | | }else { |
| | | return 3; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |