试一试

This commit is contained in:
wangliwen 2022-05-26 19:17:24 +08:00
parent c49d8ed1ba
commit 68ea4d03a0
1 changed files with 3 additions and 0 deletions

View File

@ -210,6 +210,9 @@ public class ActHistoryService {
query.startedBy((String) params.get("startBy")); query.startedBy((String) params.get("startBy"));
} }
query.orderByProcessInstanceStartTime().desc(); query.orderByProcessInstanceStartTime().desc();
if (params.containsKey("name")) {
query = query.variableValueLike("name", params.get("name").toString());
}
List<HistoricProcessInstance> list = query.listPage((curPage - 1) * limit, limit); List<HistoricProcessInstance> list = query.listPage((curPage - 1) * limit, limit);
List<ProcessInstanceDTO> listInstance = new ArrayList<>(); List<ProcessInstanceDTO> listInstance = new ArrayList<>();
if (!list.isEmpty()) { if (!list.isEmpty()) {