luodangjia
2024-11-04 e0fc8f7e2230b51e3bbe8dea43790cf11b7170e9
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileNotificationServiceImpl.java
@@ -95,20 +95,10 @@
   @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);
   }