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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
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 org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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

/**
 * web-infrastructure
 *
 * @Author fangjiakai
 * @Date 2026-07-07
 */
@Mapper
public interface FenceMapper extends BaseMapper<FenceDO> {
    IPage<FenceCompanyStatDO> listCompanyStats(IPage<FenceCompanyStatDO> page,
                                               @Param("params") Map<String, Object> params);

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

    int clearAreaLink(@Param("areaId") Long areaId);

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