package com.aucma.base.mapper;

import java.util.List;
import com.aucma.base.domain.BaseQualityInspectionItem;

/**
 * 质检项信息维护Mapper接口
 *
 * @author Yinq
 * @date 2023-10-16
 */
public interface BaseQualityInspectionItemMapper
{
    /**
     * 查询质检项信息维护
     *
     * @param objId 质检项信息维护主键
     * @return 质检项信息维护
     */
    public BaseQualityInspectionItem selectBaseQualityInspectionItemByObjId(Long objId);

    /**
     * 查询质检项信息维护列表
     *
     * @param baseQualityInspectionItem 质检项信息维护
     * @return 质检项信息维护集合
     */
    public List<BaseQualityInspectionItem> selectBaseQualityInspectionItemList(BaseQualityInspectionItem baseQualityInspectionItem);

    /**
     * 查询所有父级以及名称
     * */
    List<BaseQualityInspectionItem> selectBaseQualityInspectionItemParent();

    /**
     * 新增质检项信息维护
     *
     * @param baseQualityInspectionItem 质检项信息维护
     * @return 结果
     */
    public int insertBaseQualityInspectionItem(BaseQualityInspectionItem baseQualityInspectionItem);

    /**
     * 修改质检项信息维护
     *
     * @param baseQualityInspectionItem 质检项信息维护
     * @return 结果
     */
    public int updateBaseQualityInspectionItem(BaseQualityInspectionItem baseQualityInspectionItem);

    /**
     * 删除质检项信息维护
     *
     * @param objId 质检项信息维护主键
     * @return 结果
     */
    public int deleteBaseQualityInspectionItemByObjId(Long objId);

    /**
     * 批量删除质检项信息维护
     *
     * @param objIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBaseQualityInspectionItemByObjIds(Long[] objIds);

    /**
     * PDA获取质量缺陷
     * @param stationCode
     * @return
     */
    List<BaseQualityInspectionItem> getQualityDefects(String stationCode);
}
