package com.xhpc.charging.station.mapper;


import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Mapper Class of the table of the xhpc_charging_station_push_status
 *
 * @author WH
 * @date 2021/11/4 11:16
 * @since version-1.0
 */
public interface XhpcChargingStationPushStatusMapper {

    /**
     * 保存充电站推送状态
     *
     * @param chargingStationId id of charging station
     * @param pushStatus        push status
     * @param stationName
     * @return Integer success or fail
     * @author WH
     * @date 2021/11/4 12:54
     * @since version-1.0
     */
    Integer insertStationPushStatus(@Param("chargingStationId") Integer chargingStationId, @Param("stationName") String stationName, @Param("pushStatus") Integer pushStatus);

    /**
     * 查找电站id是否已经存在
     *
     * @param chargingStationId
     * @return
     */
    Map<String, Object> findOne(Integer chargingStationId);

    /**
     * 编辑一个或多个场站状态
     *
     * @param chargingStationIds
     * @param pushStatus
     * @return
     */
    Integer editStationsStatus(@Param("chargingStationIds") List<Integer> chargingStationIds, @Param("pushStatus") Integer pushStatus);

}
