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

import com.zcloud.personnel.positioning.persistence.dataobject.BiAreaSnapshotDO;
import com.zcloud.personnel.positioning.persistence.dataobject.BiCompanyAlarmCountDO;
import com.zcloud.personnel.positioning.persistence.dataobject.BiCorpInfoDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PersonnelPositioningBiMapper {
    List<BiCorpInfoDO> listCorpInfos(@Param("portArea") Integer portArea);
    List<BiAreaSnapshotDO> listAreaSnapshots();
    List<BiCompanyAlarmCountDO> listCompanyAlarmCounts();
    int countOpenAlarms();
    int countOpenAlarmPersons();
    int countOpenAlarmsByPerson(@Param("idCardNo") String idCardNo, @Param("terminalNo") String terminalNo);
    String findPositionMode(@Param("terminalNo") String terminalNo);
    BiCorpInfoDO findCorpById(@Param("corpinfoId") String corpinfoId);
    BiCorpInfoDO findCorpByCreditCode(@Param("creditCode") String creditCode);
    BiCorpInfoDO findCorpByName(@Param("corpName") String corpName);
    BiCorpInfoDO findCorpFuzzy(@Param("corpName") String corpName);
}
