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

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 com.zcloud.personnel.positioning.persistence.mapper.PersonnelPositioningBiMapper;
import com.zcloud.personnel.positioning.persistence.repository.PersonnelPositioningBiRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@RequiredArgsConstructor
public class PersonnelPositioningBiRepositoryImpl implements PersonnelPositioningBiRepository {
    private final PersonnelPositioningBiMapper mapper;
    @Override public List<BiCorpInfoDO> listCorpInfos(Integer portArea) { return mapper.listCorpInfos(portArea); }
    @Override public List<BiCorpInfoDO> listPersonPositionCompanies(String corpinfoId, Integer portArea) { return mapper.listPersonPositionCompanies(corpinfoId, portArea); }
    @Override public List<BiAreaSnapshotDO> listAreaSnapshots() { return mapper.listAreaSnapshots(); }
    @Override public List<BiCompanyAlarmCountDO> listCompanyAlarmCounts() { return mapper.listCompanyAlarmCounts(); }
    @Override public int countOpenAlarms() { return mapper.countOpenAlarms(); }
    @Override public int countOpenAlarmPersons() { return mapper.countOpenAlarmPersons(); }
    @Override public int countOpenAlarmsByPerson(String id, String terminal) { return mapper.countOpenAlarmsByPerson(id, terminal); }
    @Override public String findPositionMode(String terminalNo) { return mapper.findPositionMode(terminalNo); }
    @Override public BiCorpInfoDO findCorpById(String id) { return mapper.findCorpById(id); }
    @Override public BiCorpInfoDO findCorpByCreditCode(String code) { return mapper.findCorpByCreditCode(code); }
    @Override public BiCorpInfoDO findCorpByName(String name) { return mapper.findCorpByName(name); }
    @Override public BiCorpInfoDO findCorpFuzzy(String name) { return mapper.findCorpFuzzy(name); }
}
