Pu Zhibing
19 小时以前 9bc378e6bb9b4563a0dec222e1c2d5d3278632cb
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingPileController.java
@@ -249,7 +249,7 @@
      Integer status = vo.getStatus();
      Long time = (Long) redisTemplate.opsForHash().get("charging_gun_online", (pile_code + gun_code));
      //小于1分钟才处理数据,防止频繁查询数据
      if(null != time && (System.currentTimeMillis() - time) < 60000){
      if(null != time && (System.currentTimeMillis() - time) < 30000){
         return;
      }
      TChargingGun tChargingGun = chargingGunService.getOne(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getFullNumber, (pile_code + gun_code)).eq(TChargingGun::getDelFlag, 0));
@@ -267,7 +267,7 @@
               @Override
               public void run() {
                  //推送状态给三方平台
                  tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), tChargingGun1.getStatus());
                  tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), 2);
               }
            }).start();
            
@@ -295,7 +295,7 @@
               @Override
               public void run() {
                  //推送状态给三方平台
                  tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), tChargingGun1.getStatus());
                  tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), 7);
               }
            }).start();
            
@@ -348,7 +348,7 @@
                  @Override
                  public void run() {
                     //推送状态给三方平台
                     tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), tChargingGun1.getStatus());
                     tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), 5);
                  }
               }).start();
            }else{
@@ -360,7 +360,7 @@
                  @Override
                  public void run() {
                     //推送状态给三方平台
                     tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), tChargingGun1.getStatus());
                     tcecClient.pushChargingGunStatus(tChargingGun.getFullNumber(), 3);
                  }
               }).start();
            }