Browse Source

fix: 离线巡检任务查看详情报错问题

zhongwei
haungxing 4 months ago
parent
commit
aa19f555c6
  1. 11
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/EventController.java

11
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/EventController.java

@ -135,9 +135,14 @@ public class EventController{
typeSmall = dictBizClient.getValue(detail.getTypeBig(),detail.getTypeSmall()).getData(); typeSmall = dictBizClient.getValue(detail.getTypeBig(),detail.getTypeSmall()).getData();
} }
String problemStatus = "待处理"; String problemStatus = "待处理";
R<String> result = flowClient.queryProcessInstanceStatus(detail.getProcessInstanceId()); if(StringUtil.isNotBlank(detail.getProcessInstanceId())) {
if(result.isSuccess()){ R<String> result = flowClient.queryProcessInstanceStatus(detail.getProcessInstanceId());
problemStatus = ProcessConstant.ProcessInstanceStatusEnum.over.name().equals(result.getData())?"已处理":"处理中"; if(result.isSuccess()){
problemStatus = ProcessConstant.ProcessInstanceStatusEnum.over.name().equals(result.getData())?"已处理":"处理中";
}
}
else {
problemStatus = "-";
} }
v.setProblem(ProblemVO.builder().problemStatus(problemStatus).typeBig(typeBig).typeSmall(typeSmall).problemDetail(detail.getDescription()).build()); v.setProblem(ProblemVO.builder().problemStatus(problemStatus).typeBig(typeBig).typeSmall(typeSmall).problemDetail(detail.getDescription()).build());
} }

Loading…
Cancel
Save