|
@@ -82,13 +82,13 @@ public class AuthorizeUtils {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static String getSysId() {
|
|
|
|
|
|
+ public static Long getSysId() {
|
|
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
|
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
|
String sysId = request.getHeader(CommConsts.SYS_ID);
|
|
String sysId = request.getHeader(CommConsts.SYS_ID);
|
|
if (StringUtils.isEmpty(sysId)) {
|
|
if (StringUtils.isEmpty(sysId)) {
|
|
throw new CommRuntimeException(SaTokenEnum.NO_AUTHORITY.getKey(), SaTokenEnum.NO_AUTHORITY.getName());
|
|
throw new CommRuntimeException(SaTokenEnum.NO_AUTHORITY.getKey(), SaTokenEnum.NO_AUTHORITY.getName());
|
|
}
|
|
}
|
|
- return sysId;
|
|
|
|
|
|
+ return Long.valueOf(sysId);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|