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
d487f103
Commit
d487f103
authored
Sep 03, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除好办
parent
188d9319
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+3
-3
HaobanCommonMQApiServiceImpl.java
...ervice/service/out/impl/HaobanCommonMQApiServiceImpl.java
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
d487f103
...
@@ -142,7 +142,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
...
@@ -142,7 +142,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
@Override
@Override
public
void
stopHaoban
(
String
enterpriseId
)
{
public
void
stopHaoban
(
String
enterpriseId
)
{
List
<
TabHaobanWxEnterpriseRelated
>
list
=
this
.
wxEnterpriseRelatedMapper
.
listByEnterpriseId
(
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
)){
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
;
return
;
}
}
...
@@ -153,7 +153,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
...
@@ -153,7 +153,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
}
this
.
wxEnterpriseRelatedMapper
.
deleteByEnterpriseId
(
enterpriseId
)
;
this
.
wxEnterpriseRelatedMapper
.
deleteByEnterpriseId
(
enterpriseId
)
;
Map
<
String
,
Object
>
enMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
enMap
=
new
HashMap
<>();
enMap
.
put
(
"enterpriseId"
,
enterpriseId
)
;
enMap
.
put
(
"enterpriseId"
,
enterpriseId
+
list
.
get
(
0
).
getEnterpriseName
()
)
;
alert
(
"删除商户企微关联告警"
,
enMap
);
alert
(
"删除商户企微关联告警"
,
enMap
);
for
(
String
wxEnterpriseId
:
wxEnterpriseIdList
)
{
for
(
String
wxEnterpriseId
:
wxEnterpriseIdList
)
{
List
<
TabHaobanWxEnterpriseRelated
>
relationList
=
this
.
wxEnterpriseRelatedMapper
.
listByWxenterpriseId
(
wxEnterpriseId
)
;
List
<
TabHaobanWxEnterpriseRelated
>
relationList
=
this
.
wxEnterpriseRelatedMapper
.
listByWxenterpriseId
(
wxEnterpriseId
)
;
...
@@ -236,6 +236,6 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
...
@@ -236,6 +236,6 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
private
void
alert
(
String
title
,
Map
<
String
,
Object
>
map
)
{
private
void
alert
(
String
title
,
Map
<
String
,
Object
>
map
)
{
String
msg
=
title
+
JSON
.
toJSONString
(
map
);
String
msg
=
title
+
JSON
.
toJSONString
(
map
);
String
dingUrl
=
"https://oapi.dingtalk.com/robot/send?access_token=c38fdc53d26e9a019640755bdada1ce07ebd44a2555d1c8acc299de7a7b5b857"
;
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 @
d487f103
...
@@ -29,7 +29,7 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
...
@@ -29,7 +29,7 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
@Override
@Override
public
void
putCommonMessage
(
CommonMQDTO
dto
)
{
public
void
putCommonMessage
(
CommonMQDTO
dto
)
{
String
message
=
JSONObject
.
toJSONString
(
dto
);
String
message
=
JSONObject
.
toJSONString
(
dto
);
log
.
info
(
"
接收信息
={}"
,
message
);
log
.
info
(
"
加入好办通用队列params
={}"
,
message
);
try
{
try
{
mqClient
.
sendCommonMessage
(
"marketingCommonRouter"
,
message
,
mqClient
.
sendCommonMessage
(
"marketingCommonRouter"
,
message
,
"com.gic.haoban.manage.api.service.HaobanCommonMQApiService"
,
"commonHandler"
);
"com.gic.haoban.manage.api.service.HaobanCommonMQApiService"
,
"commonHandler"
);
...
@@ -41,6 +41,7 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
...
@@ -41,6 +41,7 @@ public class HaobanCommonMQApiServiceImpl implements HaobanCommonMQApiService {
@Override
@Override
public
void
commonHandler
(
String
message
)
{
public
void
commonHandler
(
String
message
)
{
log
.
info
(
"接收好办通用队列params={}"
,
message
);
CommonMQDTO
dto
=
JSON
.
parseObject
(
message
,
CommonMQDTO
.
class
);
CommonMQDTO
dto
=
JSON
.
parseObject
(
message
,
CommonMQDTO
.
class
);
// 好办停用,删除定时
// 好办停用,删除定时
if
(
dto
.
getType
()==
1
)
{
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