Commit 0a257632 authored by tangwei's avatar tangwei

增加工作流驳回状态,备注

parent 29036e3a
...@@ -393,15 +393,25 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD ...@@ -393,15 +393,25 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
} }
if(!StringUtils.isEmpty(processInstanceId)){ if(!StringUtils.isEmpty(processInstanceId)){
try {
Map<String, Object> flowLoggerMap = workflowFeignClient.getFlowLogger(processInstanceId).getResult(); Map<String, Object> flowLoggerMap = workflowFeignClient.getFlowLogger(processInstanceId).getResult();
List<LinkedHashMap> flowLogger = (List<LinkedHashMap>) flowLoggerMap.get("flowLogger"); List<LinkedHashMap> flowLogger = (List<LinkedHashMap>) flowLoggerMap.get("flowLogger");
flowLogger = flowLogger.stream().map(i -> { flowLogger = flowLogger.stream().map(i -> {
i.put("approvalStatue",i.get("approvalStatus").toString()); i.put("approvalStatue",i.get("approvalStatue").toString().equals("0")?"通过":"驳回");
//审核意见
List<LinkedHashMap> approvalSuggestion = (List<LinkedHashMap>)i.get("approvalSuggestion");
if(approvalSuggestion!=null&&!approvalSuggestion.isEmpty()){
i.put("approvalSuggestion",approvalSuggestion.get(0).get("message"));
}
return i; return i;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
LoggerDto loggerDto =new LoggerDto(); LoggerDto loggerDto =new LoggerDto();
loggerDto.setLogger(flowLogger); loggerDto.setLogger(flowLogger);
surveyInfoAllDto.setOrderTracking(loggerDto); surveyInfoAllDto.setOrderTracking(loggerDto);
} catch (Exception e){
e.printStackTrace();
}
} }
return surveyInfoAllDto; return surveyInfoAllDto;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment