From 4109495b9c51a4bbd8b0a7c3c69093909d2e33e1 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期一, 07 四月 2025 18:55:05 +0800
Subject: [PATCH] 修改接口bug

---
 ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/DOWNPlaybackMsgStartupService.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/DOWNPlaybackMsgStartupService.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/DOWNPlaybackMsgStartupService.java
index 8efac36..da6f776 100644
--- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/DOWNPlaybackMsgStartupService.java
+++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/DOWNPlaybackMsgStartupService.java
@@ -15,8 +15,6 @@
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
-import java.time.LocalDateTime;
-import java.time.ZoneOffset;
 
 /**
  * @author zhibing.pu
@@ -40,7 +38,7 @@
 	 * @param vehicleNo
 	 * @return
 	 */
-	public R playbackMsgStartup(Integer inferiorPlatformId, String vehicleNo, LocalDateTime startTime, LocalDateTime endTime) {
+	public R playbackMsgStartup(Integer inferiorPlatformId, String vehicleNo, Long startTime, Long endTime) {
 		Channel channel = ChannelMap.getClientChannel(inferiorPlatformId);
 		if (!channel.isActive()) {
 			return R.fail("失败");
@@ -60,8 +58,8 @@
 		downPlaybackMsgStartup.setAvttemType(0X00);
 		downPlaybackMsgStartup.setStreamType(0);
 		downPlaybackMsgStartup.setMemType(0);
-		downPlaybackMsgStartup.setPlaybackStartTime(startTime.toEpochSecond(ZoneOffset.ofHours(8)));
-		downPlaybackMsgStartup.setPlaybackEndTime(endTime.toEpochSecond(ZoneOffset.ofHours(8)));
+		downPlaybackMsgStartup.setPlaybackStartTime(startTime);
+		downPlaybackMsgStartup.setPlaybackEndTime(endTime);
 		downPlaybackMsgStartup.setAuthorizeCode(authorizeMsgStartup.getAuthorizeCode1());
 		downPlaybackMsgStartup.setGnssData("");
 		byte[] body = downPlaybackMsgStartup.encode();

--
Gitblit v1.7.1