package com.zehong.system.service.impl;

import com.zehong.common.utils.DateUtils;
import com.zehong.system.domain.TWorkSupervisionFeedback;
import com.zehong.system.mapper.TWorkSupervisionFeedbackMapper;
import com.zehong.system.service.ITWorkSupervisionFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工作督导反馈Service业务层处理
 * 
 * @author zehong
 * @date 2025-08-15
 */
@Service
public class TWorkSupervisionFeedbackServiceImpl implements ITWorkSupervisionFeedbackService
{
    @Autowired
    private TWorkSupervisionFeedbackMapper tWorkSupervisionFeedbackMapper;

    /**
     * 查询工作督导反馈
     * 
     * @param feedbackId 工作督导反馈ID
     * @return 工作督导反馈
     */
    @Override
    public TWorkSupervisionFeedback selectTWorkSupervisionFeedbackById(Long feedbackId)
    {
        return tWorkSupervisionFeedbackMapper.selectTWorkSupervisionFeedbackById(feedbackId);
    }

    /**
     * 查询工作督导反馈列表
     * 
     * @param tWorkSupervisionFeedback 工作督导反馈
     * @return 工作督导反馈
     */
    @Override
    public List<TWorkSupervisionFeedback> selectTWorkSupervisionFeedbackList(TWorkSupervisionFeedback tWorkSupervisionFeedback)
    {
        return tWorkSupervisionFeedbackMapper.selectTWorkSupervisionFeedbackList(tWorkSupervisionFeedback);
    }

    /**
     * 新增工作督导反馈
     * 
     * @param tWorkSupervisionFeedback 工作督导反馈
     * @return 结果
     */
    @Override
    public int insertTWorkSupervisionFeedback(TWorkSupervisionFeedback tWorkSupervisionFeedback)
    {
        tWorkSupervisionFeedback.setCreateTime(DateUtils.getNowDate());
        return tWorkSupervisionFeedbackMapper.insertTWorkSupervisionFeedback(tWorkSupervisionFeedback);
    }

    /**
     * 修改工作督导反馈
     * 
     * @param tWorkSupervisionFeedback 工作督导反馈
     * @return 结果
     */
    @Override
    public int updateTWorkSupervisionFeedback(TWorkSupervisionFeedback tWorkSupervisionFeedback)
    {
        return tWorkSupervisionFeedbackMapper.updateTWorkSupervisionFeedback(tWorkSupervisionFeedback);
    }

    /**
     * 批量删除工作督导反馈
     * 
     * @param feedbackIds 需要删除的工作督导反馈ID
     * @return 结果
     */
    @Override
    public int deleteTWorkSupervisionFeedbackByIds(Long[] feedbackIds)
    {
        return tWorkSupervisionFeedbackMapper.deleteTWorkSupervisionFeedbackByIds(feedbackIds);
    }

    /**
     * 删除工作督导反馈信息
     * 
     * @param feedbackId 工作督导反馈ID
     * @return 结果
     */
    @Override
    public int deleteTWorkSupervisionFeedbackById(Long feedbackId)
    {
        return tWorkSupervisionFeedbackMapper.deleteTWorkSupervisionFeedbackById(feedbackId);
    }
}
