| | |
| | | if(Objects.isNull(platformWmsJob)){ |
| | | continue; |
| | | } |
| | | SystemDictData systemDictData = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.IN_REPERTOTY_CODE); |
| | | SystemDictData systemDictData = systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.IN_REPERTOTY_CODE); |
| | | if(Objects.nonNull(systemDictData)){ |
| | | //判断放置位置 |
| | | if(platformWmsDetailMapper.selectCount(new QueryWrapper<PlatformWmsDetail>().lambda().eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO) |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void jobUrge(Integer jobId,LoginUserInfo loginUserInfo){ |
| | | if(Objects.isNull(jobId)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | PlatformJob platformJob = platformJobMapper.selectById(jobId); |
| | | if(Objects.isNull(platformJob)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(!(Constants.equalsInteger(platformJob.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey()) |
| | | || Constants.equalsInteger(platformJob.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey()) |
| | | || Constants.equalsInteger(platformJob.getStatus(),Constants.PlatformJobStatus.TRANSFERING.getKey()))){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,状态已流转"); |
| | | } |
| | | |
| | | platformJobMapper.update(null,new UpdateWrapper<PlatformJob>().lambda() |
| | | .set(PlatformJob::getUrgeUser,loginUserInfo.getId()) |
| | | .set(PlatformJob::getUrgeTime,DateUtil.getCurrDateTime()) |
| | | .set(PlatformJob::getEditDate,DateUtil.getCurrDateTime()) |
| | | .eq(PlatformJob::getId,platformJob.getId()) |
| | | ); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |