Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
aedfa330
Commit
aedfa330
authored
Jul 21, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改升级政务服务版本
parent
ca53374b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
base-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthTokenServiceImpl.java
.../xhx/base/framework/interceptor/AuthTokenServiceImpl.java
+5
-5
base-manager/src/main/java/com/mortals/xhx/module/site/model/SiteTreeSelect.java
...ava/com/mortals/xhx/module/site/model/SiteTreeSelect.java
+2
-2
pom.xml
pom.xml
+6
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/base/framework/interceptor/AuthTokenServiceImpl.java
View file @
aedfa330
...
@@ -89,12 +89,12 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
...
@@ -89,12 +89,12 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
Claims
claims
=
parseToken
(
token
);
Claims
claims
=
parseToken
(
token
);
String
uuid
=
(
String
)
claims
.
get
(
SysConstains
.
LOGIN_USER_KEY
);
String
uuid
=
(
String
)
claims
.
get
(
SysConstains
.
LOGIN_USER_KEY
);
String
userKey
=
getTokenKey
(
uuid
);
String
userKey
=
getTokenKey
(
uuid
);
//
cacheService.select(portalDb);
cacheService
.
select
(
portalDb
);
//
String userStr = cacheService.get(userKey);
String
userStr
=
cacheService
.
get
(
userKey
);
//
cacheService.select(db);
cacheService
.
select
(
db
);
Rest
<
String
>
rest
=
userFeign
.
getToken
(
userKey
);
//
Rest<String> rest = userFeign.getToken(userKey);
String
userStr
=
rest
.
getData
();
//
String userStr = rest.getData();
if
(
StringUtils
.
isNotEmpty
(
userStr
))
{
if
(
StringUtils
.
isNotEmpty
(
userStr
))
{
UserEntity
userEntity
=
JSONObject
.
parseObject
(
userStr
,
UserEntity
.
class
);
UserEntity
userEntity
=
JSONObject
.
parseObject
(
userStr
,
UserEntity
.
class
);
userEntity
.
setToken
(
token
);
userEntity
.
setToken
(
token
);
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/model/SiteTreeSelect.java
View file @
aedfa330
...
@@ -92,14 +92,14 @@ public class SiteTreeSelect implements Serializable {
...
@@ -92,14 +92,14 @@ public class SiteTreeSelect implements Serializable {
this
.
label
=
collect
.
stream
().
map
(
item
->
item
.
getSiteName
()).
collect
(
Collectors
.
joining
(
","
));
this
.
label
=
collect
.
stream
().
map
(
item
->
item
.
getSiteName
()).
collect
(
Collectors
.
joining
(
","
));
this
.
siteCode
=
collect
.
stream
().
map
(
item
->
item
.
getSiteCode
()).
collect
(
Collectors
.
joining
(
","
));
this
.
siteCode
=
collect
.
stream
().
map
(
item
->
item
.
getSiteCode
()).
collect
(
Collectors
.
joining
(
","
));
this
.
type
=
"site"
;
this
.
type
=
"site"
;
this
.
icon
=
"el-icon-
document
"
;
this
.
icon
=
"el-icon-
wind-power
"
;
this
.
longitude
=
collect
.
stream
().
findFirst
().
map
(
item
->
item
.
getLongitude
()).
orElseGet
(()
->
""
);
this
.
longitude
=
collect
.
stream
().
findFirst
().
map
(
item
->
item
.
getLongitude
()).
orElseGet
(()
->
""
);
this
.
latitude
=
collect
.
stream
().
findFirst
().
map
(
item
->
item
.
getLatitude
()).
orElseGet
(()
->
""
);
this
.
latitude
=
collect
.
stream
().
findFirst
().
map
(
item
->
item
.
getLatitude
()).
orElseGet
(()
->
""
);
}
else
{
}
else
{
this
.
id
=
entity
.
getIid
();
this
.
id
=
entity
.
getIid
();
this
.
label
=
entity
.
getName
();
this
.
label
=
entity
.
getName
();
this
.
type
=
"area"
;
this
.
type
=
"area"
;
this
.
icon
=
"el-icon-
folder
"
;
this
.
icon
=
"el-icon-
place
"
;
}
}
if
(
"False"
.
equalsIgnoreCase
(
entity
.
getHaveSonArea
()))
{
if
(
"False"
.
equalsIgnoreCase
(
entity
.
getHaveSonArea
()))
{
this
.
isLeaf
=
true
;
this
.
isLeaf
=
true
;
...
...
pom.xml
View file @
aedfa330
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<parent>
<parent>
<groupId>
com.mortals
</groupId>
<groupId>
com.mortals
</groupId>
<artifactId>
mortals-common
</artifactId>
<artifactId>
mortals-common
</artifactId>
<version>
1.1.
5
-SNAPSHOT
</version>
<version>
1.1.
7
-SNAPSHOT
</version>
</parent>
</parent>
<groupId>
com.mortals.xhx
</groupId>
<groupId>
com.mortals.xhx
</groupId>
<artifactId>
smart-gov-platform
</artifactId>
<artifactId>
smart-gov-platform
</artifactId>
...
@@ -60,6 +60,11 @@
...
@@ -60,6 +60,11 @@
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-loadbalancer
</artifactId>
</dependency>
</dependencies>
</dependencies>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment