记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
bd9a79ca
Commit
bd9a79ca
authored
Apr 09, 2022
by
高虎
Committed by
GaoHu
Apr 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit
parent
2f25b577
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
GoblinGoodsAnticipateServiceImpl.java
...goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
+11
-11
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
View file @
bd9a79ca
...
...
@@ -71,7 +71,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
goodsAnticipateVo
.
getAboutStartDate
(),
goodsAnticipateVo
.
getAboutEndDate
()
});
sendRedis
(
MQConst
.
GoblinQueue
.
GOBLIN_STORE_MARKET
.
getKey
(),
"goblin_goods_anticipate"
,
sqlAnt
);
sendRedis
(
"goblin_goods_anticipate"
,
sqlAnt
);
//redis消息
goodsAnticipateValues
.
forEach
(
goodsAnticipateValueVo
->
{
...
...
@@ -84,7 +84,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
goodsAnticipateValueVo
.
getAboutStartDate
(),
goodsAnticipateValueVo
.
getAboutEndDate
(),
});
sendRedis
(
MQConst
.
GoblinQueue
.
GOBLIN_STORE_MARKET
.
getKey
(),
"goblin_goods_anticipate_value"
,
sqlValue
);
sendRedis
(
"goblin_goods_anticipate_value"
,
sqlValue
);
});
//更新mongodb
...
...
@@ -94,15 +94,6 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
return
ResponseDto
.
failure
(
"参数有误"
);
}
public
void
sendRedis
(
String
rediskey
,
String
sqlKey
,
LinkedList
<
Object
[]>
sqlData
)
{
LinkedList
<
String
>
sql
=
CollectionUtil
.
linkedListString
();
sql
.
add
(
SqlMapping
.
get
(
sqlKey
));
String
sqlStr
=
SqlMapping
.
gets
(
sql
,
sqlData
);
queueUtils
.
sendMsgByRedis
(
rediskey
,
sqlStr
);
}
@Override
public
ResponseDto
<
Object
>
updatePeople
(
Long
people
)
{
//修改Mongodb
...
...
@@ -119,4 +110,13 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
}
public
void
sendRedis
(
String
sqlKey
,
LinkedList
<
Object
[]>
sqlData
)
{
LinkedList
<
String
>
sql
=
CollectionUtil
.
linkedListString
();
sql
.
add
(
SqlMapping
.
get
(
sqlKey
));
String
sqlStr
=
SqlMapping
.
gets
(
sql
,
sqlData
);
queueUtils
.
sendMsgByRedis
(
MQConst
.
GoblinQueue
.
GOBLIN_STORE_MARKET
.
getKey
(),
sqlStr
);
}
}
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