package com.unis.crk.quality.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.unis.crk.quality.entity.QualityCheckitem;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 质量标准-等级标准表 Mapper 接口
 * </p>
 *
 * @author TangSong
 * @since 2022-02-09
 */
public interface QualityCheckitemMapper extends BaseMapper<QualityCheckitem> {
        /**
         * 自定义sql分页
         * @param page
         * @param queryWrapper 看这里看这里，如果自定义的方法中需要用到wrapper查询条件，需要这样写
         * @return
         */
        IPage<Map<String,Object>> selectMyMapsPage(IPage<QualityCheckitem> page, @Param(Constants.WRAPPER) QueryWrapper<QualityCheckitem> queryWrapper);

         List<Map<String,Object>> getCplBzz(
                                        @Param("Ift")String Ift,
                                        @Param("standardID")String standardID,
                                       @Param("lspzCode")String lspzCode,
                                       @Param("lsdjCode")String lsdjCode);

    List<Map<String, Object>> getYlBzz(
                                    @Param("Ift")String Ift,
                                    @Param("standardID")String standardID,
                                    @Param("lspzCode")String lspzCode,
                                    @Param("lsdjCode")String lsdjCode);
}
