记得上下班打卡 | git大法好,push需谨慎

Commit 1158491c authored by GaoHu's avatar GaoHu

bug:修改演出置顶

parent c268488f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment