feat: 设计复核判断是否顶级添加用户顶级判断
This commit is contained in:
parent
756ce30237
commit
b793bf01c4
|
|
@ -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无法进行复核");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue