Browse Source

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

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

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

@ -135,10 +135,15 @@ public class EventController{
typeSmall = dictBizClient.getValue(detail.getTypeBig(),detail.getTypeSmall()).getData(); typeSmall = dictBizClient.getValue(detail.getTypeBig(),detail.getTypeSmall()).getData();
} }
String problemStatus = "待处理"; String problemStatus = "待处理";
if(StringUtil.isNotBlank(detail.getProcessInstanceId())) {
R<String> result = flowClient.queryProcessInstanceStatus(detail.getProcessInstanceId()); R<String> result = flowClient.queryProcessInstanceStatus(detail.getProcessInstanceId());
if(result.isSuccess()){ if(result.isSuccess()){
problemStatus = ProcessConstant.ProcessInstanceStatusEnum.over.name().equals(result.getData())?"已处理":"处理中"; 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());
} }
return R.data(v); return R.data(v);

Loading…
Cancel
Save