package com.testor.module.hazard.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.testor.module.hazard.model.domain.TContractorAccessLog;
import com.testor.module.hazard.model.dto.TContractorAccessLogParam;
import com.tongtech.tfw.backend.common.models.supers.SuperService;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TContractorAccessLogService extends SuperService<TContractorAccessLog> {

    /**
     * 批量插入
     * @param tContractorAccessLogs
     */
    List<TContractorAccessLog> insertBatchContractorAccessLog(List<TContractorAccessLog> tContractorAccessLogs);

    /**
     * 查询承包商访问日志
     * @param param
     * @return
     */
    Page<TContractorAccessLog> queryContractorAccessLog(TContractorAccessLogParam param);

    /**
     * 获取最大批次
     * @param contractorAllowId
     * @return
     */
    String getMaxBatch(String contractorAllowId);

}
