Commit aaf63cee authored by alex yao's avatar alex yao

fix:限制文件个数

parent 6fc59a4d
...@@ -57,7 +57,7 @@ public class KnowledgeRestImpl implements KnowledgeRest { ...@@ -57,7 +57,7 @@ public class KnowledgeRestImpl implements KnowledgeRest {
synchronized (lock) { synchronized (lock) {
//次数检查 //次数检查
Integer knowledgeNum = equityInfo.getKnowledgeNum(); Integer knowledgeNum = equityInfo.getKnowledgeNum();
if (documentFiles.length + equityInfo.getUsedKnowledgeNum() > knowledgeNum) { if ((documentFiles.length + equityInfo.getUsedKnowledgeNum()) > knowledgeNum) {
throw new I18nMessageException("exception/create.num.limit"); throw new I18nMessageException("exception/create.num.limit");
} }
List<BizKnowledgeDocumentEntity> entities = knowledgeService.uploadDocument(documentFiles); List<BizKnowledgeDocumentEntity> entities = knowledgeService.uploadDocument(documentFiles);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment