|
@@ -3,6 +3,7 @@ package com.ims.eval.config.permission;
|
|
|
import cn.hutool.core.util.ClassUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.PluginUtils;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.ims.eval.cache.CacheContext;
|
|
|
import com.ims.eval.entity.DataDictionary;
|
|
|
import com.ims.eval.entity.dto.response.MyuserResDTO;
|
|
@@ -204,6 +205,9 @@ public class PermissionAspect implements Interceptor {
|
|
|
|
|
|
@Cacheable(value = "user_code")
|
|
|
private MyuserResDTO getSysUser(String code) {
|
|
|
+ if (StringUtils.isBlank(code)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
Object json = serviceBuilder.getGatewayUrl().getSysUser(code);
|
|
|
MyuserResDTO user = JSON.parseObject(json.toString(), MyuserResDTO.class);
|
|
|
return user;
|