package com.zcloud.fire.check.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jjb.saas.framework.datascope.annotation.DataScope;
import com.jjb.saas.framework.datascope.annotation.DataScopes;
import com.zcloud.fire.check.persistence.dataobject.DataStatisticDO;
import com.zcloud.fire.check.persistence.dataobject.FireRegionDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2025-11-26 10:13:09
 */
@Mapper
@DataScopes({
        @DataScope(method = "getFireRegionPage", menuPerms = ""),
})
public interface FireRegionMapper extends BaseMapper<FireRegionDO> {

    IPage<FireRegionDO> getFireRegionPage(IPage<FireRegionDO> iPage, Map<String, Object> params, String menuPerms);

    List<DataStatisticDO> countByCorpinfoIds(List<Long> corpinfoIds);

    Long getFireRegionCount(Map<String, Object> params);

    List<FireRegionDO> listByCorpinfoId(Long corpinfoId);
}

