|
|
|
@ -47,7 +47,6 @@ public class AlarmInfoTask {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
QueryWrapper<JcjJjxxViewMysql> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
queryWrapper.isNull("STATUS");
|
|
|
|
@ -80,34 +79,38 @@ public class AlarmInfoTask {
|
|
|
|
|
|
|
|
|
|
private void cleanJjxx(JcjJjxxViewMysql bean) {
|
|
|
|
|
JcjJjxxViewMysql jjxxViewMysqlCp = new JcjJjxxViewMysql();
|
|
|
|
|
jjxxViewMysqlCp.setLEFTTOPLONGITUDE("120.423914");
|
|
|
|
|
jjxxViewMysqlCp.setRIGHTBOTTOMLONGITUDE("120.439581");
|
|
|
|
|
jjxxViewMysqlCp.setRIGHTBOTTOMLATITUDE("33.823756");
|
|
|
|
|
jjxxViewMysqlCp.setLEFTTOPLATITUDE("33.833082");
|
|
|
|
|
JcjJjxxViewMysql selectloaction = jjxxViewMysqlService.selectloaction(jjxxViewMysqlCp);
|
|
|
|
|
try {
|
|
|
|
|
BeanUtils.copyProperties(bean, jjxxViewMysqlCp);
|
|
|
|
|
JcjJjxxViewMysql jwd = jjxxViewMysqlService.selectJcjJxxByJJBH(bean.getJJBH());
|
|
|
|
|
BeanUtils.copyProperties(bean, selectloaction);
|
|
|
|
|
JcjJjxxViewMysql jwd = jjxxViewMysqlService.selectJcjJxxByJJBH(selectloaction.getJJBH());
|
|
|
|
|
MetaAlarmInfo alarmInfo = new MetaAlarmInfo();
|
|
|
|
|
//设置目标字段的值
|
|
|
|
|
//alarm_code<-----JJBH 接警编号
|
|
|
|
|
alarmInfo.setAlarmCode(jjxxViewMysqlCp.getJJBH());
|
|
|
|
|
alarmInfo.setAlarmCode(selectloaction.getJJBH());
|
|
|
|
|
//police_receiver_name<-----JJRXM接警人姓名
|
|
|
|
|
alarmInfo.setPoliceReceiverName(jjxxViewMysqlCp.getJJRXM());
|
|
|
|
|
alarmInfo.setPoliceReceiverName(selectloaction.getJJRXM());
|
|
|
|
|
//alarm_response_time<-----JJRQSJ接警日期时间
|
|
|
|
|
alarmInfo.setAlarmResponseTime(jjxxViewMysqlCp.getJJRQSJ());
|
|
|
|
|
alarmInfo.setAlarmResponseTime(selectloaction.getJJRQSJ());
|
|
|
|
|
//alarm_response_content<-----BJNR接警报警内容
|
|
|
|
|
alarmInfo.setAlarmResponseContent(jjxxViewMysqlCp.getBJNR());
|
|
|
|
|
alarmInfo.setAlarmResponseContent(selectloaction.getBJNR());
|
|
|
|
|
//informant_name<-----BJR接警报警人
|
|
|
|
|
alarmInfo.setInformantName(jjxxViewMysqlCp.getBJR());
|
|
|
|
|
alarmInfo.setInformantName(selectloaction.getBJR());
|
|
|
|
|
//informant_time<-----BJDHSJ接警报警时间
|
|
|
|
|
alarmInfo.setInformantTime(jjxxViewMysqlCp.getBJDHSJ());
|
|
|
|
|
alarmInfo.setInformantTime(selectloaction.getBJDHSJ());
|
|
|
|
|
//informant_phone<-----LXDH接警报警人联系电话
|
|
|
|
|
alarmInfo.setInformantPhone(jjxxViewMysqlCp.getLXDH());
|
|
|
|
|
alarmInfo.setInformantPhone(selectloaction.getLXDH());
|
|
|
|
|
//alarm_response_type<-----BJLXMC报警类型名称
|
|
|
|
|
alarmInfo.setAlarmResponseTypeName(jjxxViewMysqlCp.getBJLXMC());
|
|
|
|
|
alarmInfo.setAlarmResponseTypeName(selectloaction.getBJLXMC());
|
|
|
|
|
//alarm_address<-----SFDD接警事发地址
|
|
|
|
|
alarmInfo.setAlarmAddress(jjxxViewMysqlCp.getSFDD());
|
|
|
|
|
alarmInfo.setAlarmAddress(selectloaction.getSFDD());
|
|
|
|
|
//alarm_response_unit<-----JJDWMC接警单位名称
|
|
|
|
|
alarmInfo.setAlarmResponseUnit(jjxxViewMysqlCp.getJJDWMC());
|
|
|
|
|
alarmInfo.setAlarmResponseUnit(selectloaction.getJJDWMC());
|
|
|
|
|
|
|
|
|
|
if (jwd.getGIS_Y() != null) {
|
|
|
|
|
|
|
|
|
|
//latitude(纬度)<-----WDZB纬度坐标
|
|
|
|
|
alarmInfo.setLatitude(NumKit.checkBigDecimal(jwd.getGIS_Y()));
|
|
|
|
|
}
|
|
|
|
@ -120,14 +123,14 @@ public class AlarmInfoTask {
|
|
|
|
|
boolean b = alarmInfoService.save(alarmInfo);
|
|
|
|
|
|
|
|
|
|
if (b) {
|
|
|
|
|
jjxxViewMysqlCp.setSTATUS("1");
|
|
|
|
|
jjxxViewMysqlService.updateJjxxByJJBH(jjxxViewMysqlCp);
|
|
|
|
|
selectloaction.setSTATUS("1");
|
|
|
|
|
jjxxViewMysqlService.updateJjxxByJJBH(selectloaction);
|
|
|
|
|
logger.info("状态修改为:1");
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
logger.info(StringKit.getTrace(e));
|
|
|
|
|
jjxxViewMysqlCp.setSTATUS("2");
|
|
|
|
|
jjxxViewMysqlService.updateJjxxByJJBH(jjxxViewMysqlCp);
|
|
|
|
|
selectloaction.setSTATUS("2");
|
|
|
|
|
jjxxViewMysqlService.updateJjxxByJJBH(selectloaction);
|
|
|
|
|
logger.info("状态修改为:2");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|