潘志宝
2025-03-24 285dd1aff222671e9ff243731183795f7c511d1d
iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StScheduleSchemeDao.xml
@@ -8,12 +8,13 @@
        t.title,
        t.content,
        t.time,
        t.obj
        t.obj,
        t.status
        from (
                 select 'alarm' type, t1.title, t1.content, t1.alarm_time `time`, t1.alarm_obj obj
                 select 'alarm' type, t1.title, t1.content, t1.alarm_time `time`, t1.alarm_obj obj,0 status
                 from t_mm_predict_alarm_message t1
                 UNION
                 select 'suggest' type, t2.title, t2.content, t2.schedule_time `time`, t2.schedule_obj obj
                 select 'suggest' type, t2.title, t2.content, t2.schedule_time `time`, t2.schedule_obj obj,t2.status
                 from t_st_schedule_suggest t2
        ) t
        <where>
@@ -29,6 +30,12 @@
            <if test="params.endTime != null">
                and t.time &lt;= #{params.endTime}
            </if>
            <if test="params.objList != null">
                and t.obj in
                <foreach collection="params.objList" item="item" open="(" close=")" separator=",">
                    #{item}
                </foreach>
            </if>
        </where>
        order by t.time desc