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
88f54be2
Commit
88f54be2
authored
Jun 14, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据部门id 查询所属大厅
parent
76dc0966
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+5
-4
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
88f54be2
...
...
@@ -230,7 +230,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
}
//如果是管理员 默认全部站点
if
(
context
.
getUser
().
isAdmin
()
||
context
.
getUser
().
getId
()
==
0L
)
{
log
.
info
(
"user is admin ! id:{}"
,
context
.
getUser
().
getId
());
log
.
info
(
"user is admin ! id:{}"
,
context
.
getUser
().
getId
());
siteList
=
this
.
find
(
new
SiteQuery
());
}
...
...
@@ -510,9 +510,10 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
if
(!
ObjectUtils
.
isEmpty
(
query
.
getSiteName
()))
{
SiteEntity
siteEntity
=
this
.
selectOne
(
new
SiteQuery
().
siteName
(
query
.
getSiteName
()));
if
(!
ObjectUtils
.
isEmpty
(
siteEntity
))
{
query
.
setAreaLevel
(
siteEntity
.
getAreaLevel
());
log
.
info
(
"areaLevel:{}"
,
query
.
getAreaLevel
());
}
else
{
AreaEntity
areaCache
=
areaService
.
getCache
(
siteEntity
.
getAreaCode
());
query
.
setAreaLevel
(
areaCache
==
null
?
1
:
areaCache
.
getAreaLevel
());
log
.
info
(
"areaLevel:{}"
,
query
.
getAreaLevel
());
}
else
{
return
Rest
.
ok
(
new
ArrayList
<>());
}
}
...
...
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