refactor(系统设置): 任务列表增加去重

This commit is contained in:
wxg0103 2024-03-25 19:49:51 +08:00 committed by 刘瑞斌
parent 8aa2335e7f
commit a1be3a7366
3 changed files with 4 additions and 2 deletions

View File

@ -140,7 +140,7 @@
<select id="taskCenterlist" resultType="io.metersphere.system.dto.taskcenter.TaskCenterDTO"> <select id="taskCenterlist" resultType="io.metersphere.system.dto.taskcenter.TaskCenterDTO">
SELECT SELECT
api_report.id, distinct api_report.id,
api_report.project_id, api_report.project_id,
api_report.integrated, api_report.integrated,
api_report.STATUS, api_report.STATUS,

View File

@ -140,7 +140,7 @@
<select id="taskCenterlist" resultType="io.metersphere.system.dto.taskcenter.TaskCenterDTO"> <select id="taskCenterlist" resultType="io.metersphere.system.dto.taskcenter.TaskCenterDTO">
select select
api_scenario_report.id, distinct api_scenario_report.id,
api_scenario_report.project_id, api_scenario_report.project_id,
api_scenario_report.integrated, api_scenario_report.integrated,
api_scenario_report.status, api_scenario_report.status,

View File

@ -49,6 +49,8 @@
<if test="request.keyword != null and request.keyword != ''"> <if test="request.keyword != null and request.keyword != ''">
and ( and (
task.resource_name like concat('%', #{request.keyword},'%') task.resource_name like concat('%', #{request.keyword},'%')
or
task.resource_id like concat('%', #{request.keyword},'%')
) )
</if> </if>
<include refid="taskCenterScheduleFilters"> <include refid="taskCenterScheduleFilters">