فهرست منبع

文案库提交

zhouzeyu@c-top.com.cn 3 سال پیش
والد
کامیت
a568b00c29

+ 5 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/document/service/impl/DocumentLibraryServiceImpl.java

@@ -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("添加成功");