Merge remote-tracking branch 'origin/feature/DM/nflg-bom-transition' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
ad91ce1a18
|
|
@ -2486,7 +2486,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
//根据编号或图号搜索
|
//根据编号或图号搜索
|
||||||
//从顶级开始查找
|
//从顶级开始查找
|
||||||
List<BomNewEbomParentVO> roots = result.getRecords().stream()
|
List<BomNewEbomParentVO> roots = result.getRecords().stream()
|
||||||
.filter(r -> StrUtil.equals(r.getMaterialNo(), query.getMaterialNo()) || StrUtil.equals(r.getDrawingNo(), query.getDrawingNo()))
|
.filter(r -> (StrUtil.isNotBlank(query.getMaterialNo()) && StrUtil.equals(r.getMaterialNo(), query.getMaterialNo()))
|
||||||
|
|| (StrUtil.isNotBlank(query.getDrawingNo()) && StrUtil.equals(r.getDrawingNo(), query.getDrawingNo())))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
roots.forEach(this::buildChildren);
|
roots.forEach(this::buildChildren);
|
||||||
//从子级开始查找
|
//从子级开始查找
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ public class DQBomImportService {
|
||||||
EecExcelUtil.handlerExcel(file.getInputStream(), DQbomExcelVO.class, this::handlerExcelRow);
|
EecExcelUtil.handlerExcel(file.getInputStream(), DQbomExcelVO.class, this::handlerExcelRow);
|
||||||
|
|
||||||
List<DQbomExcelVO> datas = excelContextTL.get();
|
List<DQbomExcelVO> datas = excelContextTL.get();
|
||||||
|
VUtils.isTure(datas.isEmpty()).throwMessage("未读取到数据,请检查表头是否正确");
|
||||||
|
|
||||||
List<OperationErrorMsgVO> errorMsg = checkExcel(datas);
|
List<OperationErrorMsgVO> errorMsg = checkExcel(datas);
|
||||||
if (!errorMsg.isEmpty()) {
|
if (!errorMsg.isEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue