| | |
| | | taskWrk.setWrkSts(1); |
| | | if (!Cools.isEmpty(param.getTargetPoint())) { |
| | | taskWrk.setTargetPoint(Utils.getWcsLocNo(param.getTargetPoint()));//终点 |
| | | wcsLocNo = taskWrk.getTargetPoint(); |
| | | taskWrk.setOriginTargetPoint(param.getTargetPoint()); |
| | | stats = "S"; |
| | | } |
| | | |
| | | } else if (param.getIoType() == 2) { |
| | |
| | | taskWrk.setMemo(param.getMemo());//备注 |
| | | } |
| | | |
| | | // 更新库位状态 |
| | | LocMast locMast = locMastService.selectByLocNo(wcsLocNo); |
| | | locMast.setLocSts(stats); |
| | | locMastService.updateById(locMast); |
| | | // 更新库位状态,入库还没分配库位,扫码之后才分配 |
| | | // if (param.getIoType() == 2 || param.getIoType() == 3) { |
| | | // try { |
| | | // LocMast locMast = locMastService.selectByLocNo(wcsLocNo); |
| | | // locMast.setLocSts(stats); |
| | | // log.info("-----入库更新库位状态为:R成功----------"+ locMast.getLocNo()); |
| | | // locMastService.updateById(locMast); |
| | | // } catch (Exception e){ |
| | | // log.error("-----出库更新库位状态为:R异常----------"+ e); |
| | | // } |
| | | // } |
| | | |
| | | if (!taskWrkService.insert(taskWrk)) { |
| | | return R.error("创建任务失败"); |