package com.zehong.system.service.impl;

import java.util.List;
import com.zehong.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zehong.system.mapper.TEmployedPeopleInfoChangelogMapper;
import com.zehong.system.domain.TEmployedPeopleInfoChangelog;
import com.zehong.system.service.ITEmployedPeopleInfoChangelogService;

/**
 * 从业人员信息变更记录Service业务层处理
 *
 * @author zehong
 * @date 2026-03-09
 */
@Service
public class TEmployedPeopleInfoChangelogServiceImpl implements ITEmployedPeopleInfoChangelogService
{
    @Autowired
    private TEmployedPeopleInfoChangelogMapper tEmployedPeopleInfoChangelogMapper;

    /**
     * 查询从业人员信息变更记录
     *
     * @param employedPeopleId 从业人员信息变更记录ID
     * @return 从业人员信息变更记录
     */
    @Override
    public TEmployedPeopleInfoChangelog selectTEmployedPeopleInfoChangelogById(Long employedPeopleId)
    {
        return tEmployedPeopleInfoChangelogMapper.selectTEmployedPeopleInfoChangelogById(employedPeopleId);
    }

    /**
     * 查询从业人员信息变更记录列表
     *
     * @param tEmployedPeopleInfoChangelog 从业人员信息变更记录
     * @return 从业人员信息变更记录
     */
    @Override
    public List<TEmployedPeopleInfoChangelog> selectTEmployedPeopleInfoChangelogList(TEmployedPeopleInfoChangelog tEmployedPeopleInfoChangelog)
    {
        return tEmployedPeopleInfoChangelogMapper.selectTEmployedPeopleInfoChangelogList(tEmployedPeopleInfoChangelog);
    }

    /**
     * 新增从业人员信息变更记录
     *
     * @param tEmployedPeopleInfoChangelog 从业人员信息变更记录
     * @return 结果
     */
    @Override
    public int insertTEmployedPeopleInfoChangelog(TEmployedPeopleInfoChangelog tEmployedPeopleInfoChangelog)
    {
        tEmployedPeopleInfoChangelog.setCreateTime(DateUtils.getNowDate());
        return tEmployedPeopleInfoChangelogMapper.insertTEmployedPeopleInfoChangelog(tEmployedPeopleInfoChangelog);
    }

    /**
     * 修改从业人员信息变更记录
     *
     * @param tEmployedPeopleInfoChangelog 从业人员信息变更记录
     * @return 结果
     */
    @Override
    public int updateTEmployedPeopleInfoChangelog(TEmployedPeopleInfoChangelog tEmployedPeopleInfoChangelog)
    {
        tEmployedPeopleInfoChangelog.setUpdateTime(DateUtils.getNowDate());
        return tEmployedPeopleInfoChangelogMapper.updateTEmployedPeopleInfoChangelog(tEmployedPeopleInfoChangelog);
    }

    /**
     * 批量删除从业人员信息变更记录
     *
     * @param employedPeopleIds 需要删除的从业人员信息变更记录ID
     * @return 结果
     */
    @Override
    public int deleteTEmployedPeopleInfoChangelogByIds(Long[] employedPeopleIds)
    {
        return tEmployedPeopleInfoChangelogMapper.deleteTEmployedPeopleInfoChangelogByIds(employedPeopleIds);
    }

    /**
     * 删除从业人员信息变更记录信息
     *
     * @param employedPeopleId 从业人员信息变更记录ID
     * @return 结果
     */
    @Override
    public int deleteTEmployedPeopleInfoChangelogById(Long employedPeopleId)
    {
        return tEmployedPeopleInfoChangelogMapper.deleteTEmployedPeopleInfoChangelogById(employedPeopleId);
    }
}