|
|
|
@ -162,8 +162,14 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper
|
|
|
|
|
// if (CollectionUtil.isEmpty(list)) {
|
|
|
|
|
// throw new ServiceException("请先添加甄别缺陷角色用户,再发起现象!");
|
|
|
|
|
// }
|
|
|
|
|
String userName; |
|
|
|
|
// 现象发起人名字
|
|
|
|
|
String userName = Optional.ofNullable(UserCache.getUser(entity.getFinder()).getName()).orElse(""); |
|
|
|
|
R<User> userR = userClient.userInfoById(entity.getFinder()); |
|
|
|
|
if (userR.isSuccess()){ |
|
|
|
|
userName = userR.getData().getName(); |
|
|
|
|
}else { |
|
|
|
|
userName=""; |
|
|
|
|
} |
|
|
|
|
// 现象发起来源
|
|
|
|
|
String sourceName = DictCache.getValue(TreatMethodConstant.SOURCE_CODE_PREFIX, entity.getSourceCode()); |
|
|
|
|
// 流程名称
|
|
|
|
|