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

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 java.util.List;

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