puzhibing
2024-08-19 7d348d54c93e1333951c6d20f8ead81d389cd262
ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/service/impl/TChargingPileNotificationServiceImpl.java
@@ -84,4 +84,24 @@
      pageInfo.setRecords(list);
      return pageInfo;
   }
   @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;
      }
   }
}