|
@@ -126,7 +126,11 @@ public class DocumentLibraryServiceImpl implements DocumentLibraryService {
|
|
|
documentLibraryInfo.setStatus(0);
|
|
|
for (String accountId : accountIds) {
|
|
|
documentLibraryInfo.setAccountId(accountId);
|
|
|
- documentLibraryMapper.saveDocumentLibrary(documentLibraryInfo);
|
|
|
+ List<String> dataByAccountId = documentLibraryMapper.getDataByAccountId(accountId, copyWriterId);
|
|
|
+ if (dataByAccountId == null || dataByAccountId.size() == 0) {
|
|
|
+ documentLibraryMapper.saveDocumentLibrary(documentLibraryInfo);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
result.success("添加成功");
|