package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.bean.bo.CompanyOnlineBO;
import com.skr.mdm.bean.qo.LargeScreenMessageQO;
import com.skr.mdm.bean.qo.controller.LargeScreenQO;
import com.skr.mdm.entity.AuCompanyStatisticsDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface AuCompanyStatisticsDao extends BaseMapper<AuCompanyStatisticsDO> {

	/**
	 * 根据公司ID删除
	 * @param companyId 公司ID
	 */
	void deleteByCompanyId(@Param("companyId") Integer companyId);

	ArrayList<LargeScreenMessageQO> selectList(LargeScreenQO largeScreenQO);

	void insertSelectiveByTime(@Param("nowTime") String nowTime, @Param("list") List<CompanyOnlineBO> companyOnlineBOList);
}