rootis ->userRootIs
This commit is contained in:
parent
95443fc3f0
commit
4cf50914a1
|
|
@ -1186,7 +1186,7 @@ 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::getUserRootIs, rowIds).eq(BomNewEbomParentEntity::getUserRootIs, 1).list();
|
||||||
|
|
||||||
if (CollUtil.isEmpty(bomNewEbomParentEntityList)) {
|
if (CollUtil.isEmpty(bomNewEbomParentEntityList)) {
|
||||||
// return ResultVO.error("下级BOM无法进行复核");
|
// return ResultVO.error("下级BOM无法进行复核");
|
||||||
|
|
@ -1586,6 +1586,18 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
|
|
||||||
|
|
||||||
if (eBomEdit.getParentEntity() != null) {
|
if (eBomEdit.getParentEntity() != null) {
|
||||||
|
|
||||||
|
|
||||||
|
if(ObjectUtil.isNotNull(eBomEdit.getParentEntity().getLastVersionIs()) && ObjectUtil.equal(eBomEdit.getParentEntity().getLastVersionIs(),1)) {
|
||||||
|
QueryWrapper<BomNewEbomParentEntity> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.lambda().eq(BomNewEbomParentEntity::getMaterialNo, eBomEdit.getParentEntity().getMaterialNo());
|
||||||
|
queryWrapper.lambda().eq(BomNewEbomParentEntity::getLastVersionIs, 1);
|
||||||
|
queryWrapper.lambda().notIn(BomNewEbomParentEntity::getRowId, eBomEdit.getParentEntity().getRowId());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
this.saveOrUpdate(eBomEdit.getParentEntity());
|
this.saveOrUpdate(eBomEdit.getParentEntity());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue