记得上下班打卡 | 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
1158491c
Commit
1158491c
authored
May 20, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:修改演出置顶
parent
c268488f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
SmileShowServiceImpl.java
...min/zhengzai/smile/service/impl/SmileShowServiceImpl.java
+13
-7
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/smile/service/impl/SmileShowServiceImpl.java
View file @
1158491c
...
...
@@ -136,19 +136,25 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
//查询数据库是否又该顺序的演出
kylinPerformancesMapper
.
updateComment
(
showSort
.
getSort
());
kylinPerformancesMapper
.
updateCommentByPer
(
showSort
.
getSort
(),
showSort
.
getPerformancesId
());
log
.
info
(
"redis show key:{}"
,
showSort
.
getPerformancesId
());
//判断该演出是否修改过票提
if
(
smileRedisUtils
.
getShowIds
().
stream
().
anyMatch
(
showId
->
showSort
.
getPerformancesId
().
equals
(
showId
))){
List
<
String
>
showIds
=
smileRedisUtils
.
getShowIds
();
showIds
.
remove
(
showSort
.
getPerformancesId
());
showIds
.
add
(
0
,
showSort
.
getPerformancesId
());
smileRedisUtils
.
setShowIds
(
showIds
);
return
AjaxResult
.
success
();
}
else
{
return
AjaxResult
.
warn
(
"清先为演出设置票提!"
);
}
/*//获取排序演出id
List<String> collect = kylinPerformancesMapper.selectPerIdByAgent().stream().map(KylinPerformances::getPerformancesId).collect(Collectors.toList());
String perId = StringUtils.join(collect, ",");
//保存所有演出id带顺序
smileRedisUtils.setShowIds(perId);*/
log
.
info
(
"redis show key:{}"
,
showSort
.
getPerformancesId
());
return
AjaxResult
.
success
();
}
@Override
...
...
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