包头待催办筛选
This commit is contained in:
parent
9cca6352f9
commit
132d2f544f
@ -433,7 +433,6 @@ public class ProcessInstanceServiceImpl implements ProcessInstanceService {
|
||||
instanceQuery.processInstanceTenantId(TenantContextHolder.getTenantId());
|
||||
Executor.builder()
|
||||
//customStatus 1待催办2已办结(只有PASS)
|
||||
.ifNotBlankNext(Objects.equals(customStatus, 1) ? "PRE_%" : null, instanceQuery::processInstanceBusinessStatusLike)
|
||||
.ifNotBlankNext(Objects.equals(customStatus, 2) ? ProcessStatus.PASS.toString() : null, instanceQuery::processInstanceBusinessStatus)
|
||||
.ifNotBlankNext(startUser, instanceQuery::startedBy)
|
||||
.ifNotBlankNext(code, instanceQuery::processDefinitionKey)
|
||||
@ -452,6 +451,9 @@ public class ProcessInstanceServiceImpl implements ProcessInstanceService {
|
||||
instanceQuery.variableValueLike(fieldId, "%" + fieldVal + "%");
|
||||
}
|
||||
});
|
||||
if (Objects.equals(customStatus, 1)) {
|
||||
instanceQuery.or().processInstanceBusinessStatusLike("PRE_%").unfinished().endOr();
|
||||
}
|
||||
List<HistoricProcessInstance> historicProcessInstances = new ArrayList<>();
|
||||
if (StringUtils.isNotBlank(key)) {
|
||||
historicProcessInstances = instanceQuery
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user