Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
23f3147edc
|
|
@ -1118,7 +1118,11 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
|
||||
ImportSapParamDTO sapDto = new ImportSapParamDTO();
|
||||
sapDto.setZID(RandomUtil.randomNumbers(5));
|
||||
sapDto.setI_WERKS("1");
|
||||
if (StrUtil.equals(root.getFacCode(), EBomConstant.MAIN_FACTORY_CODE_1010)) {
|
||||
sapDto.setI_WERKS("1");
|
||||
} else if (StrUtil.equals(root.getFacCode(), EBomConstant.XIAN_TAO_FACTORY_CODE_1020)) {
|
||||
sapDto.setI_WERKS("2");
|
||||
}
|
||||
sapDto.setI_STLAN("1");
|
||||
sapDto.setI_EMPNO(root.getCreatedBy());
|
||||
List<T1DTO> t1s = new ArrayList<>();
|
||||
|
|
@ -1156,7 +1160,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
for (BomNewPbomChildEntity c : children) {
|
||||
BomNewPbomParentEntity cp = lambdaQuery()
|
||||
.eq(BomNewPbomParentEntity::getMaterialNo, c.getMaterialNo())
|
||||
.eq(BomNewPbomParentEntity::getStatus, EBomStatusEnum.PUBLISHED.getValue())
|
||||
.eq(BomNewPbomParentEntity::getFacCode, parent.getFacCode())
|
||||
.eq(BomNewPbomParentEntity::getStatus, PBomStatusEnum.FACTORY_CONFIRM.getValue())
|
||||
.orderByDesc(BomNewPbomParentEntity::getRowId)
|
||||
.last(" limit 1")
|
||||
.one();
|
||||
|
|
|
|||
Loading…
Reference in New Issue