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

Commit 65636231 authored by GaoHu's avatar GaoHu

bug:演出列表重复问题修复

parent 26bb078b
...@@ -59,7 +59,7 @@ public class SmileShowController { ...@@ -59,7 +59,7 @@ public class SmileShowController {
} }
@GetMapping("/updateRedis") @GetMapping("/updateRedis")
@ApiOperation("修改原保存演出id的数据类型,分支dev_0507kids 部署完执行接口") @ApiOperation("修改原保存演出id的数据类型,分支dev_0507kids 部署完执行接口(演出列表重复问题修复也可以运行此接口)")
public AjaxResult updateRedis(){ public AjaxResult updateRedis(){
return smileShowService.updateRedis(); return smileShowService.updateRedis();
} }
......
...@@ -349,7 +349,8 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc ...@@ -349,7 +349,8 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
} catch (Exception e) { } catch (Exception e) {
log.error("updateRedis()"); log.error("updateRedis()");
} }
List<String> showIds = smileRedisUtils.getShowIds(); ArrayList<String> showIds = (ArrayList<String>) smileRedisUtils.getShowIds().stream().distinct().collect(Collectors.toList());
return AjaxResult.success(showIds); return AjaxResult.success(showIds);
} }
......
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