| | |
| | | |
| | | private final ApproveRecordService approveRecordService; |
| | | private final HistoryService historyService; |
| | | public int queryFlowStatus(Long ncPogramId) { |
| | | public int queryFlowStatus(String processInstanceId) { |
| | | |
| | | List<ApproveRecord> records = approveRecordService.lambdaQuery().eq(ApproveRecord::getNcProgramId, ncPogramId).orderByDesc(ApproveRecord::getCreateTime).last("limit 1").list(); |
| | | //List<ApproveRecord> records = approveRecordService.lambdaQuery().eq(ApproveRecord::getNcProgramId, ncPogramId).orderByDesc(ApproveRecord::getCreateTime).last("limit 1").list(); |
| | | |
| | | if(records.isEmpty()){ |
| | | if(processInstanceId == null){ |
| | | return 0; |
| | | } |
| | | String processInstanceId = records.get(0).getProcessInstanceId(); |
| | | //String processInstanceId = records.get(0).getProcessInstanceId(); |
| | | |
| | | int status = 0; |
| | | HistoricProcessInstance historicProcessInstance = historyService.createHistoricProcessInstanceQuery() |