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
e8ea09f0
Commit
e8ea09f0
authored
Feb 28, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加业务修改通知php
parent
9e3d84e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
base-manager/src/main/java/com/mortals/xhx/common/utils/SendTask.java
.../src/main/java/com/mortals/xhx/common/utils/SendTask.java
+1
-1
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
...xhx/module/site/service/impl/SiteBusinessServiceImpl.java
+5
-3
No files found.
base-manager/src/main/java/com/mortals/xhx/common/utils/SendTask.java
View file @
e8ea09f0
...
@@ -32,7 +32,7 @@ public class SendTask implements Runnable {
...
@@ -32,7 +32,7 @@ public class SendTask implements Runnable {
try
{
try
{
Map
<
String
,
String
>
header
=
new
HashMap
<>();
Map
<
String
,
String
>
header
=
new
HashMap
<>();
header
.
put
(
HEADER_CONTENT_TYPE
,
"application/json"
);
header
.
put
(
HEADER_CONTENT_TYPE
,
"application/json"
);
log
.
info
(
"sendUrl:{} \n
sendMessageReq:{}"
,
sendUrl
,
content
);
log
.
info
(
"sendUrl:{} \nsendMessageReq:{}"
,
sendUrl
,
content
);
resp
=
HttpUtil
.
doPost
(
sendUrl
,
header
,
content
);
resp
=
HttpUtil
.
doPost
(
sendUrl
,
header
,
content
);
log
.
debug
(
"sendMessageResp:{}"
,
resp
);
log
.
debug
(
"sendMessageResp:{}"
,
resp
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteBusinessServiceImpl.java
View file @
e8ea09f0
...
@@ -188,10 +188,12 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
...
@@ -188,10 +188,12 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
Long
[]
childIds
=
collect
.
stream
().
map
(
item
->
item
.
getId
()).
toArray
(
Long
[]::
new
);
Long
[]
childIds
=
collect
.
stream
().
map
(
item
->
item
.
getId
()).
toArray
(
Long
[]::
new
);
Long
[]
bussinessIds
=
collect
.
stream
().
map
(
item
->
item
.
getBusinessId
()).
toArray
(
Long
[]::
new
);
businessService
.
remove
(
bussinessIds
,
context
);
this
.
getDao
().
delete
(
childIds
);
this
.
getDao
().
delete
(
childIds
);
Long
[]
bussinessIds
=
collect
.
stream
().
map
(
item
->
item
.
getBusinessId
()).
toArray
(
Long
[]::
new
);
log
.
info
(
"bussinessIds:{}"
,
JSON
.
toJSONString
(
bussinessIds
));
if
(!
ObjectUtils
.
isEmpty
(
bussinessIds
)){
businessService
.
remove
(
bussinessIds
,
context
);
}
}
}
...
...
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