| | |
| | | |
| | | |
| | | |
| | | return null; |
| | | //return R.status(alarmService.saveOrUpdate(alarm)); |
| | | //return null; |
| | | return R.status(alarmService.saveOrUpdate(alarm)); |
| | | } |
| | | |
| | | |
| | |
| | | </delete> |
| | | |
| | | <!--新增--> |
| | | <insert id="s" parameterType="org.springblade.jfpt.alarm.entity.Alarm"> |
| | | <insert id="s" parameterType="org.springblade.jfpt.alarm.entity.Alarm" useGeneratedKeys="true" keyProperty="id"> |
| | | INSERT INTO sys_alarm (alarmType,jjTime,alarmPeople,alarmTime,galarmPeople,sex,phoneNumber,place,content,waringType,deviceNumber, |
| | | region,district,alarmId,level,rname,coordinate,jd,wd,jtype,province,city,cid) VALUES |
| | | (#{alarmType},#{jjTime},#{alarmPeople},#{alarmTime},#{galarmPeople},#{sex},#{phoneNumber},#{place},#{content},#{waringType}, |
| | |
| | | import org.springblade.jfpt.animalheat.service.AnimalHeatService; |
| | | import org.springblade.jfpt.catalog.service.catalogService; |
| | | import org.springblade.jfpt.equipment.service.IEquipmentService; |
| | | import org.springblade.jfpt.operation.service.IOperationService; |
| | | import org.springblade.jfpt.operation.vo.OperationVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IAlarmService alarmService; |
| | | |
| | | @Autowired |
| | | private IOperationService operationService; |
| | | |
| | | private static ServerHandler serverHandler; |
| | | |
| | |
| | | |
| | | serverHandler.alarmService.updatePoliceStatus(online_police.get(0).get("id").toString(),"1"); |
| | | } |
| | | |
| | | serverHandler.alarmService.s(alarm); |
| | | |
| | | OperationVO operation = new OperationVO(); |
| | | operation.setSnumber(alarm.getAlarmId()); |
| | | operation.setSname(alarm.getAlarmPeople()); |
| | | operation.setJid(alarm.getId().toString()); |
| | | operation.setZc("接警"); |
| | | operation.setZctime(alarm.getJjTime()); |
| | | serverHandler.operationService.save(operation); |
| | | |
| | | outData.add("LEOK#@"); |
| | | long endTime1 = System.currentTimeMillis(); //获取结束时间 |
| | | |