Pu Zhibing
2025-04-27 2e1766b31e889d9ee54d433476d031220dfda294
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/server/AuthorizeMsgService.java
@@ -1,6 +1,7 @@
package com.ruoyi.dataInterchange.server;
import com.alibaba.fastjson.JSON;
import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.dataInterchange.dao.UPAuthorizeMsgStartupDao;
import com.ruoyi.dataInterchange.model.UPAuthorizeMsgStartup;
import com.ruoyi.dataInterchange.util.jtt809.packet.common.OuterPacket;
@@ -43,6 +44,8 @@
      log.info("视频时效口令上报:" + JSON.toJSONString(startup));
      startup.setInferiorPlatformId(out.getGnsscenterId());
      startup.setCreateTime(LocalDateTime.now().toEpochSecond(ZoneOffset.ofHours(8)));
      upAuthorizeMsgStartupDao.save(startup);
      if(StringUtils.isNotEmpty(startup.getAuthorizeCode1())){
         upAuthorizeMsgStartupDao.save(startup);
      }
   }
}