package com.vetti.hotake.service.impl;

import java.util.List;

import com.vetti.common.core.service.BaseServiceImpl;
import com.vetti.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.vetti.hotake.mapper.HotakeCandidateInterviewRecordInfoMapper;
import com.vetti.hotake.domain.HotakeCandidateInterviewRecordInfo;
import com.vetti.hotake.service.IHotakeCandidateInterviewRecordInfoService;

/**
 * 候选人面试记录信息Service业务层处理
 * 
 * @author wangxiangshun
 * @date 2025-12-08
 */
@SuppressWarnings("all")
@Service
public class HotakeCandidateInterviewRecordInfoServiceImpl extends BaseServiceImpl implements IHotakeCandidateInterviewRecordInfoService
{
    @Autowired
    private HotakeCandidateInterviewRecordInfoMapper hotakeCandidateInterviewRecordInfoMapper;

    /**
     * 查询候选人面试记录信息
     * 
     * @param id 候选人面试记录信息主键
     * @return 候选人面试记录信息
     */
    @Transactional(readOnly = true)
    @Override
    public HotakeCandidateInterviewRecordInfo selectHotakeCandidateInterviewRecordInfoById(Long id)
    {
        return hotakeCandidateInterviewRecordInfoMapper.selectHotakeCandidateInterviewRecordInfoById(id);
    }

    /**
     * 查询候选人面试记录信息列表
     * 
     * @param hotakeCandidateInterviewRecordInfo 候选人面试记录信息
     * @return 候选人面试记录信息
     */
    @Transactional(readOnly = true)
    @Override
    public List<HotakeCandidateInterviewRecordInfo> selectHotakeCandidateInterviewRecordInfoList(HotakeCandidateInterviewRecordInfo hotakeCandidateInterviewRecordInfo)
    {
        return hotakeCandidateInterviewRecordInfoMapper.selectHotakeCandidateInterviewRecordInfoList(hotakeCandidateInterviewRecordInfo);
    }

    /**
     * 新增候选人面试记录信息
     * 
     * @param hotakeCandidateInterviewRecordInfo 候选人面试记录信息
     * @return 结果
     */
    @Transactional(rollbackFor=Exception.class)
    @Override
    public int insertHotakeCandidateInterviewRecordInfo(HotakeCandidateInterviewRecordInfo hotakeCandidateInterviewRecordInfo)
    {
        return hotakeCandidateInterviewRecordInfoMapper.insertHotakeCandidateInterviewRecordInfo(hotakeCandidateInterviewRecordInfo);
    }

    /**
     * 修改候选人面试记录信息
     * 
     * @param hotakeCandidateInterviewRecordInfo 候选人面试记录信息
     * @return 结果
     */
    @Transactional(rollbackFor=Exception.class)
    @Override
    public int updateHotakeCandidateInterviewRecordInfo(HotakeCandidateInterviewRecordInfo hotakeCandidateInterviewRecordInfo)
    {
        return hotakeCandidateInterviewRecordInfoMapper.updateHotakeCandidateInterviewRecordInfo(hotakeCandidateInterviewRecordInfo);
    }

    /**
     * 批量删除候选人面试记录信息
     * 
     * @param ids 需要删除的候选人面试记录信息主键
     * @return 结果
     */
    @Transactional(rollbackFor=Exception.class)
    @Override
    public int deleteHotakeCandidateInterviewRecordInfoByIds(Long[] ids)
    {
        return hotakeCandidateInterviewRecordInfoMapper.deleteHotakeCandidateInterviewRecordInfoByIds(ids);
    }

    /**
     * 删除候选人面试记录信息信息
     * 
     * @param id 候选人面试记录信息主键
     * @return 结果
     */
    @Transactional(rollbackFor=Exception.class)
    @Override
    public int deleteHotakeCandidateInterviewRecordInfoById(Long id)
    {
        return hotakeCandidateInterviewRecordInfoMapper.deleteHotakeCandidateInterviewRecordInfoById(id);
    }
    /**
     * 批量新增候选人面试记录信息
     *
     * @param hotakeCandidateInterviewRecordInfoList 候选人面试记录信息列表
     * @return 结果
     */
    @Transactional(rollbackFor=Exception.class)
    @Override
    public int batchInsertHotakeCandidateInterviewRecordInfo(List<HotakeCandidateInterviewRecordInfo> hotakeCandidateInterviewRecordInfoList){
        return hotakeCandidateInterviewRecordInfoMapper.batchInsertHotakeCandidateInterviewRecordInfo(hotakeCandidateInterviewRecordInfoList);
    }
}
