luodangjia
2024-11-04 e0fc8f7e2230b51e3bbe8dea43790cf11b7170e9
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileNotificationServiceImpl.java
@@ -83,7 +83,8 @@
            }
         }
      }else{
         siteIds = new HashSet<>(siteId);
         siteIds = new HashSet<>();
         siteIds.add(siteId);
      }
      PageInfo<TChargingPileNotification> pageInfo = new PageInfo<>(basePage.getPageCurr(), basePage.getPageSize());
      List<TChargingPileNotification> list = this.baseMapper.chargingPileNotificationPageList(pageInfo, siteIds);
@@ -94,20 +95,11 @@
   @Override
   public void saveData(Integer type,Integer siteId,Integer chargingPileId, String phone, String data) {
      TChargingPileNotification notification = new TChargingPileNotification();
      switch (type){
         case 1:
            // 验证码
            notification.setPhone(phone);
            notification.setContent(data);
            break;
         default:
            // 停车占位
            notification.setSiteId(siteId);
            notification.setChargingPileId(chargingPileId);
            notification.setPhone(phone);
            notification.setContent(data);
            break;
      }
      notification.setSiteId(siteId);
      notification.setChargingPileId(chargingPileId);
      notification.setPhone(phone);
      notification.setContent(data);
      this.save(notification);
   }
}