package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.OperationRecord;
import cn.pluss.platform.vo.OperationRecordVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface OperationRecordMapper extends BaseMapper<OperationRecord> {

    Page<OperationRecordVO> selectUserSameIpCountPage(Page<OperationRecordVO> page, @Param("userId") String userId);

    List<OperationRecord> selectOperationRecordOne(Map map);

    Integer selectParticularsCount(Map map);

    Page<OperationRecordVO> selectVOPage(Page<OperationRecordVO> page, @Param(Constants.WRAPPER) Wrapper<OperationRecordVO> entity);
}
