package com.zksy.WaterSupply.WaterSourceInfo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.WaterSupply.WaterSourceInfo.domain.WaterSourceInfo;

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

public interface IWaterSourceInfoService extends IService<WaterSourceInfo> {

    IPage<WaterSourceInfo> queryPage(Page<WaterSourceInfo> page,
                                     String sourceId,
                                     String sourceName,
                                     String status,
                                     String unit,
                                     LocalDateTime startTime,
                                     LocalDateTime endTime);

    IPage<WaterSourceInfo> queryDeletedPage(Page<WaterSourceInfo> page,
                                            String sourceId,
                                            String sourceName,
                                            String status,
                                            LocalDateTime startTime,
                                            LocalDateTime endTime);

    boolean restoreByIds(List<Long> ids, String updateBy);

    boolean deleteByIdsPhysically(List<Long> ids);
}