diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/EventController.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/EventController.java index b024cde..9f6eb1b 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/EventController.java +++ b/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(); } String problemStatus = "待处理"; - R result = flowClient.queryProcessInstanceStatus(detail.getProcessInstanceId()); - if(result.isSuccess()){ - problemStatus = ProcessConstant.ProcessInstanceStatusEnum.over.name().equals(result.getData())?"已处理":"处理中"; + if(StringUtil.isNotBlank(detail.getProcessInstanceId())) { + R result = flowClient.queryProcessInstanceStatus(detail.getProcessInstanceId()); + 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()); }