From 48c6cce5edd112321261608a0c7657bdb43e6e16 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 28 Jan 2026 15:02:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=9B=BE=E7=89=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/command/dynamic/add/DynamicContentAddCmdExe.java | 5 ++++- .../red/circle/other/app/listener/CensorProfileListener.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/add/DynamicContentAddCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/add/DynamicContentAddCmdExe.java index f9cf3f43..6410e13e 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/add/DynamicContentAddCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/add/DynamicContentAddCmdExe.java @@ -177,7 +177,10 @@ public class DynamicContentAddCmdExe { DynamicPicture dynamicPicture = new DynamicPicture(); - dynamicPicture.setId(IdWorkerUtils.getId()); + long picId = IdWorkerUtils.getId(); + picture.setId(picId); + + dynamicPicture.setId(picId); dynamicPicture.setDynamicId(contentId); if (StringUtils.isNotBlank(picture.getResourceUrl())) { dynamicPicture.setResourceUrl(ResponseAssert.requiredSuccess( diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java index 84efc301..431fd054 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/CensorProfileListener.java @@ -174,7 +174,7 @@ public class CensorProfileListener implements MessageListener { } //修改动态图片列表图片状态与机器打分 - dynamicPictureService.updateApprovalBySelective(pictures); + dynamicPictureService.updateBatchById(pictures); }