package com.ruoyi.project.shiftmgr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.shiftmgr.mapper.TShiftDailyInstructionMapper;
import com.ruoyi.project.shiftmgr.domain.TShiftDailyInstruction;
import com.ruoyi.project.shiftmgr.service.ITShiftDailyInstructionService;

/**
 * 每日生产指令Service业务层处理
 *
 * @author ruoyi
 * @date 2022-08-03
 */
@Service
public class TShiftDailyInstructionServiceImpl implements ITShiftDailyInstructionService
{
    @Autowired
    private TShiftDailyInstructionMapper tShiftDailyInstructionMapper;

    /**
     * 查询每日生产指令
     *
     * @param id 每日生产指令ID
     * @return 每日生产指令
     */
    @Override
    public TShiftDailyInstruction selectTShiftDailyInstructionById(Long id)
    {
        return tShiftDailyInstructionMapper.selectTShiftDailyInstructionById(id);
    }

    /**
     * 查询每日生产指令列表
     *
     * @param tShiftDailyInstruction 每日生产指令
     * @return 每日生产指令
     */
    @Override
    public List<TShiftDailyInstruction> selectTShiftDailyInstructionList(TShiftDailyInstruction tShiftDailyInstruction)
    {
        return tShiftDailyInstructionMapper.selectTShiftDailyInstructionList(tShiftDailyInstruction);
    }

    /**
     * 新增每日生产指令
     *
     * @param tShiftDailyInstruction 每日生产指令
     * @return 结果
     */
    @Override
    public int insertTShiftDailyInstruction(TShiftDailyInstruction tShiftDailyInstruction)
    {
        return tShiftDailyInstructionMapper.insertTShiftDailyInstruction(tShiftDailyInstruction);
    }

    /**
     * 修改每日生产指令
     *
     * @param tShiftDailyInstruction 每日生产指令
     * @return 结果
     */
    @Override
    public int updateTShiftDailyInstruction(TShiftDailyInstruction tShiftDailyInstruction)
    {
        return tShiftDailyInstructionMapper.updateTShiftDailyInstruction(tShiftDailyInstruction);
    }

    /**
     * 批量删除每日生产指令
     *
     * @param ids 需要删除的每日生产指令ID
     * @return 结果
     */
    @Override
    public int deleteTShiftDailyInstructionByIds(Long[] ids)
    {
        return tShiftDailyInstructionMapper.deleteTShiftDailyInstructionByIds(ids);
    }

    /**
     * 删除每日生产指令信息
     *
     * @param id 每日生产指令ID
     * @return 结果
     */
    @Override
    public int deleteTShiftDailyInstructionById(Long id)
    {
        return tShiftDailyInstructionMapper.deleteTShiftDailyInstructionById(id);
    }
}
