Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
2d23bdf9
Commit
2d23bdf9
authored
Sep 03, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-xgh-好办停用' into 'developer'
Master xgh 好办停用 See merge request
!222
parents
3de249e8
3f20c8ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+3
-3
HaobanCommonMQApiServiceImpl.java
...ervice/service/out/impl/HaobanCommonMQApiServiceImpl.java
+3
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
2d23bdf9
...
...
@@ -140,7 +140,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
@Override
public
void
stopHaoban
(
String
enterpriseId
)
{
List
<
TabHaobanWxEnterpriseRelated
>
list
=
this
.
wxEnterpriseRelatedMapper
.
listByEnterpriseId
(
enterpriseId
)
;
logger
.
info
(
"停用好办={},list={}"
,
enterpriseId
,
JSON
.
toJSONString
(
list
));
logger
.
info
(
"停用好办={},
商户
list={}"
,
enterpriseId
,
JSON
.
toJSONString
(
list
));
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
;
}
...
...
@@ -151,7 +151,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
this
.
wxEnterpriseRelatedMapper
.
deleteByEnterpriseId
(
enterpriseId
)
;
Map
<
String
,
Object
>
enMap
=
new
HashMap
<>();
enMap
.
put
(
"enterpriseId"
,
enterpriseId
)
;
enMap
.
put
(
"enterpriseId"
,
enterpriseId
+
list
.
get
(
0
).
getEnterpriseName
()
)
;
alert
(
"删除商户企微关联告警"
,
enMap
);
for
(
String
wxEnterpriseId
:
wxEnterpriseIdList
)
{
List
<
TabHaobanWxEnterpriseRelated
>
relationList
=
this
.
wxEnterpriseRelatedMapper
.
listByWxenterpriseId
(
wxEnterpriseId
)
;
...
...
@@ -234,6 +234,6 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
private
void
alert
(
String
title
,
Map
<
String
,
Object
>
map
)
{
String
msg
=
title
+
JSON
.
toJSONString
(
map
);
String
dingUrl
=
"https://oapi.dingtalk.com/robot/send?access_token=c38fdc53d26e9a019640755bdada1ce07ebd44a2555d1c8acc299de7a7b5b857"
;
DingUtils
.
send
(
msg
,
dingUrl
,
tru
e
);
DingUtils
.
send
(
msg
,
dingUrl
,
fals
e
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HaobanCommonMQApiServiceImpl.java
View file @
2d23bdf9
...
...
@@ -29,9 +29,9 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
@Override
public
void
putCommonMessage
(
CommonMQDTO
dto
)
{
String
message
=
JSONObject
.
toJSONString
(
dto
);
log
.
info
(
"
接收信息
={}"
,
message
);
log
.
info
(
"
加入好办通用队列params
={}"
,
message
);
try
{
mqClient
.
sendCommonMessage
(
"
marketing
CommonRouter"
,
message
,
mqClient
.
sendCommonMessage
(
"
haoban
CommonRouter"
,
message
,
"com.gic.haoban.manage.api.service.HaobanCommonMQApiService"
,
"commonHandler"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"发送MQ异常"
);
...
...
@@ -41,6 +41,7 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
@Override
public
void
commonHandler
(
String
message
)
{
log
.
info
(
"接收好办通用队列params={}"
,
message
);
CommonMQDTO
dto
=
JSON
.
parseObject
(
message
,
CommonMQDTO
.
class
);
// 好办停用,删除定时
if
(
dto
.
getType
()==
1
)
{
...
...
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