package com.unis.crk.basic.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.unis.crk.basic.entity.UserOperationlog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.unis.crk.basic.entity.vo.UserOperationlogVo;
import com.unis.crk.hardware.entity.Devicecode;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 操作记录表 Mapper 接口
 * </p>
 *
 * @author ghh
 * @since 2021-12-13
 */
public interface UserOperationlogMapper extends BaseMapper<UserOperationlog> {
        /**
         * 自定义sql分页
         * @param page
         * @param queryWrapper 看这里看这里，如果自定义的方法中需要用到wrapper查询条件，需要这样写
         * @return
         */
        IPage<Map<String,Object>> selectMyMapsPage(IPage<UserOperationlog> page, @Param(Constants.WRAPPER) QueryWrapper<UserOperationlog> queryWrapper);

        /**
         * 得到扦样待处理列表
         * @param pageQuery 查询条件
         * @return
         */
        List<Map<String,Object>> getPerData(@Param(Constants.WRAPPER) UserOperationlogVo pageQuery);

        IPage<Map<String, Object>> getPage(Page<UserOperationlog> objectPage, @Param(Constants.WRAPPER) QueryWrapper<UserOperationlog> infoQueryWrapper);

}
