|
|
@ -163,6 +163,16 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper |
|
|
|
// if (CollectionUtil.isEmpty(list)) {
|
|
|
|
// if (CollectionUtil.isEmpty(list)) {
|
|
|
|
// throw new ServiceException("请先添加甄别缺陷角色用户,再发起现象!");
|
|
|
|
// throw new ServiceException("请先添加甄别缺陷角色用户,再发起现象!");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
//新增缺陷流程记录
|
|
|
|
|
|
|
|
OperDefectStatisticsEntity operDefectStatisticsEntity = new OperDefectStatisticsEntity(); |
|
|
|
|
|
|
|
BeanUtil.copy(entity, operDefectStatisticsEntity); |
|
|
|
|
|
|
|
statisticsService.save(operDefectStatisticsEntity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//新增现象记录
|
|
|
|
|
|
|
|
OperAppearanceEntity operAppearanceEntity = new OperAppearanceEntity(); |
|
|
|
|
|
|
|
BeanUtil.copy(entity, operAppearanceEntity); |
|
|
|
|
|
|
|
operAppearanceService.save(operAppearanceEntity); |
|
|
|
|
|
|
|
|
|
|
|
// 现象发起人名字
|
|
|
|
// 现象发起人名字
|
|
|
|
String userName = Optional.ofNullable(UserCache.getUser(entity.getFinder()).getName()).orElse(""); |
|
|
|
String userName = Optional.ofNullable(UserCache.getUser(entity.getFinder()).getName()).orElse(""); |
|
|
|
// 现象发起来源
|
|
|
|
// 现象发起来源
|
|
|
@ -180,15 +190,9 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper |
|
|
|
} |
|
|
|
} |
|
|
|
// 关联流程唯一键
|
|
|
|
// 关联流程唯一键
|
|
|
|
entity.setCheckProcessInstanceId(result.getData().getProcessInstanceId()); |
|
|
|
entity.setCheckProcessInstanceId(result.getData().getProcessInstanceId()); |
|
|
|
|
|
|
|
operDefectStatisticsEntity.setCheckProcessInstanceId(result.getData().getProcessInstanceId()); |
|
|
|
this.baseMapper.updateById(entity); |
|
|
|
this.baseMapper.updateById(entity); |
|
|
|
//新增缺陷流程记录
|
|
|
|
statisticsService.updateById(operDefectStatisticsEntity); |
|
|
|
OperDefectStatisticsEntity operDefectStatisticsEntity = new OperDefectStatisticsEntity(); |
|
|
|
|
|
|
|
BeanUtil.copy(entity, operDefectStatisticsEntity); |
|
|
|
|
|
|
|
statisticsService.save(operDefectStatisticsEntity); |
|
|
|
|
|
|
|
//新增现象记录
|
|
|
|
|
|
|
|
OperAppearanceEntity operAppearanceEntity = new OperAppearanceEntity(); |
|
|
|
|
|
|
|
BeanUtil.copy(entity, operAppearanceEntity); |
|
|
|
|
|
|
|
operAppearanceService.save(operAppearanceEntity); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|