From c284931d1d2e8eba09c3b1000fddc5fb0264c44f Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 18 Jul 2022 19:51:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8A=A8=E7=94=BBrss=E6=97=B6=E7=9A=84=E4=B8=80=E5=A4=84?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/tools/services/BangumiServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java b/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java index 29f7bea..2c7386d 100644 --- a/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java +++ b/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java @@ -39,7 +39,7 @@ public class BangumiServiceImpl implements BangumiService { @Override public int addBangumiItem(BangumiItem... list) { for (BangumiItem item : list) { - if (item.getId().equals(-1)) { + if (item.getId() != null&&item.getId().equals(-1)) { RedisTools.list_add("anim_tmp_rss", JSON.toJSON(item).toString()); } else if (itemDao.insert(item) <= 0) { return 0;