From 2494e3538d2ca2003f250b3f75283a9444442068 Mon Sep 17 00:00:00 2001 From: huliguo <2023611923@qq.com> Date: 星期一, 18 八月 2025 14:28:35 +0800 Subject: [PATCH] 增加导出条件 --- guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TaskDetailMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TaskDetailMapper.xml b/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TaskDetailMapper.xml index 976464a..8f9a604 100644 --- a/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TaskDetailMapper.xml +++ b/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TaskDetailMapper.xml @@ -90,6 +90,7 @@ <select id="getDownloadTaskRecord" resultType="map"> select + c.id, c.`name`, if(c.type = 1, '定时任务', '实时任务') as taskType, DATE_FORMAT(b.execution_time, '%Y-%m-%d %H:%i:%s') as executionTime, @@ -128,6 +129,18 @@ <if test="null != sysStatus"> and d.sys_status = #{sysStatus} </if> + <if test="null != type"> + and c.type = #{type} + </if> + <if test="null != typeName and '' != typeName"> + and c.name like CONCAT('%', #{typeName}, '%') + </if> + <if test="startTime != null"> + and b.execution_time >= #{startTime} + </if> + <if test="endTime != null"> + and b.execution_time < #{endTime} + </if> order by b.execution_time desc </select> </mapper> \ No newline at end of file -- Gitblit v1.7.1