Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
2a8c74f2
Commit
2a8c74f2
authored
Jul 13, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
159bfac4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
EconomicServiceImpl.java
...java/com/dsk/system/service/impl/EconomicServiceImpl.java
+7
-4
No files found.
dsk-system/src/main/java/com/dsk/system/service/impl/EconomicServiceImpl.java
View file @
2a8c74f2
...
@@ -58,11 +58,14 @@ public class EconomicServiceImpl implements EconomicService {
...
@@ -58,11 +58,14 @@ public class EconomicServiceImpl implements EconomicService {
public
AjaxResult
location
(
OpRegionalLocalDto
detailsDto
)
{
public
AjaxResult
location
(
OpRegionalLocalDto
detailsDto
)
{
Long
userId
=
SecurityUtils
.
getLoginUser
().
getUserId
();
Long
userId
=
SecurityUtils
.
getLoginUser
().
getUserId
();
String
redisKey
=
CacheConstants
.
PERSONAL_LOCATION
+
userId
;
String
redisKey
=
CacheConstants
.
PERSONAL_LOCATION
+
userId
;
if
(
ObjectUtil
.
isEmpty
(
detailsDto
.
getProvinceId
())
&&
ObjectUtil
.
isEmpty
(
detailsDto
.
getCityId
())
&&
ObjectUtil
.
isEmpty
(
detailsDto
.
getAreaId
()))
{
if
(
ObjectUtil
.
isNotEmpty
(
redisKey
))
{
Map
<
String
,
Object
>
cacheMap
=
redisCache
.
getCacheMap
(
redisKey
);
Map
<
String
,
Object
>
cacheMap
=
redisCache
.
getCacheMap
(
redisKey
);
if
(
MapUtils
.
isNotEmpty
(
cacheMap
))
{
if
(
MapUtils
.
isNotEmpty
(
cacheMap
))
{
return
AjaxResult
.
success
(
cacheMap
);
return
AjaxResult
.
success
(
cacheMap
);
}
}
}
}
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/economic/location"
,
BeanUtil
.
beanToMap
(
detailsDto
,
false
,
false
));
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/economic/location"
,
BeanUtil
.
beanToMap
(
detailsDto
,
false
,
false
));
Integer
code
=
MapUtils
.
getInteger
(
map
,
"code"
,
300
);
Integer
code
=
MapUtils
.
getInteger
(
map
,
"code"
,
300
);
...
...
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