车辆静止时更新车辆位置
This commit is contained in:
parent
f3ba634916
commit
8ef2311b94
@ -12,6 +12,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
@ -21,6 +22,7 @@ import java.time.LocalDateTime;
|
||||
* @author attiya
|
||||
* @since 2025-03-18
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class ReoprtHandler {
|
||||
|
||||
@ -91,6 +93,7 @@ public class ReoprtHandler {
|
||||
//车辆静止,直接落库
|
||||
if (isMoving == '0') {
|
||||
//TODO:优化为算法计算存储,计算拐点等关键位置,而非单纯的等待2min的静止上报
|
||||
log.info("记录中控绑定的车辆位置,中控编号:{}", deviceId);
|
||||
operateFeignClient.changeLocation(deviceId,doubles[0], doubles[1]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user