|
@@ -547,6 +547,11 @@ public class ResidentInfoServiceImpl implements IResidentInfoService {
|
|
|
if (isValid) {
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ if (RedisUtils.hasKey(RESIDENT_INFO_AUTHENTICATION)) {
|
|
|
+ Object count = RedisUtils.getCacheObject(RESIDENT_INFO_AUTHENTICATION);
|
|
|
+ RedisUtils.setCacheObject(RESIDENT_INFO_AUTHENTICATION, Math.max(Integer.parseInt(count.toString()), 0));
|
|
|
+ }
|
|
|
return baseMapper.deleteByIds(ids) > 0;
|
|
|
}
|
|
|
|
|
@@ -688,7 +693,7 @@ public class ResidentInfoServiceImpl implements IResidentInfoService {
|
|
|
});
|
|
|
|
|
|
TenantHelper.ignore(() -> {
|
|
|
- sysUserTenantMapper.delete(new LambdaQueryWrapper<SysUserTenant>().eq(SysUserTenant::getUserId, userId).eq(SysUserTenant::getTenantId, tenantId));
|
|
|
+ sysUserTenantMapper.updateByTenantId(tenantId,userId,ONE);
|
|
|
});
|
|
|
|
|
|
|