jiaosong
2023-08-18 b5a63b29313463d1c2fd1b5678a2d6b2bb8a7044
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
package doumeemes.service.ext.impl;
 
import doumeemes.core.model.PageData;
import doumeemes.core.model.PageWrap;
import doumeemes.dao.ext.dto.QueryUnitDistributeExtDTO;
import doumeemes.dao.ext.vo.UnitDistributeExtListVO;
import doumeemes.service.ext.UnitDistributeExtService;
import doumeemes.dao.ext.UnitDistributeExtMapper;
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 10:57
 */
@Service
public class UnitDistributeExtServiceImpl implements UnitDistributeExtService {
 
    @Autowired
    private UnitDistributeExtMapper unitDistributeExtMapper;
 
    @Override
    public PageData<UnitDistributeExtListVO> findPage(PageWrap<QueryUnitDistributeExtDTO> pageWrap) {
        PageHelper.startPage(pageWrap.getPage(), pageWrap.getCapacity());
        List<UnitDistributeExtListVO> result = unitDistributeExtMapper.selectList(pageWrap.getModel());
        return PageData.from(new PageInfo<>(result));
    }
}