| | |
| | | AND role_id = "1370562810882502657" |
| | | </select> |
| | | |
| | | <select id="getAlarm" resultType="java.util.HashMap"> |
| | | SELECT |
| | | a.id, |
| | | a.alarmType, |
| | | a.alarmPeople, |
| | | a.alarmTime, |
| | | a.galarmPeople, |
| | | a.sex, |
| | | a.phoneNumber, |
| | | a.content, |
| | | a.waringType, |
| | | a.bz, |
| | | a.deviceNumber, |
| | | a.region, |
| | | a.district, |
| | | a.vaddress, |
| | | a.aaddress, |
| | | 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, |
| | | e.stype, |
| | | e.oneId, |
| | | e.twoId, |
| | | e.threeId, |
| | | e.deptId, |
| | | e.street AS place, |
| | | e.channelNumber |
| | | <select id="getAlarm" resultMap="alarmResultMap"> |
| | | select |
| | | a.id,a.alarmType,a.alarmPeople,a.alarmTime,a.galarmPeople,a.sex,a.phoneNumber,a.content,a.waringType,a.bz, |
| | | a.deviceNumber,a.region,a.district,a.vaddress,a.aaddress, |
| | | a.alarmId,a.LEVEL,e.jd,e.wd,a.jtype,a.rname,a.jjTime,a.province,a.city,a.cid, |
| | | a.securityArr,a.securityId, |
| | | e.serialNumber,e.oneContacts,e.ThreeContacts,e.twoContacts,e.onePhone,e.twoPhone,e.ThreePhone, |
| | | e.stype, |
| | | e.oneId, |
| | | e.twoId, |
| | | e.threeId, |
| | | e.deptId, |
| | | e.street as place, |
| | | e.channelNumber |
| | | FROM |
| | | sys_alarm a |
| | | LEFT JOIN sys_equipment e ON e.deviceNumber = a.deviceNumber |
| | |
| | | |
| | | </select> |
| | | |
| | | <select id="getAlarming" resultType="java.util.HashMap"> |
| | | SELECT |
| | | a.id, |
| | | a.alarmType, |
| | | a.alarmPeople, |
| | | a.alarmTime, |
| | | a.galarmPeople, |
| | | a.sex, |
| | | a.phoneNumber, |
| | | a.content, |
| | | a.waringType, |
| | | a.bz, |
| | | a.deviceNumber, |
| | | a.region, |
| | | a.district, |
| | | a.vaddress, |
| | | a.aaddress, |
| | | 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, |
| | | e.stype, |
| | | e.oneId, |
| | | e.twoId, |
| | | e.threeId, |
| | | e.deptId, |
| | | e.street AS place, |
| | | e.channelNumber |
| | | <select id="getAlarming" resultMap="alarmResultMap"> |
| | | select |
| | | a.id,a.alarmType,a.alarmPeople,a.alarmTime,a.galarmPeople,a.sex,a.phoneNumber,a.content,a.waringType,a.bz, |
| | | a.deviceNumber,a.region,a.district,a.vaddress,a.aaddress, |
| | | a.alarmId,a.LEVEL,e.jd,e.wd,a.jtype,a.rname,a.jjTime,a.province,a.city,a.cid, |
| | | a.securityArr,a.securityId, |
| | | e.serialNumber,e.oneContacts,e.ThreeContacts,e.twoContacts,e.onePhone,e.twoPhone,e.ThreePhone, |
| | | e.stype, |
| | | e.oneId, |
| | | e.twoId, |
| | | e.threeId, |
| | | e.deptId, |
| | | e.street as place, |
| | | e.channelNumber |
| | | FROM |
| | | sys_alarm a |
| | | LEFT JOIN sys_equipment e ON e.deviceNumber = a.deviceNumber |