package com.bonus.zlpt.bigscreen.service.impl;

import com.bonus.zlpt.bigscreen.domain.vo.CoTypeVo;
import com.bonus.zlpt.bigscreen.domain.vo.ColtdTypeVo;
import com.bonus.zlpt.bigscreen.domain.vo.LatVo;
import com.bonus.zlpt.bigscreen.domain.vo.LonVo;
import com.bonus.zlpt.bigscreen.mapper.BmCompanyInfoMapper;
import com.bonus.zlpt.bigscreen.service.BmCompanyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 企业信息表(BmCompanyInfo)表服务实现类
 *
 * @author makejava
 * @since 2023-11-30 15:01:48
 */
@Service("bmCompanyInfoService")
public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {

    @Autowired
    private BmCompanyInfoMapper bmCompanyInfoMapper;

    /**
     * 根据企业类型查询对应数量
     * @param
     * @return
     */
    @Override
    public List<CoTypeVo> selectTypeList() {
        return bmCompanyInfoMapper.selectTypeList();
    }

    /**
     * 根据企业类型所属查询设备类型数量及经纬度
     * @return
     */
    @Override
    public List<ColtdTypeVo> selectColtdList() {
        return bmCompanyInfoMapper.selectColtdList();
    }

    /**
     * 根据时间查询设备历史经纬度
     * @param
     * @return
     */
    @Override
    public List<LatVo> selectTimeList(String beginTime, String endTime, String maId) {
        return bmCompanyInfoMapper.selectTimeList(beginTime, endTime, maId);
    }
}

