| | |
| | | } |
| | | |
| | | LocAroundBind binds = locAroundBindService.selectOne(new EntityWrapper<LocAroundBind>() |
| | | .eq("loc_type", LocStsType.LOC_STS_TYPE_O.type) |
| | | .eq("dev_no", basDevice.getDevNo()).orderBy("is_default", false)); |
| | | |
| | | if (Objects.isNull(binds)) { |
| | |
| | | wrkDetl.setBatch(locDel.getBatch()); |
| | | //库存数量 |
| | | wrkDetl.setStockQty(locDel.getAnfme()); |
| | | //单据数量 |
| | | wrkDetl.setRealQty(locDto.getAnfme()); |
| | | //单据数量 |
| | | wrkDetl.setAnfme(locDto.getAnfme()); |
| | | wrkDetl.setAppeTime(now); |
| | |
| | | wrkDetls.forEach(wrkDetl -> { |
| | | WrkDetl wrkDetl1 = new WrkDetl(); |
| | | BeanUtils.copyProperties(wrkDetl, wrkDetl1); |
| | | wrkDetl1.setAnfme(wrkDetl.getStockQty() - wrkDetl.getAnfme()); |
| | | wrkDetl1.setWrkNo(wokNo); |
| | | if (!wrkDetlService.insert(wrkDetl1)) { |
| | | throw new CoolException("任务档明细保存失败!!"); |