package com.njcn.mapper.configuration;

import com.njcn.pojo.configuration.TerminalLogs;
import com.njcn.pojo.data.Legder;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

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

/**
 * @Auther denghuajun
 * @Date 2021/7/21
 * @describe 更改终端状态记录日志Mapper
 */
public interface TerminalLogsMapper extends Mapper<TerminalLogs> {
    List<TerminalLogs> selectLogs(@Param("startTime")Date startTime,@Param("endTime")Date endTime);
    List<TerminalLogs> selectLog(@Param("terminalType") String terminalType,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
    List<TerminalLogs> selectLogByDevId(@Param("devId")String devId,@Param("terminalType") String terminalType,@Param("startTime")Date startTime,@Param("endTime")Date endTime);

    Integer batchAddTerminalLogs(List<TerminalLogs> list);
}
