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
c7619b0f
Commit
c7619b0f
authored
Sep 18, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新事项,异步更新关联
parent
81b0d9c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
2 deletions
+38
-2
base-manager/src/main/java/com/mortals/xhx/base/system/user/service/impl/UserServiceImpl.java
...ls/xhx/base/system/user/service/impl/UserServiceImpl.java
+1
-1
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+11
-0
base-manager/src/test/java/com/mortals/httpclient/site/SiteController.http
...test/java/com/mortals/httpclient/site/SiteController.http
+12
-1
portal-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+14
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/base/system/user/service/impl/UserServiceImpl.java
View file @
c7619b0f
...
@@ -497,7 +497,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
...
@@ -497,7 +497,7 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
System
.
out
.
println
(
SecurityUtil
.
md5DoubleEncoding
(
"xhxADMIN8@a"
));
System
.
out
.
println
(
SecurityUtil
.
md5DoubleEncoding
(
"xhxADMIN8@a"
));
System
.
out
.
println
(
SecurityUtil
.
md5DoubleEncoding
(
"123"
));
//
System.out.println(SecurityUtil.md5DoubleEncoding("123"));
// System.out.println(SecurityUtil.md5DoubleEncoding("Qt123456@"));
// System.out.println(SecurityUtil.md5DoubleEncoding("Qt123456@"));
/*
/*
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
c7619b0f
...
@@ -592,6 +592,17 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
...
@@ -592,6 +592,17 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
//获取所有层级的区域
//获取所有层级的区域
List
<
AreaEntity
>
areaEntities
=
areaService
.
find
(
new
AreaQuery
().
areaLevel
(
query
.
getAreaLevel
()));
List
<
AreaEntity
>
areaEntities
=
areaService
.
find
(
new
AreaQuery
().
areaLevel
(
query
.
getAreaLevel
()));
//如果针对某个区域查询 过滤到其它区域
if
(!
ObjectUtils
.
isEmpty
(
query
.
getSiteName
()))
{
SiteEntity
siteEntity
=
this
.
selectOne
(
new
SiteQuery
().
siteName
(
query
.
getSiteName
()));
if
(!
ObjectUtils
.
isEmpty
(
siteEntity
))
{
AreaEntity
areaCache
=
areaService
.
getExtCache
(
siteEntity
.
getAreaCode
());
if
(!
ObjectUtils
.
isEmpty
(
areaCache
)){
areaEntities
=
areaEntities
.
stream
().
filter
(
f
->
f
.
getName
().
equals
(
areaCache
.
getName
())).
collect
(
Collectors
.
toList
());
}
}
}
List
<
SiteEntity
>
list
=
new
ArrayList
<>();
List
<
SiteEntity
>
list
=
new
ArrayList
<>();
for
(
AreaEntity
areaEntity
:
areaEntities
)
{
for
(
AreaEntity
areaEntity
:
areaEntities
)
{
List
<
SiteEntity
>
siteEntityList
=
this
.
find
(
new
SiteQuery
().
areaCode
(
areaEntity
.
getAreaCode
()));
List
<
SiteEntity
>
siteEntityList
=
this
.
find
(
new
SiteQuery
().
areaCode
(
areaEntity
.
getAreaCode
()));
...
...
base-manager/src/test/java/com/mortals/httpclient/site/SiteController.http
View file @
c7619b0f
...
@@ -20,6 +20,17 @@ Content-Type: application/json
...
@@ -20,6 +20,17 @@ Content-Type: application/json
}
}
###站点列表
POST http://10.233.82.175:11078/base/site/interlist
Content-Type: application/json
{
"page":1,
"size":10
}
###站点更新与保存
###站点更新与保存
POST {{baseUrl}}/site/save
POST {{baseUrl}}/site/save
Content-Type: application/json
Content-Type: application/json
...
@@ -147,4 +158,4 @@ Content-Type: application/json
...
@@ -147,4 +158,4 @@ Content-Type: application/json
POST {{baseUrl}}/site/getSitesGroupByAreaLevel
POST {{baseUrl}}/site/getSitesGroupByAreaLevel
Content-Type: application/json
Content-Type: application/json
{"areaLevel":
2
}
{"areaLevel":
3,"siteName": "翠屏区政务服务中心"
}
portal-manager/src/test/java/com/mortals/httpclient/system.http
View file @
c7619b0f
GET http://localhost:80/api/item?id=99
Accept: application/json
###
###
###
POST {{baseUrl}}/file/commonupload
POST {{baseUrl}}/file/commonupload
...
@@ -28,6 +32,9 @@ client.global.set("authToken", JSON.parse(response.body).data.token);
...
@@ -28,6 +32,9 @@ client.global.set("authToken", JSON.parse(response.body).data.token);
###首页
###首页
POST {{baseUrl}}/login/index
POST {{baseUrl}}/login/index
Authorization: {{authToken}}
Authorization: {{authToken}}
...
@@ -53,6 +60,13 @@ GET {{baseUrl}}/cipher/check
...
@@ -53,6 +60,13 @@ GET {{baseUrl}}/cipher/check
Accept: application/json
Accept: application/json
### 测试
GET http://192.168.0.98:11072/zwfw_api/admin/statistic/ages?selected=1& substr(user,1,1) = 'a'
siteid:1
Authtoken: eyJhbGciOiJIUzI1NiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE6MTNiMzE5MDcyMGIzNDQ0ODhiMGJhMmYzN2Y0MTY0MmEifQ.QVWLf0559EbLOUs7RXYu_SStviBkJt0wwiH8461lpd4
### license upload
### license upload
POST {{baseUrl}}/cipher/upload
POST {{baseUrl}}/cipher/upload
Content-Type: multipart/form-data; boundary=WebAppBoundary
Content-Type: multipart/form-data; boundary=WebAppBoundary
...
...
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