| | |
| | | @Override |
| | | public void saveData(Integer type,Integer siteId,Integer chargingPileId, String phone, String data) { |
| | | TChargingPileNotification notification = new TChargingPileNotification(); |
| | | switch (type){ |
| | | case 1: |
| | | // 验证码 |
| | | notification.setSiteId(null); |
| | | notification.setChargingPileId(null); |
| | | break; |
| | | default: |
| | | // 停车占位 |
| | | notification.setSiteId(siteId); |
| | | notification.setChargingPileId(chargingPileId); |
| | | break; |
| | | } |
| | | notification.setSiteId(siteId==null?-1:siteId); |
| | | notification.setChargingPileId(chargingPileId==null?-1:chargingPileId); |
| | | notification.setPhone(phone); |
| | | notification.setContent(data); |
| | | this.save(notification); |