Browse Source

修复消缺代码bug

zhongwei
tyty 1 year ago
parent
commit
56c76f7a37
  1. 8
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java

8
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java

@ -162,8 +162,14 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper
// if (CollectionUtil.isEmpty(list)) { // if (CollectionUtil.isEmpty(list)) {
// throw new ServiceException("请先添加甄别缺陷角色用户,再发起现象!"); // 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()); String sourceName = DictCache.getValue(TreatMethodConstant.SOURCE_CODE_PREFIX, entity.getSourceCode());
// 流程名称 // 流程名称

Loading…
Cancel
Save