记得上下班打卡 | 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
151210af
Commit
151210af
authored
Nov 24, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排名
parent
6baba80c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
SweetAppletSubMsgController.java
...service/sweet/controller/SweetAppletSubMsgController.java
+1
-0
SweetCityVoteServiceImpl.java
.../service/sweet/service/impl/SweetCityVoteServiceImpl.java
+3
-1
No files found.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/SweetAppletSubMsgController.java
View file @
151210af
...
...
@@ -42,6 +42,7 @@ public class SweetAppletSubMsgController {
// 一次订阅 可以多次发 直到用户取消订阅 所以正规做法应该是记录订阅模版 不关联任何推送数据 等推送的时候查是否订阅某模版
// 然后发送判断失败是用户取消了 删除订阅记录 或者看取消是否有回调 利用回调处理也可
// 现在的理解有误 已写完 先用
// * 实际到了测试发现订阅一次只能发一条 再次发43101
@PostMapping
(
"create"
)
@ApiOperation
(
"添加订阅记录"
)
@ApiImplicitParams
({
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetCityVoteServiceImpl.java
View file @
151210af
...
...
@@ -126,8 +126,8 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S
public
ResponseDto
setStatList
(
Integer
type
)
{
List
<
SweetCityVoteStatDto
>
list
=
sweetCityVoteStatMapper
.
getStatList
(
type
);
List
<
SweetCItyVoteStatVo
>
sweetCityVoteStatList
=
redisDataUtils
.
getSweetCityVoteStatList
(
type
);
ArrayList
<
SweetCItyVoteStatVo
>
newList
=
ObjectUtil
.
getSweetCItyVoteStatVoList
();
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
ArrayList
<
SweetCItyVoteStatVo
>
newList
=
ObjectUtil
.
getSweetCItyVoteStatVoList
();
Integer
ranking
=
0
;
Integer
rankingUpOrDown
=
2
;
for
(
SweetCityVoteStatDto
cityVote
:
list
)
{
...
...
@@ -154,6 +154,8 @@ public class SweetCityVoteServiceImpl extends ServiceImpl<SweetCityVoteMapper, S
}
// list.forEach(r -> newList.add(SweetCItyVoteStatVo.getNew().copy(r)));
redisDataUtils
.
setSweetCityVoteStatList
(
newList
,
type
);
}
else
{
redisDataUtils
.
setSweetCityVoteStatList
(
newList
,
type
);
}
redisDataUtils
.
setSweetCityVoteStatUpdateTime
(
type
);
return
ResponseDto
.
success
();
...
...
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