fix(pbom): 优化根节点判断
This commit is contained in:
parent
ae1d544aa1
commit
855eddfc1c
|
|
@ -1194,7 +1194,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
||||||
public List<OperationErrorMsgVO> importToSAP2(PbomImportToSAPQuery query) {
|
public List<OperationErrorMsgVO> importToSAP2(PbomImportToSAPQuery query) {
|
||||||
BomNewPbomParentEntity root = getById(query.getRootBomRowId());
|
BomNewPbomParentEntity root = getById(query.getRootBomRowId());
|
||||||
VUtils.isTure(Objects.isNull(root)).throwMessage("数据不存在");
|
VUtils.isTure(Objects.isNull(root)).throwMessage("数据不存在");
|
||||||
VUtils.isTure(root.getRootIs() != 1).throwMessage("请选择根节点");
|
VUtils.isTure(root.getUserRootIs() != 1 && root.getRootIs() != 1).throwMessage("请选择根节点");
|
||||||
|
|
||||||
// IBomNewPbomExportToSAP service;
|
// IBomNewPbomExportToSAP service;
|
||||||
// if (root.getMaterialNo().startsWith("31")) {
|
// if (root.getMaterialNo().startsWith("31")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue