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
852163d1
Commit
852163d1
authored
Feb 01, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分类查询返回组
parent
6b8b178e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+11
-3
base-manager/src/test/java/com/mortals/httpclient/site/SiteController.http
...test/java/com/mortals/httpclient/site/SiteController.http
+1
-1
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
852163d1
...
...
@@ -572,12 +572,20 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
List
<
SiteEntity
>
list
=
new
ArrayList
<>();
for
(
AreaEntity
areaEntity
:
areaEntities
)
{
List
<
SiteEntity
>
siteEntityList
=
this
.
find
(
new
SiteQuery
().
areaCode
(
areaEntity
.
getAreaCode
()));
if
(!
ObjectUtils
.
isEmpty
(
siteEntityList
))
{
list
.
addAll
(
siteEntityList
);
}
}
list
.
stream
().
forEach
(
item
->
{
AreaEntity
areaEntity
=
areaService
.
getCache
(
item
.
getAreaCode
());
if
(!
ObjectUtils
.
isEmpty
(
areaEntity
))
{
item
.
setAreaLevel
(
areaEntity
.
getAreaLevel
());
}
else
{
item
.
setAreaLevel
(
0
);
}
});
return
Rest
.
ok
(
list
);
}
...
...
@@ -865,7 +873,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
String
matchCode
=
"511530000000"
.
replaceAll
(
"(0)+$"
,
""
);
System
.
out
.
println
(
matchCode
);
matchCode
=
StrUtil
.
padAfter
(
matchCode
,
7
,
"0"
);
matchCode
=
StrUtil
.
padAfter
(
matchCode
,
7
,
"0"
);
System
.
out
.
println
(
matchCode
);
...
...
base-manager/src/test/java/com/mortals/httpclient/site/SiteController.http
View file @
852163d1
...
...
@@ -132,7 +132,7 @@ Content-Type: application/json
POST {{baseUrl}}/site/getFlatSitesGroupByAreaCode
Content-Type: application/json
{
"areaName":"象鼻街道"
}
{}
###站点区域分组列表
POST {{baseUrl}}/site/getSitesGroupByAreaLevel
...
...
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