package com.ruoyi.syzy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.syzy.mapper.BBusiHollandQuestionOptionsMapper;
import com.ruoyi.syzy.domain.BBusiHollandQuestionOptions;
import com.ruoyi.syzy.service.IBBusiHollandQuestionOptionsService;

/**
 * 霍兰德测评题目选项Service业务层处理
 * 
 * @author mingxue
 * @date 2021-08-15
 */
@Service
public class BBusiHollandQuestionOptionsServiceImpl implements IBBusiHollandQuestionOptionsService {
    @Autowired
    private BBusiHollandQuestionOptionsMapper bBusiHollandQuestionOptionsMapper;

    /**
     * 查询霍兰德测评题目选项
     * 
     * @param id 霍兰德测评题目选项ID
     * @return 霍兰德测评题目选项
     */
    @Override
    public BBusiHollandQuestionOptions selectBBusiHollandQuestionOptionsById(Long id) {
        return bBusiHollandQuestionOptionsMapper.selectBBusiHollandQuestionOptionsById(id);
    }

    /**
     * 查询霍兰德测评题目选项列表
     * 
     * @param bBusiHollandQuestionOptions 霍兰德测评题目选项
     * @return 霍兰德测评题目选项
     */
    @Override
    public List<BBusiHollandQuestionOptions>
        selectBBusiHollandQuestionOptionsList(BBusiHollandQuestionOptions bBusiHollandQuestionOptions) {
        return bBusiHollandQuestionOptionsMapper.selectBBusiHollandQuestionOptionsList(bBusiHollandQuestionOptions);
    }

    /**
     * 新增霍兰德测评题目选项
     * 
     * @param bBusiHollandQuestionOptions 霍兰德测评题目选项
     * @return 结果
     */
    @Override
    public int insertBBusiHollandQuestionOptions(BBusiHollandQuestionOptions bBusiHollandQuestionOptions) {
        return bBusiHollandQuestionOptionsMapper.insertBBusiHollandQuestionOptions(bBusiHollandQuestionOptions);
    }

    /**
     * 修改霍兰德测评题目选项
     * 
     * @param bBusiHollandQuestionOptions 霍兰德测评题目选项
     * @return 结果
     */
    @Override
    public int updateBBusiHollandQuestionOptions(BBusiHollandQuestionOptions bBusiHollandQuestionOptions) {
        return bBusiHollandQuestionOptionsMapper.updateBBusiHollandQuestionOptions(bBusiHollandQuestionOptions);
    }

    /**
     * 批量删除霍兰德测评题目选项
     * 
     * @param ids 需要删除的霍兰德测评题目选项ID
     * @return 结果
     */
    @Override
    public int deleteBBusiHollandQuestionOptionsByIds(Long[] ids) {
        return bBusiHollandQuestionOptionsMapper.deleteBBusiHollandQuestionOptionsByIds(ids);
    }

    /**
     * 删除霍兰德测评题目选项信息
     * 
     * @param id 霍兰德测评题目选项ID
     * @return 结果
     */
    @Override
    public int deleteBBusiHollandQuestionOptionsById(Long id) {
        return bBusiHollandQuestionOptionsMapper.deleteBBusiHollandQuestionOptionsById(id);
    }
}
