Pu Zhibing
2025-03-24 a88ba6b7606a73086cadb02c6115c3c01ce03f3e
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();