xieb
2023-11-20 f7076ec465035a342e1b0750c737a5a6089e2001
大坝安全监控预警列表
1 files modified
9 ■■■■■ changed files
skjcmanager/skjcmanager-service/skjcmanager-nky/src/main/java/cn/gistack/nky/mapper/AlarmGetMapper.xml 9 ●●●●● patch | view | raw | blame | history
skjcmanager/skjcmanager-service/skjcmanager-nky/src/main/java/cn/gistack/nky/mapper/AlarmGetMapper.xml
@@ -88,16 +88,17 @@
        <if test="vo.pointId != null and vo.pointId !='' ">
            AND NAG.POINT_id = #{vo.pointId}
        </if>
        <if test="vo.cdName != null and vo.cdName !='' and vo.tpe != 3">
        <if test="vo.cdName != null and vo.cdName !='' and vo.type != 3">
            AND acb."cd_nm" LIKE CONCAT('%',#{vo.cdName},'%')
        </if>
        <if test="vo.cdName != null and vo.cdName !='' and vo.tpe == 3">
            AND awcb."cd_nm" LIKE CONCAT('%',#{vo.cdName},'%')
        </if>
        AND NAG.dam_id =  #{vo.damId}
        ORDER BY NAG."TIME" DESC
        )temp
        LEFT JOIN SJZT_MD."att_wy_cd_base" awcb ON awcb."res_cd" =   temp.DAM_ID AND temp.POINT_ID = awcb."cd"
        WHERE 1=1
        <if test="vo.cdName != null and vo.cdName !='' and vo.type == 3">
            AND awcb."cd_nm" LIKE CONCAT('%',#{vo.cdName},'%')
        </if>