package com.zcloud.personnel.positioning.persistence.repository;

import com.alibaba.cola.dto.PageResponse;
import com.jjb.saas.framework.repository.repo.BaseRepository;
import com.zcloud.personnel.positioning.persistence.dataobject.CompanyOptionDO;
import com.zcloud.personnel.positioning.persistence.dataobject.FenceCompanyStatDO;
import com.zcloud.personnel.positioning.persistence.dataobject.FenceDO;
import com.zcloud.personnel.positioning.persistence.dataobject.CorpInfoSnapshotDO;

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

/**
 * web-infrastructure
 *
 * @Author fangjiakai
 * @Date 2026-07-07
 */
public interface FenceRepository extends BaseRepository<FenceDO> {
    PageResponse<FenceDO> listPage(Map<String, Object> params);

    PageResponse<FenceCompanyStatDO> listCompanyStats(Map<String, Object> params);

    List<CompanyOptionDO> listCompanyOptions(Map<String, Object> params);

    boolean clearAreaLink(Long areaId);

    CorpInfoSnapshotDO findCorpInfo(Map<String, Object> params);
}
