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
01d42593
Commit
01d42593
authored
Feb 04, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务检测拉起脚本
parent
d42a7031
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
43 deletions
+50
-43
base-manager/src/main/java/com/mortals/xhx/common/utils/SyncGovMatterDetailThread.java
...m/mortals/xhx/common/utils/SyncGovMatterDetailThread.java
+17
-13
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+3
-10
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
...c/test/java/com/mortals/httpclient/app/AppController.http
+6
-2
base-manager/src/test/java/com/mortals/httpclient/app/AppDatasetController.http
...java/com/mortals/httpclient/app/AppDatasetController.http
+2
-3
base-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+4
-0
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
.../java/com/mortals/httpclient/matter/MatterController.http
+1
-1
base-manager/src/test/java/com/mortals/httpclient/skin/SkinBaseController.http
.../java/com/mortals/httpclient/skin/SkinBaseController.http
+12
-13
base-manager/src/test/java/com/mortals/httpclient/system/system.http
...r/src/test/java/com/mortals/httpclient/system/system.http
+1
-1
portal-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+4
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/common/utils/SyncGovMatterDetailThread.java
View file @
01d42593
...
...
@@ -24,6 +24,7 @@ import com.mortals.xhx.module.site.service.SiteThemeMatterService;
import
com.mortals.xhx.module.site.service.SiteThemeService
;
import
com.mortals.xhx.utils.SpringUtils
;
import
lombok.extern.apachecommons.CommonsLog
;
import
org.springframework.util.ObjectUtils
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -76,14 +77,17 @@ public class SyncGovMatterDetailThread implements Runnable {
if
(
rest
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
List
<
MatterEntity
>
matterEntityList
=
matterService
.
find
(
new
MatterQuery
().
areaCode
(
siteEntity
.
getAreaCode
()).
source
(
SourceEnum
.
政务网
.
getValue
()));
List
<
MatterEntity
>
unSyncDetailMatterList
=
matterEntityList
.
stream
().
filter
(
f
->
f
.
getHaveGetMatterInfo
().
equalsIgnoreCase
(
"false"
)).
collect
(
Collectors
.
toList
());
log
.
info
(
"同步站点事项到站点....."
);
//查询站点事项相关
List
<
SiteEntity
>
siteEntities
=
siteService
.
find
(
new
SiteQuery
().
areaCode
(
siteEntity
.
getAreaCode
()));
//删除站点与政务事项相关项
for
(
SiteEntity
site
:
siteEntities
)
{
/*
for (SiteEntity site : siteEntities) {
siteMatterService.deleteBysiteIdAndSource(site.getId(), SourceEnum.政务网.getValue(), context);
}
}
*/
//重新添加
if
(
ObjectUtils
.
isEmpty
(
siteEntities
))
{
log
.
info
(
"同步站点事项到站点....."
);
for
(
SiteEntity
site
:
siteEntities
)
{
List
<
SiteMatterEntity
>
siteMatterList
=
matterEntityList
.
stream
().
map
(
item
->
{
return
matterService
.
switchMatterToSiteMatter
(
item
,
site
,
context
).
getData
();
...
...
@@ -95,7 +99,7 @@ public class SyncGovMatterDetailThread implements Runnable {
}
}
log
.
info
(
"同步站点事项到站点完成....."
);
}
log
.
info
(
"同步站点事项详细条数....."
+
unSyncDetailMatterList
.
size
());
unSyncDetailMatterList
.
parallelStream
().
forEach
(
matterEntity
->
{
matterService
.
buildMatterDetail
(
matterEntity
,
context
);
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
01d42593
...
...
@@ -112,7 +112,6 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
//todo
//更新关联站点名称
updateAssociateSiteName
(
oldSite
,
entity
,
context
);
refresh
=
true
;
}
...
...
@@ -174,14 +173,9 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
protected
void
saveBefore
(
SiteEntity
entity
,
Context
context
)
throws
AppException
{
List
<
SiteEntity
>
siteEntities
=
this
.
find
(
new
SiteQuery
().
areaCode
(
entity
.
getAreaCode
()));
entity
.
setSiteCode
(
entity
.
getAreaCode
()
+
Constant
.
SITE_SPLIT_MARK
+
StringUtils
.
lpad
(
siteEntities
.
size
()
+
1
,
Constant
.
SITE_CODE_NUM
));
super
.
saveBefore
(
entity
,
context
);
}
@Override
protected
void
saveAfter
(
SiteEntity
entity
,
Context
context
)
throws
AppException
{
//刷新站点树
...
...
@@ -216,7 +210,6 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
}
}
//查詢指定的站點ids
log
.
info
(
String
.
format
(
"siteQuery==>%s"
,
JSON
.
toJSONString
(
siteQuery
)));
List
<
SiteEntity
>
siteList
=
this
.
find
(
siteQuery
);
...
...
@@ -314,6 +307,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
@Override
protected
void
updateAfter
(
SiteEntity
entity
,
Context
context
)
throws
AppException
{
super
.
updateAfter
(
entity
,
context
);
//刷新站点树
Rest
<
String
>
rest
=
userFeign
.
synchSiteAuth
();
if
(
rest
.
getCode
().
equals
(
YesNoEnum
.
YES
.
getValue
()))
{
...
...
@@ -332,7 +326,6 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
refresh
=
false
;
}
super
.
updateAfter
(
entity
,
context
);
}
...
...
@@ -561,11 +554,11 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
log
.
info
(
"需要添加事项数量===="
+
subList
.
size
());
//差集进行插入并更新详细数据
if
(!
ObjectUtils
.
isEmpty
(
subList
))
{
/*
for (MatterEntity matterEntity : subList) {
for
(
MatterEntity
matterEntity
:
subList
)
{
DeptEntity
deptCache
=
deptService
.
getExtCache
(
matterEntity
.
getDeptCode
());
matterEntity
.
setDeptName
(
deptCache
==
null
?
""
:
deptCache
.
getName
());
matterService
.
save
(
matterEntity
,
context
);
}
*/
}
List
<
List
<
MatterEntity
>>
partition
=
ListUtil
.
partition
(
subList
,
100
);
for
(
List
<
MatterEntity
>
matterEntityList
:
partition
)
{
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppController.http
View file @
01d42593
...
...
@@ -18,6 +18,10 @@ POST {{baseUrl}}/app/list
Content-Type: application/json
{
"siteId":1,
"idList": [1,2,3,4],
"type": 1,
"shelves": 1,
"page":1,
"size":-1
}
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppDatasetController.http
View file @
01d42593
...
...
@@ -18,9 +18,8 @@ POST {{baseUrl}}/app/dataset/list
Content-Type: application/json
{
"appId": 20,
"fieldName": "标题",
"fieldValue": "管理办法",
"siteId": 1,
"appId": 2,
"page": 1,
"size": 10
}
...
...
base-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
01d42593
...
...
@@ -13,5 +13,9 @@
},
"base-yibintest"
:
{
"baseUrl"
:
"http://192.168.2.169:11078/base"
},
"base-yibin"
:
{
"baseUrl"
:
"http://10.12.185.213:11078/base"
}
}
\ No newline at end of file
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
View file @
01d42593
...
...
@@ -126,7 +126,7 @@ client.global.set("Matter_id", JSON.parse(response.body).data.id);
%}
###基础事项查看
GET {{baseUrl}}/matter/info?id=
5809
GET {{baseUrl}}/matter/info?id=
34000
Accept: application/json
###基础事项编辑
...
...
base-manager/src/test/java/com/mortals/httpclient/skin/SkinBaseController.http
View file @
01d42593
...
...
@@ -4,8 +4,8 @@ POST {{baseUrl}}/skin/base/list
Content-Type: application/json
{
"page":
1,
"size":
10
"page":
1,
"size":
10
}
...
...
@@ -15,20 +15,19 @@ Authorization: {{authToken}}
Content-Type: application/json
{
"categoryId":1,
"productId":1,
"name": "321311",
"productName":"22",
"categoryId": 1,
"productId": 5,
"name": "导视机",
"imageResolution": "1",
"productName": "22",
"skinFieldList": [
{
"fieldCode":"2psfz0",
"fieldName":"wp1zqc",
"fieldType":"1",
"fieldValue":"srpx1u"
}
"fieldCode": "2psfz0",
"fieldName": "wp1zqc",
"fieldType": "1",
"fieldValue": "srpx1u"
}
]
}
> {%
...
...
base-manager/src/test/java/com/mortals/httpclient/system/system.http
View file @
01d42593
...
...
@@ -5,7 +5,7 @@ Content-Type: application/json
{
"loginName":"admin",
"password":"ad
smile
",
"password":"ad
min
",
"securityCode":"8888"
}
...
...
portal-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
01d42593
...
...
@@ -7,5 +7,9 @@
},
"portal-test"
:
{
"baseUrl"
:
"http://192.168.0.98:11078/zwfw"
},
"portal-yibin"
:
{
"baseUrl"
:
"http://10.12.185.213:11078/zwfw"
}
}
\ No newline at end of file
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