| | |
| | | content=#{content},waringType=#{waringType},deviceNumber=#{deviceNumber},region=#{region},addvcd=#{addvcd},alarmId=#{alarmId},level=#{level},rname=#{rname},jd=#{jd},wd=#{wd},coordinate=POINT(#{jd},#{wd}),jtype=#{jtype} where id=#{id} |
| | | </update> |
| | | |
| | | |
| | | <select id="selectScount" resultType="java.util.HashMap"> |
| | | SELECT COUNT(*) as cou,waringType FROM `sys_alarm` WHERE alarmTime like concat(concat('%', #{time}), '%') GROUP BY waringType |
| | | </select> |
| | | |
| | | |
| | | <select id="selectListSe" resultMap="alarmResultMap"> |
| | | SELECT |
| | | a.id, |
| | | a.alarmType, |
| | | a.alarmPeople, |
| | | a.alarmTime, |
| | | a.galarmPeople, |
| | | a.sex, |
| | | a.phoneNumber, |
| | | a.place, |
| | | a.content, |
| | | a.waringType, |
| | | a.deviceNumber, |
| | | a.region, |
| | | a.addvcd, |
| | | a.alarmId, |
| | | a.LEVEL, |
| | | ST_ASTEXT (a.coordinate ) AS coordinate, |
| | | a.jd, |
| | | a.wd, |
| | | a.jtype, |
| | | a.rname, |
| | | d.addvnm, |
| | | e.serialNumber, |
| | | e.stype, |
| | | e.channelNumber |
| | | FROM |
| | | sys_alarm a LEFT JOIN sys_district d on d.addvcds=a.addvcd LEFT JOIN sys_equipment e on e.deviceNumber=a.deviceNumber where |
| | | DATE_FORMAT(alarmTime,'%Y-%m-%d') >=#{beginTime} and DATE_FORMAT(alarmTime,'%Y-%m-%d') <=#{endTime} ORDER BY alarmTime desc |
| | | </select> |
| | | |
| | | |
| | | <update id="updateJtype"> |
| | | update sys_alarm SET jtype=1 where id=#{id} |
| | | </update> |
| | | </mapper> |