靓号审核处理
This commit is contained in:
parent
d21f0805f2
commit
202411bba8
@ -66,22 +66,20 @@ public class UserBeautifulNumberClientServiceImpl implements
|
|||||||
ResponseAssert.isTrue(CommonErrorCode.TYPE_IS_NOT_IN_SCOPE, checkState(state));
|
ResponseAssert.isTrue(CommonErrorCode.TYPE_IS_NOT_IN_SCOPE, checkState(state));
|
||||||
ResponseAssert.isTrue(CommonErrorCode.DATA_ERROR, beautifulNumberApply.getState() == 0);
|
ResponseAssert.isTrue(CommonErrorCode.DATA_ERROR, beautifulNumberApply.getState() == 0);
|
||||||
|
|
||||||
userBeautifulNumberApplyService.handleApply(id, state);
|
|
||||||
|
|
||||||
UserRegionDTO userRegion = userRegionGateway.getUserRegion(beautifulNumberApply.getApplyUser());
|
UserRegionDTO userRegion = userRegionGateway.getUserRegion(beautifulNumberApply.getApplyUser());
|
||||||
String regionCode = userRegion.getRegionCode();
|
String regionCode = userRegion.getRegionCode();
|
||||||
|
|
||||||
SystemI18nConfig applyContent;
|
SystemI18nConfig applyContent;
|
||||||
String content;
|
String content;
|
||||||
if (state == 1) {
|
if (state == 1) {
|
||||||
|
boolean exists = userSpecialIdService.exists(userRegion.getSysOrigin(), beautifulNumberApply.getApplyAccount());
|
||||||
|
ResponseAssert.isFalse(OtherErrorCode.SPECIAL_ID_ALREADY_EXISTS, exists);
|
||||||
|
|
||||||
UserSpecialId userSpecialId = userSpecialIdService.getByUserId(beautifulNumberApply.getApplyUser());
|
UserSpecialId userSpecialId = userSpecialIdService.getByUserId(beautifulNumberApply.getApplyUser());
|
||||||
if (Objects.nonNull(userSpecialId)) {
|
if (Objects.nonNull(userSpecialId)) {
|
||||||
userSpecialIdService.remove(userSpecialId.getId());
|
userSpecialIdService.remove(userSpecialId.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean exists = userSpecialIdService.exists(userRegion.getSysOrigin(), beautifulNumberApply.getApplyAccount());
|
|
||||||
ResponseAssert.isFalse(OtherErrorCode.SPECIAL_ID_ALREADY_EXISTS, exists);
|
|
||||||
|
|
||||||
// 创建新靓号
|
// 创建新靓号
|
||||||
UserSpecialId specialIdCmd = new UserSpecialId();
|
UserSpecialId specialIdCmd = new UserSpecialId();
|
||||||
specialIdCmd.setSysOrigin(beautifulNumberApply.getSysOrigin());
|
specialIdCmd.setSysOrigin(beautifulNumberApply.getSysOrigin());
|
||||||
@ -100,6 +98,8 @@ public class UserBeautifulNumberClientServiceImpl implements
|
|||||||
remark);
|
remark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userBeautifulNumberApplyService.handleApply(id, state);
|
||||||
|
|
||||||
officialNoticeClient.send(
|
officialNoticeClient.send(
|
||||||
NoticeExtTemplateCustomizeCmd.builder()
|
NoticeExtTemplateCustomizeCmd.builder()
|
||||||
.toAccount(beautifulNumberApply.getApplyUser())
|
.toAccount(beautifulNumberApply.getApplyUser())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user