|
@@ -1,6 +1,7 @@
|
|
|
package com.fjhx.bom.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fjhx.base.BaseEntity;
|
|
@@ -34,7 +35,7 @@ import java.util.stream.Collectors;
|
|
|
public class BomServiceImpl extends ServiceImpl<BomMapper, Bom> implements BomService {
|
|
|
|
|
|
@Override
|
|
|
- public Page<BomEx> getPage(Map<String, String> condition) {
|
|
|
+ public IPage<BomEx> getPage(Map<String, String> condition) {
|
|
|
|
|
|
QueryWrapper<?> wrapper = WrapperUtil.init(condition)
|
|
|
.eq("p.classif_id", "classifId") // 分类查询
|
|
@@ -47,7 +48,7 @@ public class BomServiceImpl extends ServiceImpl<BomMapper, Bom> implements BomSe
|
|
|
wrapper.eq("b.current_edition", StatusConstant.YES); // 当前版本
|
|
|
wrapper.orderByAsc("p.code"); // 产品编码排序
|
|
|
|
|
|
- Page<BomEx> result = baseMapper.getPage(createPage(condition), wrapper);
|
|
|
+ IPage<BomEx> result = baseMapper.getPage(createPage(condition), wrapper);
|
|
|
List<BomEx> records = result.getRecords();
|
|
|
|
|
|
// 赋值最后修改人
|