XiaoRuby
2023-09-01 86adbb1544142dcfb48333dade822f81640607a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.yuanchu.mom.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.mom.mapper.MbomMapper;
import com.yuanchu.mom.pojo.Mbom;
import com.yuanchu.mom.service.MbomService;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
 
/**
 * 标准BOM-物料清单表(Mbom)表服务实现类
 *
 * @author zss
 * @since 2023-08-31 11:58:24
 */
@Service
public class MbomServiceImpl extends ServiceImpl<MbomMapper, Mbom> implements MbomService {
 
    @Resource
    MbomMapper mbomMapper;
 
    //根据型号id查询所有版本
    @Override
    public List<Integer> selectVerByMbom(Integer specificationsId) {
        return mbomMapper.selectVerByMbom(specificationsId);
    }
 
    //右侧数据展示-->物料清单
    @Override
    public List<Map<String, Object>> selectAllMbom(Integer specificationsId, Integer version,String message) {
        return mbomMapper.selectAllMbom(specificationsId,version,message);
    }
}