package com.aiotagro.cattletrade.business.mapper;

import com.aiotagro.cattletrade.business.entity.JbqClientLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 智能耳标日志表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2024-12-26
 */
@Mapper
public interface JbqClientLogMapper extends BaseMapper<JbqClientLog> {

    List<JbqClientLog> jbqLogList(@Param("deliveryId") Integer deliveryId,@Param("createTime") Date createTime,@Param("checkTime") Date checkTime);
    
    /**
     * 批量插入耳标日志数据
     */
    int batchInsert(@Param("list") List<JbqClientLog> logList);

    /**
     * 供百度鹰眼同步使用的增量查询
     */
    List<JbqClientLog> listLogsForYingyan(@Param("deviceIds") List<String> deviceIds,
                                          @Param("startTime") Date startTime,
                                          @Param("endTime") Date endTime,
                                          @Param("limit") Integer limit);
}
