package com.unis.crk.quality.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.unis.crk.quality.entity.QualityCheckitem;
import com.unis.crk.quality.mapper.QualityCheckitemMapper;
import com.unis.crk.quality.service.IQualityCheckitemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 质量标准-等级标准表 服务实现类
 * </p>
 *
 * @author TangSong
 * @since 2022-02-09
 */
@Service
public class QualityCheckitemServiceImpl extends ServiceImpl<QualityCheckitemMapper, QualityCheckitem> implements IQualityCheckitemService {

    @Resource
    private QualityCheckitemMapper qualityCheckitemMapper;


    /**
     * 得到成品粮标准值
     *
     * @param standardID
     * @param lspzCode
     * @param lsdjCode
     * @return
     */
    @Override
    public List<Map<String, Object>> getCplBzz(String standardID, String lspzCode, String lsdjCode) {
        return qualityCheckitemMapper.getCplBzz("if",standardID,lspzCode,lsdjCode);
    }

    @Override
    public List<Map<String, Object>> getYlBzz(String standardID, String lspzCode, String lsdjCode) {
        return qualityCheckitemMapper.getYlBzz("if",standardID,lspzCode,lsdjCode);
    }
}
