package com.unis.crk.violation.mapper;

import com.unis.crk.violation.entity.ViolationWoring;
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 org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 表E.34 违规预警信息 Mapper 接口
 * </p>
 *
 * @author Wys
 * @since 2023-06-15
 */
public interface ViolationWoringMapper extends BaseMapper<ViolationWoring> {
        /**
         * 自定义sql分页
         * @param page
         * @param queryWrapper 看这里看这里，如果自定义的方法中需要用到wrapper查询条件，需要这样写
         * @return
         */
        IPage<Map<String,Object>> selectMyMapsPage(IPage<ViolationWoring> page, @Param(Constants.WRAPPER) QueryWrapper<ViolationWoring> queryWrapper);
        List<Map<String,Object>> superSelect(@Param("sql") String sql);
}
