package com.zksy.WaterSupply.WaterSourceInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksy.WaterSupply.WaterSourceInfo.domain.WaterSourceInfo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface WaterSourceInfoMapper extends BaseMapper<WaterSourceInfo> {

    List<WaterSourceInfo> selectSourceList(
            @Param("sourceId") String sourceId,
            @Param("sourceName") String sourceName,
            @Param("status") String status,
            @Param("unit") String unit,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime);

    List<WaterSourceInfo> selectDeletedList(
            @Param("sourceId") String sourceId,
            @Param("sourceName") String sourceName,
            @Param("status") String status,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime);

    int restoreByIds(@Param("ids") List<Long> ids, @Param("updateBy") String updateBy);

    int deleteByIdsPhysically(@Param("ids") List<Long> ids);
}