package com.aucma.report.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aucma.report.mapper.PrintSupplementBarCodeMapper;
import com.aucma.report.domain.PrintSupplementBarCode;
import com.aucma.report.service.IPrintSupplementBarCodeService;

/**
 * 补打条码记录Service业务层处理
 *
 * @author Yinq
 * @date 2024-04-17
 */
@Service
public class PrintSupplementBarCodeServiceImpl implements IPrintSupplementBarCodeService {
    @Autowired
    private PrintSupplementBarCodeMapper printSupplementBarCodeMapper;

    /**
     * 查询补打条码记录
     *
     * @param objId 补打条码记录主键
     * @return 补打条码记录
     */
    @Override
    public PrintSupplementBarCode selectPrintSupplementBarCodeByObjId(Long objId) {
        return printSupplementBarCodeMapper.selectPrintSupplementBarCodeByObjId(objId);
    }

    /**
     * 查询补打条码记录列表
     *
     * @param printSupplementBarCode 补打条码记录
     * @return 补打条码记录
     */
    @Override
    public List<PrintSupplementBarCode> selectPrintSupplementBarCodeList(PrintSupplementBarCode printSupplementBarCode) {
        return printSupplementBarCodeMapper.selectPrintSupplementBarCodeList(printSupplementBarCode);
    }

    /**
     * 修改补打条码记录
     *
     * @param printSupplementBarCode 补打条码记录
     * @return 结果
     */
    @Override
    public int updatePrintSupplementBarCode(PrintSupplementBarCode printSupplementBarCode) {
        return printSupplementBarCodeMapper.updatePrintSupplementBarCode(printSupplementBarCode);
    }

    /**
     * 批量删除补打条码记录
     *
     * @param objIds 需要删除的补打条码记录主键
     * @return 结果
     */
    @Override
    public int deletePrintSupplementBarCodeByObjIds(Long[] objIds) {
        return printSupplementBarCodeMapper.deletePrintSupplementBarCodeByObjIds(objIds);
    }

    /**
     * 删除补打条码记录信息
     *
     * @param objId 补打条码记录主键
     * @return 结果
     */
    @Override
    public int deletePrintSupplementBarCodeByObjId(Long objId) {
        return printSupplementBarCodeMapper.deletePrintSupplementBarCodeByObjId(objId);
    }
}
