package com.xzzn.ems.mapper;

import java.util.List;
import com.xzzn.ems.domain.EmsBatteryDataDailyLatest;
import com.xzzn.ems.domain.vo.BatteryDataStatsListVo;
import com.xzzn.ems.domain.vo.DateSearchRequest;
import org.apache.ibatis.annotations.Param;

/**
 * 单体电池每日最新数据Mapper接口
 *
 * @author xzzn
 * @date 2025-07-18
 */
public interface EmsBatteryDailyLatestMapper
{
    /**
     * 查询单体电池每日最新数据
     *
     * @param batteryPack 单体电池每日最新数据主键
     * @return 单体电池每日最新数据
     */
    public EmsBatteryDataDailyLatest selectEmsBatteryDataDailyLatestByBatteryPack(String batteryPack);

    /**
     * 查询单体电池每日最新数据列表
     *
     * @param emsBatteryDataDailyLatest 单体电池每日最新数据
     * @return 单体电池每日最新数据集合
     */
    public List<EmsBatteryDataDailyLatest> selectEmsBatteryDataDailyLatestList(EmsBatteryDataDailyLatest emsBatteryDataDailyLatest);

    /**
     * 新增单体电池每日最新数据
     *
     * @param emsBatteryDataDailyLatest 单体电池每日最新数据
     * @return 结果
     */
    public int insertEmsBatteryDataDailyLatest(EmsBatteryDataDailyLatest emsBatteryDataDailyLatest);

    /**
     * 修改单体电池每日最新数据
     *
     * @param emsBatteryDataDailyLatest 单体电池每日最新数据
     * @return 结果
     */
    public int updateEmsBatteryDataDailyLatest(EmsBatteryDataDailyLatest emsBatteryDataDailyLatest);

    /**
     * 删除单体电池每日最新数据
     *
     * @param batteryPack 单体电池每日最新数据主键
     * @return 结果
     */
    public int deleteEmsBatteryDataDailyLatestByBatteryPack(String batteryPack);

    /**
     * 批量删除单体电池每日最新数据
     *
     * @param batteryPacks 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmsBatteryDataDailyLatestByBatteryPacks(String[] batteryPacks);

    public void batchUpsert(@Param("list") List<EmsBatteryDataDailyLatest> dataList);

    public List<BatteryDataStatsListVo> getBatteryDailyLatest(DateSearchRequest requestVo);
}
