package com.yeejoin.amos.boot.module.ugp.api.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yeejoin.amos.boot.module.ugp.api.dto.QualityProblemDto;
import com.yeejoin.amos.boot.module.ugp.api.entity.QualityProblem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

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

/**
 * 质量问题表 Mapper 接口
 *
 * @author system_generator
 * @date 2022-09-29
 */
@Repository
public interface QualityProblemMapper extends BaseMapper<QualityProblem> {

    IPage<QualityProblemDto> getItems(IPage<QualityProblemDto> page, QualityProblemDto qualityProblemDto, Set<String> projectIds);

    QualityProblemDto getInfoBySequenceNbr(String sequenceNbr);

    List<Map<String, String>> qualityProblemStatistics(@Param("projectIds") Set<String> projectIds);
}
