package com.deer.wms.produce.manage.service.impl;

import com.deer.wms.produce.manage.dao.ProcessMaterialsBomMapper;
import com.deer.wms.produce.manage.model.*;
import com.deer.wms.produce.manage.service.ProcessMaterialsBomService;
import com.deer.wms.project.seed.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by hy on 2019/07/19.
 */
@Service
@Transactional
public class ProcessMaterialsBomServiceImpl extends AbstractService<ProcessMaterialsBom, Integer> implements ProcessMaterialsBomService {

    @Autowired
    private ProcessMaterialsBomMapper processMaterialsBomMapper;

    @Override
    public List<ProcessMaterialsBomVo> findProcMatBomVoListByProId(ProcessMaterialsBomParams params) {
        return processMaterialsBomMapper.findProcMatBomVoListByProId(params);
    }

    @Override
    public List<ProcessMaterialsBom> findListByProcessBomId(ProcessMaterialsBomParams params) {
        return processMaterialsBomMapper.findListByProcessBomId(params);
    }

    @Override
    public List<MaterialInfoVo> findMaterilaListByProcessBomId(ProcessBom processBom) {
        return processMaterialsBomMapper.findMaterilaListByProcessBomId(processBom);
    }

    @Override
    public List<ProcessMaterialsBomVo> findProcMatBomVoListByProcBom(ProcessMaterialsBomParams procMatBomParams) {
        return processMaterialsBomMapper.findProcMatBomVoListByProcBom(procMatBomParams);
    }


    //@Override
    //public List<ProcessMaterialsBom> findList(ProcessMaterialsBomParams params) {
    //    return processMaterialsBomMapper.findList(params);
    //}
}
