Commit 7bb7becf by 阮思源

Merge branch 'fix-1002825' into 'master'

fix list

See merge request rays/pcloud-book!691
parents f7d7bd86 26180810
...@@ -455,7 +455,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz { ...@@ -455,7 +455,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
if (!ListUtils.isEmpty(customPlanIds)) { if (!ListUtils.isEmpty(customPlanIds)) {
customPlanList = customPlanMapper.getCustomPlanByIds(customPlanIds); customPlanList = customPlanMapper.getCustomPlanByIds(customPlanIds);
} }
if (ListUtils.isEmpty(customPlanList)) { if (!ListUtils.isEmpty(customPlanList)) {
Map<Integer, CustomPlan> appleMap = Optional Map<Integer, CustomPlan> appleMap = Optional
.ofNullable(customPlanList.stream().collect(Collectors.toMap(CustomPlan::getId, a -> a, (k1, k2) -> k1))) .ofNullable(customPlanList.stream().collect(Collectors.toMap(CustomPlan::getId, a -> a, (k1, k2) -> k1)))
.orElse(new HashMap<>()); .orElse(new HashMap<>());
......
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