pbom-发布只发布自己的

This commit is contained in:
大米 2024-09-05 19:37:13 +08:00
parent f888d1ef70
commit ed45236c00
1 changed files with 1 additions and 1 deletions

View File

@ -1188,7 +1188,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
*/
private void initPBomCurrentVersion(List<BomNewPbomParentVO> allPBom){
List<BomNewPbomParentVO> waitReleaseBom = allPBom.stream().filter(u -> PBomStatusEnum.WAIT_PUBLISH.equalsValue(u.getStatus()) && u.getBomRowId() > 0).collect(Collectors.toList());
List<BomNewPbomParentVO> waitReleaseBom = allPBom.stream().filter(u ->SessionUtil.getUserCode().equals(u.getCreatedBy()) && PBomStatusEnum.WAIT_PUBLISH.equalsValue(u.getStatus()) && u.getBomRowId() > 0).collect(Collectors.toList());
for (BomNewPbomParentVO newPBom : waitReleaseBom) {
BomNewPbomParentEntity oldParent = SpringUtil.getBean(BomNewPbomParentService.class).lambdaQuery()