package com.artfess.yhxt.specialcheck.dao;

import com.artfess.yhxt.specialcheck.model.InspectionTaskConfig;
import com.artfess.yhxt.specialcheck.vo.InspectionTaskConfigVo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.Map;

/**
 * 巡检任务-任务配置表 Mapper 接口
 *
 * @company 阿特菲斯信息技术有限公司
 * @author xzh
 * @since 2021-08-26
 */
public interface InspectionTaskConfigDao extends BaseMapper<InspectionTaskConfig> {

    IPage<InspectionTaskConfigVo> queryInspectionTaskConfig(IPage<InspectionTaskConfig> convert2IPage,
                                                            @Param("map") Map<String, Object> params,
                                                            @Param(Constants.WRAPPER)  Wrapper<InspectionTaskConfig> convert2Wrapper);
@Select("select fullname_ AS 'rummagerName' from uc_user where id_=#{rummagerId}")
    String getRummagerName(String rummagerId);
}
