Fix formatting issues

5011-traccar
shamalka 2 years ago
parent c73e96d325
commit 537fc9b8c4

@ -109,8 +109,16 @@ public class TrackerDAOImpl implements TrackerDAO {
TrackerDeviceInfo trackerDeviceInfo = null;
try {
Connection conn = TrackerManagementDAOFactory.getConnection();
String sql = "SELECT DM_EXT_DEVICE_MAPPING.ID, DM_EXT_DEVICE_MAPPING.TRACCAR_DEVICE_ID, DM_EXT_DEVICE_MAPPING.DEVICE_ID, DM_EXT_DEVICE_MAPPING.TENANT_ID, DM_EXT_DEVICE_MAPPING.STATUS FROM DM_EXT_DEVICE_MAPPING JOIN DM_DEVICE ON DM_EXT_DEVICE_MAPPING.DEVICE_ID=DM_DEVICE.ID WHERE " +
"DM_EXT_DEVICE_MAPPING.DEVICE_ID = ? AND DM_EXT_DEVICE_MAPPING.TENANT_ID = ? ORDER BY DM_EXT_DEVICE_MAPPING.ID DESC LIMIT 1";
String sql = "SELECT " +
"DM_EXT_DEVICE_MAPPING.ID, " +
"DM_EXT_DEVICE_MAPPING.TRACCAR_DEVICE_ID, " +
"DM_EXT_DEVICE_MAPPING.DEVICE_ID, " +
"DM_EXT_DEVICE_MAPPING.TENANT_ID, " +
"DM_EXT_DEVICE_MAPPING.STATUS " +
"FROM DM_EXT_DEVICE_MAPPING " +
"JOIN DM_DEVICE ON DM_EXT_DEVICE_MAPPING.DEVICE_ID=DM_DEVICE.ID " +
"WHERE DM_EXT_DEVICE_MAPPING.DEVICE_ID = ? AND DM_EXT_DEVICE_MAPPING.TENANT_ID = ? " +
"ORDER BY DM_EXT_DEVICE_MAPPING.ID DESC LIMIT 1";
try (PreparedStatement stmt = conn.prepareStatement(sql)) {
stmt.setInt(1, deviceId);
stmt.setInt(2, tenantId);

@ -3979,7 +3979,6 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
deviceLocation.setDistance(Double.parseDouble(distance));
deviceLocation.setSpeed(Float.parseFloat(speed));
deviceLocation.setBearing(Float.parseFloat(bearing));
// deviceInformationManager.addDeviceLocation(device, deviceLocation);
deviceInformationManager.addDeviceLocation(device, deviceLocation);
} catch (DeviceDetailsMgtException e) {
/***

Loading…
Cancel
Save