From 25a821a3a2c2cc06181e83ca4fffc3dc310cc166 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 12 Dec 2025 19:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=93=E5=8F=B7=E7=94=B3=E8=AF=B7=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/user/impl/UserBeautifulNumberApplyServiceImpl.java | 2 -- .../user/user/impl/UserBeautifulNumberClientServiceImpl.java | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/UserBeautifulNumberApplyServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/UserBeautifulNumberApplyServiceImpl.java index 25ba3adc..0752cd20 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/UserBeautifulNumberApplyServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/user/user/impl/UserBeautifulNumberApplyServiceImpl.java @@ -51,8 +51,6 @@ public class UserBeautifulNumberApplyServiceImpl extends @Override public void handleApply(Long id, Integer state) { UserBeautifulNumberApply apply = query().eq(UserBeautifulNumberApply::getId, id).getOne(); - ResponseAssert.notNull(CommonErrorCode.DATA_ERROR, apply); - apply.setUpdateTime(TimestampUtils.now()); apply.setState(state); updateSelectiveById(apply); diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java index 0cea175d..7950da60 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java @@ -52,10 +52,13 @@ public class UserBeautifulNumberClientServiceImpl implements @Override public void handleApply(Long id, Integer state, String remark) { + UserBeautifulNumberApply beautifulNumberApply = userBeautifulNumberApplyService.getById(id); + ResponseAssert.notNull(CommonErrorCode.DATA_ERROR, beautifulNumberApply); ResponseAssert.isTrue(CommonErrorCode.TYPE_IS_NOT_IN_SCOPE, checkState(state)); + ResponseAssert.isTrue(CommonErrorCode.DATA_ERROR, beautifulNumberApply.getState() == 0); + userBeautifulNumberApplyService.handleApply(id, state); - UserBeautifulNumberApply beautifulNumberApply = userBeautifulNumberApplyService.getById(id); String content; if (state == 1) { UserSpecialId userSpecialId = userSpecialIdService.getByUserId(beautifulNumberApply.getApplyUser());