Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
3f960321
Commit
3f960321
authored
Oct 27, 2022
by
sxwnfpwx@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标准规则库内网访问
parent
a866e632
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
SuperviseRuleController.java
...ot/module/ugp/biz/controller/SuperviseRuleController.java
+9
-9
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/SuperviseRuleController.java
View file @
3f960321
...
...
@@ -58,15 +58,15 @@ public class SuperviseRuleController extends BaseController {
public
ResponseModel
<
SuperviseRuleDto
>
save
(
@RequestBody
SuperviseRuleDto
model
)
{
model
.
setCreateDate
(
new
Date
());
//外网调不到内网,所以报错,暂时预留
//
Collection<RegionModel> result = Systemctl.regionClient.queryForTree(null).getResult();
//
//result是一个树结构的集合,需要递归
//
Map<String,String> map = new HashMap<>();
//
getMap(map,result);
//
//获取的Map中key是code,value是name
//
model.setAdminRegion(map.get(model.getAdminRegionCode()));
//
//外网调不到内网 暂时预留
//
OrgUsr orgUsr = orgServiceImpl.getOrgUsr();
//
model.setSequenceNbr(orgUsr.getSequenceNbr());
Collection
<
RegionModel
>
result
=
Systemctl
.
regionClient
.
queryForTree
(
null
).
getResult
();
//result是一个树结构的集合,需要递归
Map
<
String
,
String
>
map
=
new
HashMap
<>();
getMap
(
map
,
result
);
//获取的Map中key是code,value是name
model
.
setAdminRegion
(
map
.
get
(
model
.
getAdminRegionCode
()));
//外网调不到内网 暂时预留
OrgUsr
orgUsr
=
orgServiceImpl
.
getOrgUsr
();
model
.
setSequenceNbr
(
orgUsr
.
getSequenceNbr
());
model
=
superviseRuleServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
...
...
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