|
|
@ -53,7 +53,7 @@ public class MqttServiceImpl {
|
|
|
|
Object time = devIDLastTimeMap.get(deviceID);
|
|
|
|
Object time = devIDLastTimeMap.get(deviceID);
|
|
|
|
if (time == null) {
|
|
|
|
if (time == null) {
|
|
|
|
time = "2000-01-01 01:00:00";
|
|
|
|
time = "2000-01-01 01:00:00";
|
|
|
|
operationDBMapper.addEarliestTime(10, tableName, String.valueOf(deviceID), time.toString());
|
|
|
|
operationDBMapper.addEarliestTime("10", tableName, String.valueOf(deviceID), time.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publishData(deviceID, time.toString(), sqlExecuting, tableName, fieldMap);
|
|
|
|
publishData(deviceID, time.toString(), sqlExecuting, tableName, fieldMap);
|
|
|
|
}
|
|
|
|
}
|
|
|
|