| | |
| | | if (Objects.isNull(params.getDevice())) { |
| | | throw new CoolException("设备号不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getSuperTaskNo())) { |
| | | if (Objects.isNull(params.getWrkNo())) { |
| | | throw new CoolException("WMS任务号不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getMsgType())) { |
| | | throw new CoolException("动作类型不能为空!!"); |
| | | } |
| | | WrkMast mast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", params.getSuperTaskNo())); |
| | | WrkMast mast = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", params.getWrkNo())); |
| | | if (Objects.isNull(mast)) { |
| | | throw new CoolException("任务档不存在!!"); |
| | | } |
| | | if (!Objects.isNull(params.getMsgType()) && params.getMsgType().equals("task")) { |
| | | throw new CoolException("消息不能为空!!"); |
| | | } |
| | | //任务 |
| | | if (params.getMsgType().equals("task_complete")) { |
| | | mast.setWrkSts(4L); |
| | | if (!wrkMastService.updateById(mast)) { |
| | | throw new CoolException("任务状态修改失败!!"); |
| | | } |
| | | } else if (params.getMsgType().equals("task_cancel")){ |
| | | |
| | | if (params.getMsgType().equals("task_complete")) { |
| | | mast.setWrkSts(4L); |
| | | if (!wrkMastService.updateById(mast)) { |
| | | throw new CoolException("任务状态修改失败!!"); |
| | | } |
| | | } else if (params.getMsgType().equals("task_cancel")){ |
| | | } else if (Objects.isNull(params.getMsgType()) && params.getMsgType().equals("weight")) { |
| | | //称重 |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // if (!wrkMastService.updateById(mast)) { |
| | | // throw new CoolException("任务状态修改失败!!"); |
| | | // } |