|
|
@@ -222,9 +222,9 @@ public class AmqpClient1 {
|
|
|
record.setTenantId(owner.getId());
|
|
|
if(localJson != null) {
|
|
|
record.setLat(localJson.getString("lat"));
|
|
|
- record.setLat(localJson.getString("lng"));
|
|
|
- record.setLat(localJson.getString("address"));
|
|
|
- record.setLat(localJson.getString("radius"));
|
|
|
+ record.setLng(localJson.getString("lng"));
|
|
|
+ record.setAddress(localJson.getString("address"));
|
|
|
+ record.setRadius(localJson.getString("radius"));
|
|
|
}
|
|
|
record.setData(items.toString());
|
|
|
deviceMapper.insertSelective(record);
|
|
|
@@ -236,9 +236,9 @@ public class AmqpClient1 {
|
|
|
record.setTenantId(owner.getId());
|
|
|
if(localJson != null) {
|
|
|
record.setLat(localJson.getString("lat"));
|
|
|
- record.setLat(localJson.getString("lng"));
|
|
|
- record.setLat(localJson.getString("address"));
|
|
|
- record.setLat(localJson.getString("radius"));
|
|
|
+ record.setLng(localJson.getString("lng"));
|
|
|
+ record.setAddress(localJson.getString("address"));
|
|
|
+ record.setRadius(localJson.getString("radius"));
|
|
|
}
|
|
|
record.setData( items.toString());
|
|
|
deviceMapper.updateByPrimaryKeySelective2(record);
|