| | |
| | | } |
| | | |
| | | if (InoutConstant.PROGRESS_CHECK.equals(data.getProgress())) { |
| | | data.setCheckUser(ContextUtil.getLoginUserCName()); |
| | | if (StringUtils.isEmpty(data.getCheckUser())) { |
| | | data.setCheckUser(ContextUtil.getLoginUserCName()); |
| | | } |
| | | data.setProgress(nextProgress); |
| | | return data; |
| | | } |
| | |
| | | } |
| | | |
| | | String loginUser = ContextUtil.getLoginUserCName(); |
| | | data.setRegisterUser(loginUser); |
| | | data.setFullWeightUser(loginUser); |
| | | data.setEmptyWeightUser(loginUser); |
| | | data.setHandleUser(loginUser); |
| | | data.setCompleteUser(loginUser); |
| | | if (StringUtils.isEmpty(data.getRegisterUser())) { |
| | | data.setRegisterUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getFullWeightUser())) { |
| | | data.setFullWeightUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getEmptyWeightUser())) { |
| | | data.setEmptyWeightUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getHandleUser())) { |
| | | data.setHandleUser(loginUser); |
| | | } |
| | | if (StringUtils.isEmpty(data.getCompleteUser())) { |
| | | data.setCompleteUser(loginUser); |
| | | } |
| | | |
| | | if (null == data.getCompleteTime()) { |
| | | data.setCompleteTime(new Date()); |
| | | } |
| | |
| | | if (null == data.getIntelCard()) { |
| | | data.setIntelCard(data.getUserId()); |
| | | } |
| | | if (null != data.getCheckItems()) { |
| | | if (null != data.getCheckItems() && StringUtils.isEmpty(data.getCheckUser())) { |
| | | data.setCheckUser(loginUser); |
| | | } |
| | | |
| | |
| | | return new PageResponse<>(RespCodeEnum.CODE_1111.getCode(), msg, data); |
| | | } |
| | | |
| | | if(null != files && files.size()>0){ |
| | | if (null != files && files.size() > 0) { |
| | | // 执行附件信息 |
| | | fileService.saveInoutFiles(files, data.getCompanyId(), data.getId(), curProgress); |
| | | } |
| | |
| | | data); |
| | | } |
| | | |
| | | if(null != files && files.size()>0){ |
| | | if (null != files && files.size() > 0) { |
| | | // 执行附件信息 |
| | | fileService.saveInoutFiles(files, data.getCompanyId(), data.getId(), curProgress); |
| | | } |
| | |
| | | curData.setCheckTime(new Date()); |
| | | data.setCheckTime(new Date()); |
| | | } |
| | | curData.setCheckUser(data.getCheckUser()); |
| | | curData.setCheckStatus(data.getCheckStatus()); |
| | | curData.setFoodYear(data.getFoodYear()); |
| | | |
| | |
| | | curData.setCheckItems(data.getCheckItems()); |
| | | curData.setCheckTime(data.getCheckTime()); |
| | | curData.setDepotId(data.getDepotId()); |
| | | curData.setFoodType(data.getFoodType()); |
| | | |
| | | if (StringUtils.isEmpty(data.getCheckUser())) { |
| | | curData.setCheckUser(ContextUtil.getLoginUserCName()); |