提交 49a38683 编写于 作者: shihao.bao's avatar shihao.bao

saas用户标签实时更新3

上级 c86c5367
流水线 #44270 已取消 于阶段
......@@ -112,7 +112,6 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
if (resultNx == 0) {
throw new PicaException(PicaResultCode.PARAM_IS_INVALID.code(), "重复提交");
}
Long id = 0L;
redisClient.expire(nxKey, 2);
if (resultNx == 1) {
//手机号加密
......@@ -138,7 +137,10 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
registerService.processRoleMap(account.getId());
insertSaasRole(req.getRoleId(), req.getHospitalId().longValue(), account.getId(), account.getId());
redisClient.del(nxKey);
id = account.getId();
//saas用户标签
CompletableFuture.runAsync(() -> this.refreshTag(account.getId(), picaUser.getToken()));
return 1;
}
//用户存在的处理逻辑 给出提示信息
......@@ -157,11 +159,6 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
}
}
//saas用户标签
if (id != 0) {
Long finalId = id;
CompletableFuture.runAsync(() -> this.refreshTag(finalId, picaUser.getToken()));
}
return 1;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册