package com.ruoyi.predict.service.impl;

import com.ruoyi.predict.domain.Formula;
import com.ruoyi.predict.mapper.FormulaMapper;
import com.ruoyi.predict.service.IFormulaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * FormulaService业务层处理
 *
 * @author hlf
 * @date 2022-01-10
 */
@Service
public class FormulaServiceImpl implements IFormulaService {
    @Autowired(required = false)
    private FormulaMapper formulaMapper;

    /**
     * 查询Formula
     *
     * @param formulaNo FormulaID
     * @return Formula
     */
    @Override
    public Formula selectFormulaById(Long formulaNo) {
        return formulaMapper.selectFormulaById(formulaNo);
    }

    /**
     * 查询Formula列表
     *
     * @param formula Formula
     * @return Formula
     */
    @Override
    public List<Formula> selectFormulaList(Formula formula) {
        return formulaMapper.selectFormulaList(formula);
    }
}
