| | |
| | | |
| | | /** |
| | | * 保存通知数据 |
| | | * @param notification |
| | | * @param siteId |
| | | * @param chargingPileId |
| | | * @param phone |
| | | * @param data |
| | | */ |
| | | void saveData(TChargingPileNotification notification); |
| | | void saveData(@Param("siteId") Integer siteId, |
| | | @Param("chargingPileId")Integer chargingPileId, |
| | | @Param("phone")String phone, |
| | | @Param("data")String data); |
| | | |
| | | } |
| | |
| | | |
| | | @Override |
| | | public void saveData(Integer type,Integer siteId,Integer chargingPileId, String phone, String data) { |
| | | TChargingPileNotification notification = new TChargingPileNotification(); |
| | | notification.setSiteId(siteId); |
| | | notification.setChargingPileId(chargingPileId); |
| | | notification.setPhone(phone); |
| | | notification.setContent(data); |
| | | this.baseMapper.saveData(notification); |
| | | this.baseMapper.saveData(siteId,chargingPileId,phone,data); |
| | | } |
| | | |
| | | } |
| | |
| | | <sql id="Base_Column_List"> |
| | | id, site_id, charging_pile_id, content, create_time, del_flag |
| | | </sql> |
| | | <insert id="saveData" parameterType="com.ruoyi.chargingPile.api.model.TChargingPileNotification"> |
| | | <insert id="saveData"> |
| | | insert into sys_menu( |
| | | <if test="siteId != null and siteId != 0">site_id,</if> |
| | | <if test="chargingPileId != null and chargingPileId != 0">charging_pile_id,</if> |