| | |
| | | <if test="param.timeEnd != null"> |
| | | and a.create_time < #{param.timeEnd} |
| | | </if> |
| | | <if test="param.uplinkSts != null"> |
| | | AND a.uplink_sts = #{param.uplinkSts} |
| | | </if> |
| | | <if test="param.keywords != null"> |
| | | AND ( |
| | | a.memo LIKE CONCAT('%', #{param.keywords}, '%') |
| | |
| | | ) |
| | | </if> |
| | | </where> |
| | | ORDER BY FIELD(a.task_sts, 18, 17, 16, 15, 20, 19), io_time DESC |
| | | <choose> |
| | | <when test="param.orderBy != null and param.orderBy != '' "> |
| | | order by a.${param.orderBy} |
| | | </when> |
| | | <otherwise> |
| | | ORDER BY FIELD(a.task_sts, 18, 17, 16, 15, 20, 19), a.io_time DESC |
| | | </otherwise> |
| | | </choose> |
| | | </select> |
| | | |
| | | <select id="selectStatByLastSevenDays" resultType="java.util.Map"> |