无关风月
2025-06-26 69b10ab2a3e171e6f30091ee54d8957cf4987809
ruoyi-system/src/main/resources/mapper/system/TEarlyWarningMapper.xml
@@ -18,5 +18,18 @@
    <sql id="Base_Column_List">
        id, create_time, update_time, create_by, update_by, disabled, warning_type, task_id
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.vo.system.TaskWarningVO">
        select t1.*  from t_early_warning t1
        where 1=1
        <if test="query.taskIds != null and query.taskIds.size() > 0">
            <foreach collection="query.taskIds" item="taskId" separator=" OR " open="AND (" close=")">
                FIND_IN_SET(#{taskId}, t1.task_id)
            </foreach>
        </if>
        <if test="query.startTime != null and startTime != ''">
            and (t1.create_time between #{startTime} and #{endTime})
        </if>
        and t1.`disabled` = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
    </select>
</mapper>