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