|
|
|
@ -39,16 +39,7 @@ public class MroServiceImpl implements MroService {
|
|
|
|
|
.in(CollUtil.isNotEmpty(caseProcessReqVO.getAnalysisStatus()), ModelCase::getCaseAnalysisStatus, caseProcessReqVO.getAnalysisStatus())
|
|
|
|
|
.orderBy(true, StrUtil.equalsIgnoreCase(caseProcessReqVO.getSort(), "desc"), ModelCase::getCaseAnalysisSuccessTime)
|
|
|
|
|
.page(Page.of(page, size));
|
|
|
|
|
|
|
|
|
|
final Set<String> processCaseIds = new HashSet<>();
|
|
|
|
|
if (!paged.getRecords().isEmpty()){
|
|
|
|
|
caseRecordService.queryProcessingTaskList().stream().map(TaskCaseRecord::getCaseId).forEach(processCaseIds::add);
|
|
|
|
|
}
|
|
|
|
|
return paged.convert(r->{
|
|
|
|
|
CaseProcessDTO caseProcessDTO = new CaseProcessDTO(r);
|
|
|
|
|
caseProcessDTO.setEnableAnalyse(processCaseIds.contains(r.getId()) ? "0" : "1");
|
|
|
|
|
return caseProcessDTO;
|
|
|
|
|
});
|
|
|
|
|
return paged.convert(CaseProcessDTO::new);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|