REQ-3540: 更新文件大小
This commit is contained in:
parent
61d1511493
commit
33ad8ea857
@ -31,7 +31,6 @@ import cn.axzo.nanopart.doc.dao.DocLockDao;
|
|||||||
import cn.axzo.nanopart.doc.dao.IndexNodeDao;
|
import cn.axzo.nanopart.doc.dao.IndexNodeDao;
|
||||||
import cn.axzo.nanopart.doc.entity.IndexNode;
|
import cn.axzo.nanopart.doc.entity.IndexNode;
|
||||||
import cn.axzo.nanopart.doc.entity.domain.Path;
|
import cn.axzo.nanopart.doc.entity.domain.Path;
|
||||||
import cn.axzo.nanopart.doc.file.index.domain.NameUsedException;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@ -132,8 +131,7 @@ public class IndexSupport {
|
|||||||
|
|
||||||
void ensureChildNameNotUsed(IndexNodeParentScope parentScope, IndexNodeType nodeType, String childName) {
|
void ensureChildNameNotUsed(IndexNodeParentScope parentScope, IndexNodeType nodeType, String childName) {
|
||||||
IndexNode child = indexNodeDao.findValidChildByName(parentScope, nodeType, childName);
|
IndexNode child = indexNodeDao.findValidChildByName(parentScope, nodeType, childName);
|
||||||
if (child != null)
|
BizAssertions.assertNull(child, "名称已被使用");
|
||||||
throw new NameUsedException("名称已被使用");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lockParentAndReleaseOnCommit(IndexNodeParentScope parentScope) {
|
void lockParentAndReleaseOnCommit(IndexNodeParentScope parentScope) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user