Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setup-manager
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
赵啸非
setup-manager
Commits
9e810a03
Commit
9e810a03
authored
Nov 14, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加产品资源枚举类
parent
9b9bf6c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/web/SetupProjectController.java
.../mortals/xhx/module/setup/web/SetupProjectController.java
+10
-1
No files found.
setup-project-manager/src/main/java/com/mortals/xhx/module/setup/web/SetupProjectController.java
View file @
9e810a03
...
@@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
...
@@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.http.HttpUtil
;
import
cn.hutool.http.HttpUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.annotation.UnAuth
;
...
@@ -334,9 +335,17 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
...
@@ -334,9 +335,17 @@ public class SetupProjectController extends BaseCRUDJsonBodyMappingController<Se
//todo 更新门户站点信息,用户站点树等 user/initData
//todo 更新门户站点信息,用户站点树等 user/initData
JSONObject
json
=
new
JSONObject
();
JSONObject
json
=
new
JSONObject
();
//1,3,4,5,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,28
json
.
put
(
"siteIds"
,
siteAddRest
.
getData
().
getId
());
json
.
put
(
"siteIds"
,
siteAddRest
.
getData
().
getId
());
//511500000000
json
.
put
(
"areaCodes"
,
siteAddRest
.
getData
().
getAreaCode
());
json
.
put
(
"areaCodes"
,
siteAddRest
.
getData
().
getAreaCode
());
json
.
put
(
"areaNames"
,
siteAddRest
.
getData
().
getAreaName
());
//[{"areaCode":"511500000000","label":"宜宾市"}]
JSONArray
jsonArray
=
new
JSONArray
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"areaCode"
,
siteAddRest
.
getData
().
getAreaCode
());
jsonObject
.
put
(
"label"
,
siteAddRest
.
getData
().
getAreaName
());
jsonArray
.
add
(
jsonObject
);
json
.
put
(
"areaNames"
,
jsonArray
.
toJSONString
());
String
portalResp
=
HttpUtil
.
post
(
"http://127.0.0.1:11078/zwfw/user/initData"
,
json
.
toJSONString
());
String
portalResp
=
HttpUtil
.
post
(
"http://127.0.0.1:11078/zwfw/user/initData"
,
json
.
toJSONString
());
log
.
info
(
"门户站点更新返回:{}"
,
portalResp
);
log
.
info
(
"门户站点更新返回:{}"
,
portalResp
);
}
else
{
}
else
{
...
...
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