forked from dyf/fys-Multi-tenant
设备mqtt收发数据
This commit is contained in:
@ -17,13 +17,13 @@ public class GetAddressFromLatUtil {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
double[] doubles = LngLonUtil.gps84_To_Gcj02(22.557395054991183, 113.98008942433216);
|
||||
double[] doubles = LngLonUtil.gps84_To_Gcj02(22.6826096, 113.986969);
|
||||
System.out.println(doubles[0]);
|
||||
System.out.println(doubles[1]);
|
||||
|
||||
// lat 31.2990170 纬度 39.909 116.40,39.92 113.39039,23.131798 113.97556991,22.67075292
|
||||
// log 121.3466440 经度 116.39742 113.9751543,22.5603342
|
||||
String add = GetAddressFromLatUtil.getAdd("113.98008942433216", "22.557395054991183");
|
||||
String add = GetAddressFromLatUtil.getAdd(String.valueOf(doubles[1]), String.valueOf(doubles[0]));
|
||||
logger.info(add);
|
||||
|
||||
// System.out.println(System.currentTimeMillis());
|
||||
|
@ -148,7 +148,7 @@
|
||||
dt.type_name,
|
||||
dt.communication_mode,
|
||||
d.bluetooth_name,
|
||||
d.binding_time
|
||||
c.binding_time
|
||||
from device d
|
||||
inner join device_type dt on d.device_type = dt.id
|
||||
inner join app_device_bind_record c on d.id = c.device_id
|
||||
|
Reference in New Issue
Block a user