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

import com.zcloud.personnel.positioning.persistence.dataobject.AlarmRuleDO;
import com.zcloud.personnel.positioning.persistence.dataobject.AlarmRuleCompanyStatDO;
import com.zcloud.personnel.positioning.persistence.dataobject.CompanyOptionDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
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 AlarmRuleMapper extends BaseMapper<AlarmRuleDO> {
    IPage<AlarmRuleDO> listRules(IPage<AlarmRuleDO> page,
                                 @Param("params") Map<String, Object> params);

    IPage<AlarmRuleCompanyStatDO> listCompanyStats(IPage<AlarmRuleCompanyStatDO> page,
                                                   @Param("params") Map<String, Object> params);

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