处理首页客户端列表
This commit is contained in:
parent
1eabeb4953
commit
fbced9a56f
@ -1,7 +1,7 @@
|
|||||||
FROM openjdk:8u292-jre-buster
|
FROM openjdk:8u292-jre-buster
|
||||||
ARG JAR_FILE=/target/*.jar
|
ARG JAR_FILE=/target/*.jar
|
||||||
COPY ${JAR_FILE} smart-city-usercenter.jar
|
COPY ${JAR_FILE} smart-city-usercenter.jar
|
||||||
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=test","/smart-city-usercenter.jar"]
|
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/smart-city-usercenter.jar"]
|
||||||
|
|
||||||
# 时区问题
|
# 时区问题
|
||||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||||
|
@ -59,7 +59,7 @@ public class CustomIndexPageRouteController {
|
|||||||
List<String> roleIds = securityComponent.listRoleIds();
|
List<String> roleIds = securityComponent.listRoleIds();
|
||||||
if (securityComponent.isAdmin(roleIds)) {
|
if (securityComponent.isAdmin(roleIds)) {
|
||||||
List<OAuth2ClientSimpleDTO> oAuth2ClientSimpleDTOs = oauth2ClientService.listSimple();
|
List<OAuth2ClientSimpleDTO> oAuth2ClientSimpleDTOs = oauth2ClientService.listSimple();
|
||||||
oAuth2ClientSimpleDTOs.add(0, getUserCenter());
|
oAuth2ClientSimpleDTOs.add(getUserCenter());
|
||||||
return oAuth2ClientSimpleDTOs;
|
return oAuth2ClientSimpleDTOs;
|
||||||
}
|
}
|
||||||
// 自己角色的菜单
|
// 自己角色的菜单
|
||||||
@ -78,7 +78,7 @@ public class CustomIndexPageRouteController {
|
|||||||
}
|
}
|
||||||
List<OAuth2ClientSimpleDTO> oAuth2ClientSimpleDTOs = oauth2ClientService.listSimpleByMenuIdsAndEnvironment(rootMenuIds, IOAuth2ClientService.OAUTH_CLIENT_ENVIRONMENT_FORMAL);
|
List<OAuth2ClientSimpleDTO> oAuth2ClientSimpleDTOs = oauth2ClientService.listSimpleByMenuIdsAndEnvironment(rootMenuIds, IOAuth2ClientService.OAUTH_CLIENT_ENVIRONMENT_FORMAL);
|
||||||
if (hasUserCenter(rootMenuIds)) {
|
if (hasUserCenter(rootMenuIds)) {
|
||||||
oAuth2ClientSimpleDTOs.add(0, getUserCenter());
|
oAuth2ClientSimpleDTOs.add(getUserCenter());
|
||||||
}
|
}
|
||||||
return oAuth2ClientSimpleDTOs;
|
return oAuth2ClientSimpleDTOs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user