package com.zksy.WaterSupply.WaterPumpStation.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.WaterPumpStation.domain.WaterPumpStation;

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

public interface IWaterPumpStationService extends IService<WaterPumpStation> {

    /**
     * 分页查询泵站数据
     */
    IPage<WaterPumpStation> queryPage(Page<WaterPumpStation> page,
                                      String stationCode,
                                      String stationName,
                                      String status,
                                      String principal,
                                      LocalDateTime startTime,
                                      LocalDateTime endTime);

    /**
     * 分页查询回收站数据
     */
    IPage<WaterPumpStation> queryDeletedPage(Page<WaterPumpStation> page,
                                             String stationCode,
                                             String stationName,
                                             String status,
                                             LocalDateTime startTime,
                                             LocalDateTime endTime);

    /**
     * 批量恢复已删除数据
     */
    boolean restoreByIds(List<Long> ids, String updateBy);

    /**
     * 批量彻底物理删除数据
     */
    boolean deleteByIdsPhysically(List<Long> ids);
}