package com.ruoyi.predict.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.predict.domain.StandardPointManagement;
import com.ruoyi.predict.mapper.StandardPointManagementMapper;
import com.ruoyi.predict.service.IStandardPointManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * StandardPointManagementService业务层处理
 * 
 * @author hlf
 * @date 2022-10-21
 */
@Service
public class StandardPointManagementServiceImpl implements IStandardPointManagementService 
{
    @Autowired(required = false)
    private StandardPointManagementMapper standardPointManagementMapper;

    /**
     * 查询StandardPointManagement
     * 
     * @param itemType StandardPointManagementID
     * @return StandardPointManagement
     */
    @Override
    public StandardPointManagement selectStandardPointManagementById(Long itemNo)
    {
        return standardPointManagementMapper.selectStandardPointManagementById(itemNo);
    }

    /**
     * 查询StandardPointManagement列表
     * 
     * @param standardPointManagement StandardPointManagement
     * @return StandardPointManagement
     */
    @Override
    public List<StandardPointManagement> selectStandardPointManagementList(StandardPointManagement standardPointManagement)
    {
        return standardPointManagementMapper.selectStandardPointManagementList(standardPointManagement);
    }

    /**
     * 新增StandardPointManagement
     * 
     * @param standardPointManagement StandardPointManagement
     * @return 结果
     */
    @Override
    public int insertStandardPointManagement(StandardPointManagement standardPointManagement)
    {
        return standardPointManagementMapper.insertStandardPointManagement(standardPointManagement);
    }

    /**
     * 修改StandardPointManagement
     * 
     * @param standardPointManagement StandardPointManagement
     * @return 结果
     */
    @Override
    public int updateStandardPointManagement(StandardPointManagement standardPointManagement)
    {
        return standardPointManagementMapper.updateStandardPointManagement(standardPointManagement);
    }

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

    /**
     * 删除StandardPointManagement信息
     * 
     * @param itemNo StandardPointManagementID
     * @return 结果
     */
    @Override
    public int deleteStandardPointManagementById(Long itemNo)
    {
        return standardPointManagementMapper.deleteStandardPointManagementById(itemNo);
    }
}
