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); }