|
|
@ -82,7 +82,7 @@ public class AlarmInfoTask {
|
|
|
|
JcjJjxxViewMysql jjxxViewMysqlCp = new JcjJjxxViewMysql();
|
|
|
|
JcjJjxxViewMysql jjxxViewMysqlCp = new JcjJjxxViewMysql();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
BeanUtils.copyProperties(bean, jjxxViewMysqlCp);
|
|
|
|
BeanUtils.copyProperties(bean, jjxxViewMysqlCp);
|
|
|
|
|
|
|
|
JcjJjxxViewMysql jwd = jjxxViewMysqlService.selectJcjJxxByJJBH(bean.getJJBH());
|
|
|
|
MetaAlarmInfo alarmInfo = new MetaAlarmInfo();
|
|
|
|
MetaAlarmInfo alarmInfo = new MetaAlarmInfo();
|
|
|
|
//设置目标字段的值
|
|
|
|
//设置目标字段的值
|
|
|
|
//alarm_code<-----JJBH 接警编号
|
|
|
|
//alarm_code<-----JJBH 接警编号
|
|
|
@ -108,7 +108,7 @@ public class AlarmInfoTask {
|
|
|
|
|
|
|
|
|
|
|
|
if (jjxxViewMysqlCp.getWDZB() != null) {
|
|
|
|
if (jjxxViewMysqlCp.getWDZB() != null) {
|
|
|
|
//转换类型
|
|
|
|
//转换类型
|
|
|
|
BigDecimal WDZBDecimal = new BigDecimal(jjxxViewMysqlCp.getWDZB());
|
|
|
|
BigDecimal WDZBDecimal = new BigDecimal(jwd.getWDZB());
|
|
|
|
//latitude(纬度)<-----WDZB纬度坐标
|
|
|
|
//latitude(纬度)<-----WDZB纬度坐标
|
|
|
|
alarmInfo.setLatitude(WDZBDecimal);
|
|
|
|
alarmInfo.setLatitude(WDZBDecimal);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -117,7 +117,7 @@ public class AlarmInfoTask {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (jjxxViewMysqlCp.getJDZB() != null) {
|
|
|
|
if (jjxxViewMysqlCp.getJDZB() != null) {
|
|
|
|
BigDecimal JDZBDecimal = new BigDecimal(jjxxViewMysqlCp.getJDZB());
|
|
|
|
BigDecimal JDZBDecimal = new BigDecimal(jwd.getJDZB());
|
|
|
|
//longitude(经度)<-----JDZB经度坐标
|
|
|
|
//longitude(经度)<-----JDZB经度坐标
|
|
|
|
alarmInfo.setLatitude(JDZBDecimal);
|
|
|
|
alarmInfo.setLatitude(JDZBDecimal);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|