feat: 设计复核判断是否顶级添加用户顶级判断

This commit is contained in:
曹鹏飞 2024-03-28 16:04:39 +08:00
parent 756ce30237
commit b793bf01c4
1 changed files with 6 additions and 1 deletions

View File

@ -1185,7 +1185,12 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
List<Long> rowIds = dto.getRowIdList(); List<Long> rowIds = dto.getRowIdList();
List<BomNewEbomParentEntity> bomNewEbomParentEntityList = this.lambdaQuery().in(BomNewEbomParentEntity::getRowId, rowIds).eq(BomNewEbomParentEntity::getRootIs, 1).list(); List<BomNewEbomParentEntity> bomNewEbomParentEntityList = this.lambdaQuery()
.in(BomNewEbomParentEntity::getRowId, rowIds)
.and(wrapper -> wrapper.eq(BomNewEbomParentEntity::getRootIs, 1)
.or(w -> w.eq(BomNewEbomParentEntity::getCreatedBy, SessionUtil.getUserCode())
.and(w1 -> w1.eq(BomNewEbomParentEntity::getUserRootIs, 1))))
.list();
if (CollUtil.isEmpty(bomNewEbomParentEntityList)) { if (CollUtil.isEmpty(bomNewEbomParentEntityList)) {
// return ResultVO.error("下级BOM无法进行复核"); // return ResultVO.error("下级BOM无法进行复核");