#
vincentlu
12 小时以前 c65a357fc8b907af755e1ef6a2c201e31eb71e94
zy-acs-manager/src/main/resources/mapper/manager/TaskMapper.xml
@@ -50,6 +50,9 @@
            <if test="param.timeEnd != null">
                and a.create_time &lt; #{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}, '%')
@@ -57,7 +60,14 @@
                )
            </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">