diff --git a/src/main/java/com/ssf/mysqloracletest/task/AlarmInfoTask.java b/src/main/java/com/ssf/mysqloracletest/task/AlarmInfoTask.java index 4f796a3..597ed08 100644 --- a/src/main/java/com/ssf/mysqloracletest/task/AlarmInfoTask.java +++ b/src/main/java/com/ssf/mysqloracletest/task/AlarmInfoTask.java @@ -82,7 +82,7 @@ public class AlarmInfoTask { JcjJjxxViewMysql jjxxViewMysqlCp = new JcjJjxxViewMysql(); try { BeanUtils.copyProperties(bean, jjxxViewMysqlCp); - + JcjJjxxViewMysql jwd = jjxxViewMysqlService.selectJcjJxxByJJBH(bean.getJJBH()); MetaAlarmInfo alarmInfo = new MetaAlarmInfo(); //设置目标字段的值 //alarm_code<-----JJBH 接警编号 @@ -108,7 +108,7 @@ public class AlarmInfoTask { if (jjxxViewMysqlCp.getWDZB() != null) { //转换类型 - BigDecimal WDZBDecimal = new BigDecimal(jjxxViewMysqlCp.getWDZB()); + BigDecimal WDZBDecimal = new BigDecimal(jwd.getWDZB()); //latitude(纬度)<-----WDZB纬度坐标 alarmInfo.setLatitude(WDZBDecimal); } else { @@ -117,7 +117,7 @@ public class AlarmInfoTask { } if (jjxxViewMysqlCp.getJDZB() != null) { - BigDecimal JDZBDecimal = new BigDecimal(jjxxViewMysqlCp.getJDZB()); + BigDecimal JDZBDecimal = new BigDecimal(jwd.getJDZB()); //longitude(经度)<-----JDZB经度坐标 alarmInfo.setLatitude(JDZBDecimal); } else {