dongyukun
2025-01-24 ae3258f8191e911c697249476747d016a75922c5
iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StScheduleSchemeDao.xml
@@ -18,13 +18,28 @@
        ) t
        <where>
            <if test="params.obj != null and params.obj != ''">
                and t.obj = #{obj}
                and t.obj = #{params.obj}
            </if>
            <if test="params.startTime != null and params.startTime != ''">
                and t.time &gt;= #{startTime}
            <if test="params.type != null and params.type != ''">
                and t.type = #{params.type}
            </if>
            <if test="params.endTime != null and params.endTime != ''">
                and t.time &lt;= #{endTime}
            <if test="params.objs != null and !params.objs.isEmpty()">
                and t.obj in
                <foreach item="obj" collection="params.objs" open="(" separator="," close=")">
                    #{obj}
                </foreach>
            </if>
            <if test="params.startTime != null">
                and t.time &gt;= #{params.startTime}
            </if>
            <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