package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.TReturnGoodsMapper;
import com.ruoyi.business.domain.TReturnGoods;
import com.ruoyi.business.service.ITReturnGoodsService;
import com.ruoyi.common.core.text.Convert;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author wms
 * @date 2022-08-25
 */
@Service
public class TReturnGoodsServiceImpl extends ServiceImpl<TReturnGoodsMapper, TReturnGoods> implements ITReturnGoodsService
{
    @Autowired
    private TReturnGoodsMapper tReturnGoodsMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param returngoodsid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public TReturnGoods selectTReturnGoodsByReturngoodsid(String returngoodsid)
    {
        return tReturnGoodsMapper.selectTReturnGoodsByReturngoodsid(returngoodsid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tReturnGoods 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TReturnGoods> selectTReturnGoodsList(TReturnGoods tReturnGoods)
    {
        return tReturnGoodsMapper.selectTReturnGoodsList(tReturnGoods);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tReturnGoods 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTReturnGoods(TReturnGoods tReturnGoods)
    {
        return tReturnGoodsMapper.insertTReturnGoods(tReturnGoods);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tReturnGoods 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTReturnGoods(TReturnGoods tReturnGoods)
    {
        return tReturnGoodsMapper.updateTReturnGoods(tReturnGoods);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param returngoodsids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTReturnGoodsByReturngoodsids(String returngoodsids)
    {
        return tReturnGoodsMapper.deleteTReturnGoodsByReturngoodsids(Convert.toStrArray(returngoodsids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param returngoodsid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTReturnGoodsByReturngoodsid(String returngoodsid)
    {
        return tReturnGoodsMapper.deleteTReturnGoodsByReturngoodsid(returngoodsid);
    }
}
