转PBOM-虚拟包处理
This commit is contained in:
parent
6d2abfa7a8
commit
94e04540ac
|
|
@ -192,22 +192,22 @@ public abstract class FormalEBomToPbomBase {
|
|||
//pbom 处于工作表
|
||||
else if (Objects.nonNull(oldParent) && oldParent.getStatus() < EBomStatusEnum.PUBLISHED.getValue()) {
|
||||
//if (oldParent.getCreatedBy().equals(parentVo.getCreatedBy())) {
|
||||
// if (ConvertToPBomModelEnum.OVERRIDE.equalsValue(convertMode.getValue())) {
|
||||
// if (oldParent.getCreatedBy().equals(parentVo.getCreatedBy()) || VersionUtil.compare(parentVo.getCurrentVersion(),oldParent.getCurrentVersion())>0) {
|
||||
// SpringUtil.getBean(BomNewPbomChildService.class).getBaseMapper().deleteByMap(ImmutableMap.of("parent_row_id", oldParent.getRowId()));
|
||||
// oldParent.setSourceRowId(parentVo.getBomRowId());
|
||||
// oldParent.setCreatedTime(LocalDateTime.now());
|
||||
// oldParent.setCreatedBy(SessionUtil.getUserCode());
|
||||
// oldParent.setDeptName(SessionUtil.getDepartName());
|
||||
// oldParent.setDeptRowId(SessionUtil.getDepartRowId());
|
||||
// this.pBomParentResult.add(oldParent);
|
||||
// return oldParent;
|
||||
// }
|
||||
//
|
||||
// } else {
|
||||
// // 降parentVo 及其子节点标记为不转换
|
||||
// markNoConvert(parentVo, parentList);
|
||||
// }
|
||||
if (ConvertToPBomModelEnum.OVERRIDE.equalsValue(convertMode.getValue())) {
|
||||
if (oldParent.getCreatedBy().equals(parentVo.getCreatedBy()) || VersionUtil.compare(parentVo.getCurrentVersion(),oldParent.getCurrentVersion())>0) {
|
||||
SpringUtil.getBean(BomNewPbomChildService.class).getBaseMapper().deleteByMap(ImmutableMap.of("parent_row_id", oldParent.getRowId()));
|
||||
oldParent.setSourceRowId(parentVo.getBomRowId());
|
||||
oldParent.setCreatedTime(LocalDateTime.now());
|
||||
oldParent.setCreatedBy(SessionUtil.getUserCode());
|
||||
oldParent.setDeptName(SessionUtil.getDepartName());
|
||||
oldParent.setDeptRowId(SessionUtil.getDepartRowId());
|
||||
this.pBomParentResult.add(oldParent);
|
||||
return oldParent;
|
||||
}
|
||||
|
||||
} else {
|
||||
// 降parentVo 及其子节点标记为不转换
|
||||
markNoConvert(parentVo, parentList);
|
||||
}
|
||||
return null;
|
||||
|
||||
} else { //pbom-处于正式表(全部生成小版本)
|
||||
|
|
|
|||
Loading…
Reference in New Issue