package com.yunfeiyun.agmp.fms.service.impl;

import java.util.List;

import com.yunfeiyun.agmp.fms.domain.TssGoodsperiodrcd;
import com.yunfeiyun.agmp.fms.mapper.TssGoodsperiodrcdMapper;
import com.yunfeiyun.agmp.fms.service.ITssGoodsperiodrcdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 农产品溯源周期记录Service业务层处理
 * 
 * @author 杨晓辉
 * @date 2023-07-25
 */
@Service
public class TssGoodsperiodrcdServiceImpl implements ITssGoodsperiodrcdService
{
    @Autowired
    private TssGoodsperiodrcdMapper tssGoodsperiodrcdMapper;

    /**
     * 查询农产品溯源周期记录
     * 
     * @param goodsperiodrcdId 农产品溯源周期记录主键
     * @return 农产品溯源周期记录
     */
    @Override
    public TssGoodsperiodrcd selectTssGoodsperiodrcdByGoodsperiodrcdId(String goodsperiodrcdId)
    {
        return tssGoodsperiodrcdMapper.selectTssGoodsperiodrcdByGoodsperiodrcdId(goodsperiodrcdId);
    }

    /**
     * 查询农产品溯源周期记录列表
     * 
     * @param tssGoodsperiodrcd 农产品溯源周期记录
     * @return 农产品溯源周期记录
     */
    @Override
    public List<TssGoodsperiodrcd> selectTssGoodsperiodrcdList(TssGoodsperiodrcd tssGoodsperiodrcd)
    {
        return tssGoodsperiodrcdMapper.selectTssGoodsperiodrcdList(tssGoodsperiodrcd);
    }

    /**
     * 新增农产品溯源周期记录
     * 
     * @param tssGoodsperiodrcd 农产品溯源周期记录
     * @return 结果
     */
    @Override
    public int insertTssGoodsperiodrcd(TssGoodsperiodrcd tssGoodsperiodrcd)
    {
        return tssGoodsperiodrcdMapper.insertTssGoodsperiodrcd(tssGoodsperiodrcd);
    }

    /**
     * 修改农产品溯源周期记录
     * 
     * @param tssGoodsperiodrcd 农产品溯源周期记录
     * @return 结果
     */
    @Override
    public int updateTssGoodsperiodrcd(TssGoodsperiodrcd tssGoodsperiodrcd)
    {
        return tssGoodsperiodrcdMapper.updateTssGoodsperiodrcd(tssGoodsperiodrcd);
    }

    /**
     * 批量删除农产品溯源周期记录
     * 
     * @param goodsperiodrcdIds 需要删除的农产品溯源周期记录主键
     * @return 结果
     */
    @Override
    public int deleteTssGoodsperiodrcdByGoodsperiodrcdIds(String[] goodsperiodrcdIds)
    {
        return tssGoodsperiodrcdMapper.deleteTssGoodsperiodrcdByGoodsperiodrcdIds(goodsperiodrcdIds);
    }

    /**
     * 删除农产品溯源周期记录信息
     * 
     * @param goodsperiodrcdId 农产品溯源周期记录主键
     * @return 结果
     */
    @Override
    public int deleteTssGoodsperiodrcdByGoodsperiodrcdId(String goodsperiodrcdId)
    {
        return tssGoodsperiodrcdMapper.deleteTssGoodsperiodrcdByGoodsperiodrcdId(goodsperiodrcdId);
    }
}
