feat(pbom): 从SAP导入过来的数据,再次执行导入时,不再导入到SAP中去

This commit is contained in:
曹鹏飞 2024-08-08 15:18:19 +08:00
parent 38f4695d85
commit 7a329674d1
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ public class BomNewPbomExportToSAPImpl implements IBomNewPbomExportToSAP {
.eq(BomNewPbomParentEntity::getMaterialNo, child.getMaterialNo())
.ge(BomNewPbomParentEntity::getStatus, PBomStatusEnum.PUBLISH.getValue())
.eq(BomNewPbomParentEntity::getFacCode, child.getFacCode())
.ne(BomNewPbomParentEntity::getSource, PbomSourceEnum.FROM_SAP.getValue())
.orderByDesc(BomNewPbomParentEntity::getCurrentVersion)
.last(" limit 1")
.one();