huliguo
4 天以前 2494e3538d2ca2003f250b3f75283a9444442068
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 &lt; #{endTime}
      </if>
      order by b.execution_time desc
   </select>
</mapper>