|
@@ -288,9 +288,6 @@ public class PreparationServiceImpl extends BaseServiceImpl<PreparationMapper, P
|
|
|
statusList.add(PreparationStatusEnum.FIRST_PROCESSING_VERIFYING.getValue());
|
|
|
statusList.add(PreparationStatusEnum.SECOND_PROCESSING_VERIFYING.getValue());
|
|
|
} else if (record.getSearchType() == 3) { // 我的工单
|
|
|
- statusList.add(PreparationStatusEnum.NOT_ALLOCATED.getValue());
|
|
|
- statusList.add(PreparationStatusEnum.PROCESSING.getValue());
|
|
|
- statusList.add(PreparationStatusEnum.FINISHED.getValue());
|
|
|
}
|
|
|
// 超级管理员可以看到各个状态下的所有数据 相关领导,可以在这里进行设置
|
|
|
if (userInfo.getSuperAdmin() == 1 || record.getSearchType() == -1) {
|
|
@@ -429,10 +426,6 @@ public class PreparationServiceImpl extends BaseServiceImpl<PreparationMapper, P
|
|
|
updPre.setRepairEndTime(LocalDateTime.now());
|
|
|
updPre.setRepairMinutes(DateUtils.getDurationHours(preparation.getRepairStartTime(), updPre.getRepairEndTime()));
|
|
|
updPre.setStatus(PreparationStatusEnum.SECOND_PROCESSING_VERIFYING.getValue());
|
|
|
- updPre.setFee(model.getFee());
|
|
|
- // 保存文件图片
|
|
|
- sysFileService.saveFile(model.getId(), SysFileTypeEnum.PREPARATION_APPLICATION_IMGS.getValue(), model.getImageList());
|
|
|
- sysFileService.saveFile(model.getId(), SysFileTypeEnum.PREPARATION_APPLICATION_FILES.getValue(), model.getFileList());
|
|
|
mapper.updateByPrimaryKeySelective(updPre);
|
|
|
}
|
|
|
|
|
@@ -715,6 +708,33 @@ public class PreparationServiceImpl extends BaseServiceImpl<PreparationMapper, P
|
|
|
sendMessageToApplyLeader(sendUsers, updPre);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void fillFee(PreparationDTO model) {
|
|
|
+ Preparation preparation = mapper.selectByPrimaryKey(model.getId());
|
|
|
+ String currentUserId = SecurityUtils.getUserInfo().getUserId();
|
|
|
+ if (!currentUserId.equals(preparation.getRepairUserId())) {
|
|
|
+ throw new DeniedException("不是该工单执行人,不可以填报费用");
|
|
|
+ }
|
|
|
+ Preparation updPre = new Preparation();
|
|
|
+ updPre.setId(model.getId());
|
|
|
+ updPre.setStatus(PreparationStatusEnum.FIRST_PROCESSING_VERIFYING.getValue());
|
|
|
+ updPre.setFee(model.getFee());
|
|
|
+ // 保存文件图片
|
|
|
+ sysFileService.saveFile(model.getId(), SysFileTypeEnum.PREPARATION_APPLICATION_IMGS.getValue(), model.getImageList());
|
|
|
+ sysFileService.saveFile(model.getId(), SysFileTypeEnum.PREPARATION_APPLICATION_FILES.getValue(), model.getFileList());
|
|
|
+ mapper.updateByPrimaryKeySelective(updPre);
|
|
|
+ // 添加状态记录
|
|
|
+ addRecord(updPre,PreparationRecordTypeEnum.FLOW.getValue(), "");
|
|
|
+ // 添加审核记录
|
|
|
+ addRecord(updPre,PreparationRecordTypeEnum.VERIFY.getValue(), "同意");
|
|
|
+ // 给申请人发消息
|
|
|
+ SysUserDTO sendDTO = new SysUserDTO();
|
|
|
+ sendDTO.setUserId(preparation.getUserId());
|
|
|
+ List<SysUserVO> sendUsers = sysUserMapper.getSysUserVO(sendDTO);
|
|
|
+ updPre.setNo(preparation.getNo());
|
|
|
+ sendMessageToApplyLeader(sendUsers, updPre);
|
|
|
+ }
|
|
|
+
|
|
|
private String getParentPositionId(String positionId) {
|
|
|
SbPosition sbPosition = sbPositionMapper.selectByPrimaryKey(positionId);
|
|
|
while (!StringUtils.isEmpty(sbPosition.getParentId())) {
|