Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
fa3703ca
Commit
fa3703ca
authored
Jun 01, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务上报之后 删除对应的数据
parent
58b28046
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
order-application-service/src/main/java/cn/freemud/handler/OrderReportJobHandler.java
+4
-2
No files found.
order-application-service/src/main/java/cn/freemud/handler/OrderReportJobHandler.java
View file @
fa3703ca
...
...
@@ -38,7 +38,8 @@ public class OrderReportJobHandler {
public
void
sendYesterDayStoreMsg
()
{
String
date
=
getYesterdayString
(
pattern_yyyy_MM_dd
);
BoundHashOperations
<
String
,
String
,
Set
<
String
>>
boundHashOperations
=
redisCache
.
getRedisTemplate
().
boundHashOps
(
RedisKeyConstant
.
KGD_NO_ORDER_STORE_DATE
+
date
);
String
key
=
RedisKeyConstant
.
KGD_NO_ORDER_STORE_DATE
+
date
;
BoundHashOperations
<
String
,
String
,
Set
<
String
>>
boundHashOperations
=
redisCache
.
getRedisTemplate
().
boundHashOps
(
key
);
Map
<
String
,
Set
<
String
>>
entries
=
boundHashOperations
.
entries
();
LogUtil
.
info
(
"下单门店记录推送 entries"
,
entries
,
null
);
if
(!
CollectionUtils
.
isEmpty
(
entries
))
{
...
...
@@ -55,7 +56,8 @@ public class OrderReportJobHandler {
.
build
();
BaseResponse
baseResponse
=
storeBackstageClient
.
pushOrderStore
(
pushOrderStoreDto
);
LogUtil
.
info
(
"上报门店支付情况"
,
JSON
.
toJSONString
(
pushOrderStoreDto
),
JSON
.
toJSONString
(
baseResponse
));
// fisherman 数据推送之后的 redis 缓存数据 是否清理 暂时没需求
// 数据推送之后的 redis 缓存数据 清理
redisCache
.
delete
(
key
);
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
"上报门店支付情况 error"
,
null
,
JSON
.
toJSONString
(
e
));
}
...
...
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