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
bdafcd3b
Commit
bdafcd3b
authored
Apr 06, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加应用复选字段
parent
ffaca25e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
base-manager/src/main/java/com/mortals/xhx/module/site/web/SiteController.java
.../java/com/mortals/xhx/module/site/web/SiteController.java
+9
-0
base-manager/src/test/java/com/mortals/httpclient/site/SiteController.http
...test/java/com/mortals/httpclient/site/SiteController.http
+11
-3
No files found.
base-manager/src/main/java/com/mortals/xhx/module/site/web/SiteController.java
View file @
bdafcd3b
...
...
@@ -15,6 +15,9 @@ import com.mortals.xhx.base.system.user.model.UserEntity;
import
com.mortals.xhx.common.keys.RedisCacheKeys
;
import
com.mortals.xhx.common.utils.SyncDeptThread
;
import
com.mortals.xhx.common.utils.SyncGovMatterDetailThread
;
import
com.mortals.xhx.module.area.model.AreaEntity
;
import
com.mortals.xhx.module.area.model.AreaQuery
;
import
com.mortals.xhx.module.area.service.AreaService
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
com.mortals.xhx.module.matter.service.MatterService
;
import
com.mortals.xhx.module.model.model.ModelEntity
;
...
...
@@ -63,6 +66,8 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
private
SiteService
siteService
;
@Autowired
private
SiteMatterService
siteMatterService
;
@Autowired
private
AreaService
areaService
;
public
SiteController
()
{
super
.
setFormClass
(
SiteForm
.
class
);
...
...
@@ -153,6 +158,10 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
JSONObject
jsonObject
=
new
JSONObject
();
String
busiDesc
=
"根据区域编码查询站点列表"
+
this
.
getModuleDesc
();
try
{
AreaEntity
areaEntity
=
areaService
.
selectOne
(
new
AreaQuery
().
name
(
site
.
getAreaName
()));
if
(!
ObjectUtils
.
isEmpty
(
areaEntity
)){
site
.
setAreaCode
(
areaEntity
.
getAreaCode
());
}
List
<
SiteEntity
>
siteEntityList
=
this
.
service
.
getFlatSitesByAreaCode
(
site
.
getAreaCode
(),
getContext
());
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
jsonObject
.
put
(
KEY_RESULT_DATA
,
siteEntityList
);
...
...
base-manager/src/test/java/com/mortals/httpclient/site/SiteController.http
View file @
bdafcd3b
...
...
@@ -74,13 +74,21 @@ GET {{baseUrl}}/site/getAllSiteTree
Accept: application/json
###站点列表
###
根据区域编码获取
站点列表
POST {{baseUrl}}/site/getFlatSitesByAreaCode
Authorization: {{authToken}}
Content-Type: application/json
{
"areaCode":"510105521000"
"areaCode":"510105521000",
"areaName":"宜宾市"
}
###根据区域等级获取站点列表
POST {{baseUrl}}/site/getAreaSitesByAreaLevel
Content-Type: application/json
{
"areaLevel":2
}
###站点列表
...
...
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