mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-29 22:56:40 +08:00
fix 修复任务,流程实例分页模糊查询失效
This commit is contained in:
parent
11643253a0
commit
4d63888080
@ -5,6 +5,7 @@ import jakarta.servlet.ServletOutputStream;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.dromara.common.core.utils.StreamUtils;
|
||||
import org.dromara.common.core.utils.StringUtils;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.tenant.helper.TenantHelper;
|
||||
@ -94,7 +95,7 @@ public class ActProcessInstanceServiceImpl implements IActProcessInstanceService
|
||||
.orderByProcessInstanceEndTime().desc();
|
||||
query.processInstanceTenantId(TenantHelper.getTenantId());
|
||||
if (StringUtils.isNotEmpty(processInstanceBo.getName())) {
|
||||
query.processInstanceNameLike(processInstanceBo.getName());
|
||||
query.processInstanceNameLikeIgnoreCase("%" + processInstanceBo.getName() + "%");
|
||||
}
|
||||
if (StringUtils.isNotEmpty(processInstanceBo.getStartUserId())) {
|
||||
query.startedBy(processInstanceBo.getStartUserId());
|
||||
@ -160,7 +161,7 @@ public class ActProcessInstanceServiceImpl implements IActProcessInstanceService
|
||||
}
|
||||
List<String> highLightedNodeList = new ArrayList<>();
|
||||
//运行中的节点
|
||||
List<String> redNodeCollect = highLightedNodes.stream().filter(e -> e.contains(Color.RED.toString())).toList();
|
||||
List<String> redNodeCollect = StreamUtils.filter(highLightedNodes, e -> e.contains(Color.RED.toString()));
|
||||
//排除与运行中相同的节点
|
||||
for (String nodeId : highLightedNodes) {
|
||||
if (!nodeId.contains(Color.RED.toString()) && !redNodeCollect.contains(Color.RED + nodeId)) {
|
||||
|
@ -138,7 +138,7 @@ public class ActTaskServiceImpl implements IActTaskService {
|
||||
query.taskCandidateGroupIn(groupIds);
|
||||
}
|
||||
if (StringUtils.isNotBlank(taskBo.getName())) {
|
||||
query.taskNameLike(taskBo.getName());
|
||||
query.taskNameLike("%" + taskBo.getName() + "%");
|
||||
}
|
||||
List<Task> taskList = query.listPage(taskBo.getPageNum(), taskBo.getPageSize());
|
||||
List<TaskVo> list = new ArrayList<>();
|
||||
@ -160,7 +160,7 @@ public class ActTaskServiceImpl implements IActTaskService {
|
||||
HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery()
|
||||
.taskAssignee(userId).taskTenantId(TenantHelper.getTenantId()).finished().orderByHistoricTaskInstanceStartTime().asc();
|
||||
if (StringUtils.isNotBlank(taskBo.getName())) {
|
||||
query.taskNameLike(taskBo.getName());
|
||||
query.taskNameLike("%" + taskBo.getName() + "%");
|
||||
}
|
||||
List<HistoricTaskInstance> taskInstanceList = query.listPage(taskBo.getPageNum(), taskBo.getPageSize());
|
||||
List<TaskVo> list = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user