fix: ebom中不存在引用件的概念
This commit is contained in:
parent
762422d2ba
commit
b902e685ec
|
|
@ -12,10 +12,10 @@ public enum EBomStatusEnum implements ValueEnum<Integer> {
|
|||
CHECKED(2,"已复核"),
|
||||
RETURNED(3,"已退回"),
|
||||
PUBLISHED(4,"定版(已发布PBOM)"),
|
||||
BORROWED_PARTS(99, "借用件"),
|
||||
BORROWED_PARTS(99, "借用件");
|
||||
|
||||
//非自己创建的
|
||||
REFERENCE(100, "引用件");
|
||||
//REFERENCE(100, "引用件");
|
||||
|
||||
|
||||
private final Integer value;
|
||||
|
|
|
|||
|
|
@ -340,10 +340,10 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
if (parentEntity.getStatus().equals(EBomStatusEnum.PUBLISHED.getValue())) {
|
||||
child.setStatus(EBomStatusEnum.BORROWED_PARTS.getValue());
|
||||
}
|
||||
//非本人则为借用件
|
||||
else if (!parentEntity.getCreatedBy().equals(child.getCreatedBy())) {
|
||||
child.setStatus(EBomStatusEnum.REFERENCE.getValue());
|
||||
}
|
||||
// //非本人则为借用件
|
||||
// else if (!parentEntity.getCreatedBy().equals(child.getCreatedBy())) {
|
||||
// child.setStatus(EBomStatusEnum.REFERENCE.getValue());
|
||||
// }
|
||||
|
||||
} else { //无BOM-版本时 确定版本号
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue