| | |
| | | private void executeTask1(Task task) {
|
| | | Long hostId = task.getHostId();
|
| | | //fixme 暂时关闭HOSTID
|
| | | // Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()).eq(Loc::getHostId, hostId));
|
| | | Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()));
|
| | | Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()).eq(Loc::getHostId, hostId));
|
| | | // Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()));
|
| | | if (loc == null) {
|
| | | log.info("库位不存在" + "=======>" + task.getTargetLoc());
|
| | | throw new CoolException("库位不存在");
|
| | |
| | | for (WaitPakin waitPakin : waitPakins) {
|
| | | WaitPakinLog waitPakinLog = new WaitPakinLog();
|
| | | waitPakinLog.sync(waitPakin);
|
| | | waitPakinLog.setId(null);
|
| | | if (!waitPakinLogService.save(waitPakinLog)) {
|
| | | throw new CoolException("组托通知档转历史档失败");
|
| | | }
|