guoshilong
2024-01-30 daa265cc5e19fe20352ab43100fdfeed06d568a0
预警列表降序排序
1 files modified
5 ■■■■■ changed files
skjcmanager/skjcmanager-service/skjcmanager-nky/src/main/java/cn/gistack/nky/mapper/AlarmGetMapper.xml 5 ●●●●● patch | view | raw | blame | history
skjcmanager/skjcmanager-service/skjcmanager-nky/src/main/java/cn/gistack/nky/mapper/AlarmGetMapper.xml
@@ -64,10 +64,10 @@
        LEFT JOIN SJZT_MD."att_cd_base" acb ON acb."res_cd" = NAG.DAM_ID AND NAG.POINT_ID = acb."cd"
        WHERE 1=1 and NAG.level != 5
        <if test="vo.startTime != null and vo.startTime != ''">
            AND DATE_FORMAT(NAG.time,'%Y-%m-%d')  &gt;= #{vo.startTime}
            AND NAG.time  &gt;= #{vo.startTime}
        </if>
        <if test="vo.endTime != null and vo.endTime !='' ">
            AND DATE_FORMAT(NAG.time,'%Y-%m-%d') &lt;= #{vo.endTime}
            AND NAG.time &lt;= #{vo.endTime}
        </if>
        <if test="vo.level != null and vo.level !='' ">
            AND NAG.level = #{vo.level}
@@ -98,6 +98,7 @@
        <if test="vo.cdName != null and vo.cdName !='' and vo.type == 3">
            AND awcb."cd_nm" LIKE CONCAT('%',#{vo.cdName},'%')
        </if>
        order by time desc
    </select>
    <select id="getAlarmVo" resultType="cn.gistack.nky.vo.AlarmGetVO">