wangyunpeng 6 months ago
parent
commit
984a43b352

+ 3 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/ArticleAuditService.java

@@ -293,6 +293,9 @@ public class ArticleAuditService {
             record.setCreateTimestamp(now);
             reMatchRecordList.add(record);
         }
+        if (CollectionUtils.isEmpty(reMatchRecordList)) {
+            return;
+        }
         longArticleBaseMapper.batchInsertArticleReMatchRecord(reMatchRecordList);
     }