package com.aucma.base.service;

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

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

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

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

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

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

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

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


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

}
