yangys
2025-08-11 b5b668d2728665ca05d15be8862ceb0a2796fc67
blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/service/ProgramFlowStatusQueryService.java
@@ -31,14 +31,14 @@
   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()