package com.zksy.WaterSupply.WaterUserInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksy.WaterSupply.WaterUserInfo.domain.WaterUserInfo;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDateTime;
import java.util.List;

public interface WaterUserInfoMapper extends BaseMapper<WaterUserInfo> {

    List<WaterUserInfo> selectUserList(
            @Param("userCode") String userCode,
            @Param("userName") String userName,
            @Param("status") String status,
            @Param("userType") String userType,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime);

    List<WaterUserInfo> selectDeletedList(
            @Param("userCode") String userCode,
            @Param("userName") String userName,
            @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);
}