package com.aiotagro.cattletrade.business.mapper;

import com.aiotagro.cattletrade.business.entity.XqClientLog;
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 XqClientLogMapper extends BaseMapper<XqClientLog> {

    List<XqClientLog> xqLogList(@Param("deliveryId") Integer deliveryId,@Param("createTime") Date createTime,@Param("checkTime") Date checkTime);
    
    /**
     * 批量插入项圈日志数据
     */
    int batchInsert(@Param("list") List<XqClientLog> logList);

    /**
     * 查询用于百度鹰眼推送的项圈轨迹
     */
    List<XqClientLog> listLogsForYingyan(@Param("deviceIds") List<String> deviceIds,
                                         @Param("startTime") Date startTime,
                                         @Param("endTime") Date endTime,
                                         @Param("limit") Integer limit);
}
