Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
1498f3974f
|
|
@ -405,6 +405,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
child.setCurrentVersion(OriginalConstant.DEFAULT_BOM_VERSION);
|
child.setCurrentVersion(OriginalConstant.DEFAULT_BOM_VERSION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
child.setChildBomRowId(child.getRowId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -961,7 +962,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
private void updateSapState(Long rootBomRowId, SapStatusEnum sapState) {
|
private void updateSapState(Long rootBomRowId, SapStatusEnum sapState) {
|
||||||
lambdaUpdate().eq(BomNewEbomParentEntity::getRowId, rootBomRowId)
|
lambdaUpdate().eq(BomNewEbomParentEntity::getRowId, rootBomRowId)
|
||||||
.set(BomNewEbomParentEntity::getSapTime, LocalDateTime.now())
|
.set(BomNewEbomParentEntity::getSapTime, LocalDateTime.now())
|
||||||
.set(BomNewEbomParentEntity::getSapState, sapState)
|
.set(BomNewEbomParentEntity::getSapState, sapState.getValue())
|
||||||
.update();
|
.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1562,7 +1563,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
|
|
||||||
parentVO.setBomRowId(parentVO.getRowId());
|
parentVO.setBomRowId(parentVO.getRowId());
|
||||||
parentVO.setProjectType(projectType);
|
parentVO.setProjectType(projectType);
|
||||||
parentVO.setParentRowId(0l);
|
parentVO.setParentRowId(0L);
|
||||||
|
parentVO.setChildBomRowId(rowId);
|
||||||
materialMainService.intiMaterialInfo(ImmutableList.of(parentVO), EBomConstant.EBOM_IGNORED_FIELDS_INIT_MATERIAL_DEFAULT2);
|
materialMainService.intiMaterialInfo(ImmutableList.of(parentVO), EBomConstant.EBOM_IGNORED_FIELDS_INIT_MATERIAL_DEFAULT2);
|
||||||
vo.setDatas(getChild(bomRowId));
|
vo.setDatas(getChild(bomRowId));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -319,7 +319,7 @@ public class BomNewMbomParentService extends ServiceImpl<BomNewMbomParentMapper,
|
||||||
private void updateSapState(Long rootBomRowId, SapStatusEnum sapState) {
|
private void updateSapState(Long rootBomRowId, SapStatusEnum sapState) {
|
||||||
lambdaUpdate().eq(BomNewMbomParentEntity::getRowId, rootBomRowId)
|
lambdaUpdate().eq(BomNewMbomParentEntity::getRowId, rootBomRowId)
|
||||||
.set(BomNewMbomParentEntity::getSysnSapTime, LocalDateTime.now())
|
.set(BomNewMbomParentEntity::getSysnSapTime, LocalDateTime.now())
|
||||||
.set(BomNewMbomParentEntity::getStatus, sapState)
|
.set(BomNewMbomParentEntity::getStatus, sapState.getValue())
|
||||||
.update();
|
.update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -379,6 +379,9 @@ public class DQBomImportService {
|
||||||
dQbomExcelVO.setProjectType(BomConstant.PROJECT_TYPE_TEMPORARY);
|
dQbomExcelVO.setProjectType(BomConstant.PROJECT_TYPE_TEMPORARY);
|
||||||
}
|
}
|
||||||
dQbomExcelVO.setCurrentVersion("");
|
dQbomExcelVO.setCurrentVersion("");
|
||||||
|
if (StrUtil.isBlank(dQbomExcelVO.getProjectType())) {
|
||||||
|
dQbomExcelVO.setProjectType("L");
|
||||||
|
}
|
||||||
|
|
||||||
excelContextTL.get().add(dQbomExcelVO);
|
excelContextTL.get().add(dQbomExcelVO);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue