add -- 添加flowable工作流

This commit is contained in:
hewenqiang
2021-12-24 11:06:04 +08:00
parent 25959ccf65
commit 2c7cb006e5
49 changed files with 5538 additions and 1 deletions

View File

@@ -73,6 +73,11 @@ public class LoginUser implements UserDetails {
*/
private Set<String> permissions;
/**
* 昵称
*/
private String nickName;
/**
* 用户名
*/

View File

@@ -36,6 +36,17 @@ public class SecurityUtils {
}
}
/**
* 获取用户昵称
**/
public static String getNickName() {
try {
return getLoginUser().getNickName();
} catch (Exception e) {
throw new ServiceException("获取用户账户异常", HttpStatus.HTTP_UNAUTHORIZED);
}
}
/**
* 获取用户账户
**/