jiangping
2023-10-24 349bcef9a96391d22522a3409adf5a89e7e70a95
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package doumeemes.service.ext.impl;
 
import doumeemes.core.model.PageData;
import doumeemes.core.model.PageWrap;
import doumeemes.dao.ext.dto.QueryBomDetailExtDTO;
import doumeemes.dao.ext.vo.BomDetailExtListVO;
import doumeemes.service.ext.BomDetailExtService;
import doumeemes.dao.ext.BomDetailExtMapper;
import doumeemes.service.business.MaterialService;
import doumeemes.service.business.UnitService;
import doumeemes.service.business.ProceduresService;
import doumeemes.service.business.BomService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * 物料清单明细Service实现
 * @author 江蹄蹄
 * @date 2022/04/20 11:01
 */
@Service
public class BomDetailExtServiceImpl implements BomDetailExtService {
 
    @Autowired
    private BomDetailExtMapper bomDetailExtMapper;
 
    @Autowired
    private MaterialService materialService;
 
    @Autowired
    private UnitService unitService;
 
    @Autowired
    private ProceduresService proceduresService;
 
    @Autowired
    private BomService bomService;
 
    @Override
    public PageData<BomDetailExtListVO> findPage(PageWrap<QueryBomDetailExtDTO> pageWrap) {
        PageHelper.startPage(pageWrap.getPage(), pageWrap.getCapacity());
        List<BomDetailExtListVO> result = bomDetailExtMapper.selectList(pageWrap.getModel());
        for (BomDetailExtListVO vo : result) {
            // 查询物料基本信息表列表
            // TODO
            // 查询物料单位信息表列表
            // TODO
            // 查询工序信息表列表
            // TODO
            // 查询物料清单信息表列表
            // TODO
        }
        return PageData.from(new PageInfo<>(result));
    }
}