南昌市物联网技防平台-后台
zengh
2021-03-19 1f0e04ea6f31164bf2f6d0c41a9d927d0ae8748d
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/alarm/mapper/AlarmMapper.xml
@@ -36,7 +36,7 @@
    <select id="selectAlarmPage" resultMap="alarmResultMap">
        select
        a.id,a.alarmType,a.alarmPeople,a.alarmTime,a.galarmPeople,a.sex,a.phoneNumber,a.place,a.content,a.waringType,
        a.id,a.alarmType,a.alarmPeople,a.alarmTime,a.galarmPeople,a.sex,a.phoneNumber,a.place,a.content,a.waringType,a.bz,
        a.deviceNumber,a.region,a.district,
        a.alarmId,a.LEVEL,e.jd,e.wd,a.jtype,a.rname,a.jjTime,a.province,a.city,a.cid,
        e.serialNumber,e.oneContacts,e.ThreeContacts,e.twoContacts,e.onePhone,e.twoPhone,e.ThreePhone,
@@ -75,7 +75,7 @@
            and a.alarmTime&lt;=#{alarm.endTime}
        </if>
        and a.waringType NOT IN("系统测试","主机重新上电")
        and a.waringType IN("紧急求救")
        ORDER BY
        a.jtype ASC,
@@ -277,7 +277,11 @@
    <update id="updateJtype">
        update sys_alarm SET jtype=1,czTime=#{czTime},bz=#{bz} where id=#{id}
        update sys_alarm SET jtype=#{jtype},bz=#{bz},jjTime where id=#{id}
    </update>
    <update id="updatePoliceStatus">
        update jfpth.blade_user SET work_status=#{status} where id=#{id}
    </update>
    <!--查询当天警情总数-->