package com.hotent.baseInfo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hotent.baseInfo.model.AuditedUnit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuditedUnitDao extends BaseMapper<AuditedUnit> {

    List<AuditedUnit> selectByRegionAndName(@Param("regionCode") String regionCode,
                                            @Param("unitName") String unitName);

    Page<AuditedUnit> getAuditedUnitPage(Page<AuditedUnit> objectPage,
                                         @Param("dataScope") Integer dataScope,
                                         @Param("provinceCode") String provinceCode,
                                         @Param("cityCode") String cityCode,
                                         @Param("countyCode") String countyCode,
                                         @Param("areaCode") String areaCode,
                                         @Param("unitName") String unitName);

    List<AuditedUnit> getList(
            @Param("unitId") String unitId,
            @Param("dataScope") Integer dataScope,
            @Param("provinceCode") String provinceCode,
            @Param("cityCode") String cityCode,
            @Param("countyCode") String countyCode);
}


