package cn.estsh.i3plus.ext.mes.api.base.jx;

import cn.estsh.i3plus.ext.mes.pojo.bean.MesBadnessClassifyDetail;
import cn.estsh.i3plus.pojo.base.bean.ListPager;
import cn.estsh.i3plus.pojo.base.common.Pager;
import io.swagger.annotations.ApiOperation;

/**
 * @author xinwang.yi
 * @version 1.0
 * @date 2022/6/7 09:20
 **/
public interface IJxBadnessClassifyDetailService {

    /**
     * 分页查询不良分类明细
     *
     * @param sxQmsBadnessClassifyDetail 查询条件
     * @param pager 分页条件
     * @return 不良分类明细分页数据
     */
    @ApiOperation(value = "分页查询不良分类明细", notes = "分页查询不良分类明细")
    ListPager<MesBadnessClassifyDetail> queryBadnessClassifyDetailPager(MesBadnessClassifyDetail sxQmsBadnessClassifyDetail, Pager pager);

    /**
     * 新增不良分类明细
     * @param sxQmsBadnessClassifyDetail 不良分类明细信息
     */
    @ApiOperation(value = "新增不良分类明细", notes = "新增不良分类明细")
    void insertBadnessClassifyDetail(MesBadnessClassifyDetail sxQmsBadnessClassifyDetail, String userName);

    /**
     * 编辑不良分类明细
     * @param sxQmsBadnessClassifyDetail 不良分类明细信息
     */
    @ApiOperation(value = "编辑不良分类明细", notes = "编辑不良分类明细")
    void updateBadnessClassifyDetail(MesBadnessClassifyDetail sxQmsBadnessClassifyDetail, String userName);

    /**
     * 删除不良分类明细
     * @param id
     * @param userName
     */
    @ApiOperation(value = "根据ID启用或禁用不良分类明细", notes = "根据ID启用或禁用不良分类明细")
    void deleteBadnessClassifyDetail(Long ids[], String userName);
}
