package com.ruoyi.predict.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.predict.domain.WtgTheorypowerData;
import com.ruoyi.predict.mapper.WtgTheorypowerDataMapper;
import com.ruoyi.predict.service.IWtgTheorypowerDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * WtgTheorypowerDataService业务层处理
 * 
 * @author hlf
 * @date 2022-09-22
 */
@Service
public class WtgTheorypowerDataServiceImpl implements IWtgTheorypowerDataService 
{
    @Autowired(required = false)
    private WtgTheorypowerDataMapper wtgTheorypowerDataMapper;

    /**
     * 查询WtgTheorypowerData
     * 
     * @param wturNo WtgTheorypowerDataID
     * @return WtgTheorypowerData
     */
    @Override
    public WtgTheorypowerData selectWtgTheorypowerDataById(Long wturNo)
    {
        return wtgTheorypowerDataMapper.selectWtgTheorypowerDataById(wturNo);
    }

    /**
     * 查询WtgTheorypowerData列表
     * 
     * @param wtgTheorypowerData WtgTheorypowerData
     * @return WtgTheorypowerData
     */
    @Override
    public List<WtgTheorypowerData> selectWtgTheorypowerDataList(WtgTheorypowerData wtgTheorypowerData)
    {
        return wtgTheorypowerDataMapper.selectWtgTheorypowerDataList(wtgTheorypowerData);
    }

    /**
     * 新增WtgTheorypowerData
     * 
     * @param wtgTheorypowerData WtgTheorypowerData
     * @return 结果
     */
    @Override
    public int insertWtgTheorypowerData(WtgTheorypowerData wtgTheorypowerData)
    {
        return wtgTheorypowerDataMapper.insertWtgTheorypowerData(wtgTheorypowerData);
    }

    /**
     * 修改WtgTheorypowerData
     * 
     * @param wtgTheorypowerData WtgTheorypowerData
     * @return 结果
     */
    @Override
    public int updateWtgTheorypowerData(WtgTheorypowerData wtgTheorypowerData)
    {
        return wtgTheorypowerDataMapper.updateWtgTheorypowerData(wtgTheorypowerData);
    }

    /**
     * 删除WtgTheorypowerData对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWtgTheorypowerDataByIds(String ids)
    {
        return wtgTheorypowerDataMapper.deleteWtgTheorypowerDataByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除WtgTheorypowerData信息
     * 
     * @param wturNo WtgTheorypowerDataID
     * @return 结果
     */
    @Override
    public int deleteWtgTheorypowerDataById(Long wturNo)
    {
        return wtgTheorypowerDataMapper.deleteWtgTheorypowerDataById(wturNo);
    }
}
