T项的版本和11类一样,都是B00

This commit is contained in:
10002327 2024-11-06 17:01:03 +08:00
parent a5d7c025b1
commit f6afff1bfb
4 changed files with 14 additions and 10 deletions

View File

@ -402,7 +402,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
child.setTechnologyUserCode(parent.getTechnologyUserCode());
child.setTechnologyUserName(parent.getTechnologyUserName());
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241012
if(MaterialshouldBomExistUtil.checkNoNeedBom(child)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(child) ||
Objects.equals("T",child.getProjectType())){
child.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}else if (MaterialshouldBomExistUtil.checkShouldBomExist(child)) {
child.setCurrentVersion(OriginalConstant.NO_BOM_VERSION);
@ -487,7 +488,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
//child.setSource(Objects.nonNull(parent) ? parent.getSource() : EBomSourceEnum.FROM_BOM.getValue());
child.setBomRowId(0L);
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241012
if(MaterialshouldBomExistUtil.checkNoNeedBom(child)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(child) ||
Objects.equals("T",child.getProjectType())){
child.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}else if (MaterialshouldBomExistUtil.checkShouldBomExist(child)) {
child.setCurrentVersion(OriginalConstant.NO_BOM_VERSION);

View File

@ -251,7 +251,8 @@ public class ForwardReportService {
vo.setExpireEndTime(parentEntity.getExpireEndTime());
}
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241012
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo) ||
Objects.equals("T",vo.getProjectType())){
vo.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}else if (MaterialshouldBomExistUtil.checkShouldBomExist(vo)) {
vo.setCurrentVersion(OriginalConstant.NO_BOM_VERSION);
@ -349,7 +350,8 @@ public class ForwardReportService {
}
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241012
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo) ||
Objects.equals("T",vo.getProjectType())){
vo.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}else if (MaterialshouldBomExistUtil.checkShouldBomExist(vo)) {
vo.setCurrentVersion(OriginalConstant.NO_BOM_VERSION);

View File

@ -312,7 +312,7 @@ public class EBomForwardReport extends BaseForwardReport {
item.setBomVersion(parentFormal.getCurrentVersion());
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241101
if(MaterialshouldBomExistUtil.checkNoNeedBom(item)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(item) || Objects.equals("T",item.getProjectType())){
item.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}
});
@ -492,7 +492,7 @@ public class EBomForwardReport extends BaseForwardReport {
// vo.setDeviseName(parentFormal.getDeviseName());
// vo.setExpireEndTime(parentFormal.getConvertToEbomTime());
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241101
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo) || Objects.equals("T",vo.getProjectType())){
vo.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}
}
@ -535,7 +535,7 @@ public class EBomForwardReport extends BaseForwardReport {
vo.setOrderNumber(orderNum.incrementAndGet() + "");
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241101
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo) || Objects.equals("T",vo.getProjectType())){
vo.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}
}

View File

@ -324,7 +324,7 @@ public class PBomForwardReport extends BaseForwardReport {
nodeList.forEach(item->{
item.setBomVersion(parentFormal.getCurrentVersion());
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241101
if(MaterialshouldBomExistUtil.checkNoNeedBom(item)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(item) || Objects.equals("T",item.getProjectType())){
item.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}
});
@ -521,7 +521,7 @@ public class PBomForwardReport extends BaseForwardReport {
// vo.setCreatedTime(parentFormal.getCreatedTime());
// vo.setExpireEndTime(parentFormal.getReleaseTime());
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241101
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo) || Objects.equals("T",vo.getProjectType())){
vo.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}
}
@ -561,7 +561,7 @@ public class PBomForwardReport extends BaseForwardReport {
// vo.setLevelNum(1);
vo.setOrderNumber(orderNum.incrementAndGet() + "");
// 1040506070大类以及200201小类这些不需要BOM的物料版本号显示B00 by 10002327 241101
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo)){
if(MaterialshouldBomExistUtil.checkNoNeedBom(vo) || Objects.equals("T",vo.getProjectType())){
vo.setCurrentVersion(OriginalConstant.NO_NEED_BOM);
}
}