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.BBusiMbtiRecordDetailsMapper;
import com.ruoyi.syzy.domain.BBusiMbtiRecordDetails;
import com.ruoyi.syzy.service.IBBusiMbtiRecordDetailsService;

/**
 * MBTI测评记录详情Service业务层处理
 * 
 * @author mingxue
 * @date 2021-08-15
 */
@Service
public class BBusiMbtiRecordDetailsServiceImpl implements IBBusiMbtiRecordDetailsService 
{
    @Autowired
    private BBusiMbtiRecordDetailsMapper bBusiMbtiRecordDetailsMapper;

    /**
     * 查询MBTI测评记录详情
     * 
     * @param id MBTI测评记录详情ID
     * @return MBTI测评记录详情
     */
    @Override
    public BBusiMbtiRecordDetails selectBBusiMbtiRecordDetailsById(Long id)
    {
        return bBusiMbtiRecordDetailsMapper.selectBBusiMbtiRecordDetailsById(id);
    }

    /**
     * 查询MBTI测评记录详情列表
     * 
     * @param bBusiMbtiRecordDetails MBTI测评记录详情
     * @return MBTI测评记录详情
     */
    @Override
    public List<BBusiMbtiRecordDetails> selectBBusiMbtiRecordDetailsList(BBusiMbtiRecordDetails bBusiMbtiRecordDetails)
    {
        return bBusiMbtiRecordDetailsMapper.selectBBusiMbtiRecordDetailsList(bBusiMbtiRecordDetails);
    }

    /**
     * 新增MBTI测评记录详情
     * 
     * @param bBusiMbtiRecordDetails MBTI测评记录详情
     * @return 结果
     */
    @Override
    public int insertBBusiMbtiRecordDetails(BBusiMbtiRecordDetails bBusiMbtiRecordDetails)
    {
        return bBusiMbtiRecordDetailsMapper.insertBBusiMbtiRecordDetails(bBusiMbtiRecordDetails);
    }

    /**
     * 修改MBTI测评记录详情
     * 
     * @param bBusiMbtiRecordDetails MBTI测评记录详情
     * @return 结果
     */
    @Override
    public int updateBBusiMbtiRecordDetails(BBusiMbtiRecordDetails bBusiMbtiRecordDetails)
    {
        return bBusiMbtiRecordDetailsMapper.updateBBusiMbtiRecordDetails(bBusiMbtiRecordDetails);
    }

    /**
     * 批量删除MBTI测评记录详情
     * 
     * @param ids 需要删除的MBTI测评记录详情ID
     * @return 结果
     */
    @Override
    public int deleteBBusiMbtiRecordDetailsByIds(Long[] ids)
    {
        return bBusiMbtiRecordDetailsMapper.deleteBBusiMbtiRecordDetailsByIds(ids);
    }

    /**
     * 删除MBTI测评记录详情信息
     * 
     * @param id MBTI测评记录详情ID
     * @return 结果
     */
    @Override
    public int deleteBBusiMbtiRecordDetailsById(Long id)
    {
        return bBusiMbtiRecordDetailsMapper.deleteBBusiMbtiRecordDetailsById(id);
    }
}
