注释获取订单号
This commit is contained in:
parent
67bfc6686a
commit
0bf8ed6c1f
|
|
@ -722,11 +722,11 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
BomNewPbomParentEntity rootParent = this.getById(bomRowId);
|
||||
List<BomNewPbomParentVO> allChild = getAllBom(bomRowId, 0);
|
||||
|
||||
if (StrUtil.isBlank(rootParent.getOrderNo())) {
|
||||
String orderNo = crmService.getOrderNo(rootParent.getMaterialNo());
|
||||
rootParent.setOrderNo(orderNo);
|
||||
}
|
||||
VUtils.isTure(StrUtil.isBlank(rootParent.getOrderNo())).throwMessage("没有获取到订单号");
|
||||
// if (StrUtil.isBlank(rootParent.getOrderNo())) {
|
||||
// String orderNo = crmService.getOrderNo(rootParent.getMaterialNo());
|
||||
// rootParent.setOrderNo(orderNo);
|
||||
// }
|
||||
// VUtils.isTure(StrUtil.isBlank(rootParent.getOrderNo())).throwMessage("没有获取到订单号");
|
||||
|
||||
List<String> noProductionFactoryCodeList = allChild.stream().filter(u -> StrUtil.isBlank(u.getProductionFactoryCode())).map(u -> u.getMaterialNo()).collect(Collectors.toList());
|
||||
VUtils.isTure(CollUtil.isNotEmpty(noProductionFactoryCodeList)).throwMessage(StrUtil.join(",", noProductionFactoryCodeList) + "物料暂未分工厂,请分完工厂再进行发布");
|
||||
|
|
|
|||
Loading…
Reference in New Issue