feat:审核成功后再新建钱包

This commit is contained in:
dzc committed 2025-03-13 21:59:07 +08:00
1 parent de8d31cf46
commit 3e64081964
1 file changed
+9 -7
@@ -189,15 +189,15 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
return userRole;
}).forEach(sysUserRoleMapper::insert);
// 创建用户默认钱包
CompletableFuture.runAsync(() -> {
remoteWalletService.createWallet(sysUser.getUserId());
});
remoteWalletService.userChange(sysUser.getUserId(), Boolean.FALSE);
if (isDeptAdmin) {
getSelf().applyFlow(sysUser);
} else {
// 创建用户默认钱包
CompletableFuture.runAsync(() -> {
remoteWalletService.createWallet(sysUser.getUserId());
});
remoteWalletService.userChange(sysUser.getUserId(), Boolean.FALSE);
}
return sysUser.getUserId();
@@ -806,6 +806,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
updateUser.setProcessStatus(processStatus);
updateUser.setProcessTime(LocalDateTime.now());
baseMapper.updateById(updateUser);
// 创建用户默认钱包
remoteWalletService.createWallet(detail.getUserId());
} catch (Exception e) {
e.printStackTrace();
log.error("|{}|审批回调意外的错误,dto:|{}|error:|{}|", TAG, JSON.toJSONString(dto), e.getMessage());