Commit 654b85f5 by 潘诗林

fix:预学习弹窗不展示未生成案例的活动套餐

1 parent c2f61cde
...@@ -187,7 +187,10 @@ public class PreLearnStaffService { ...@@ -187,7 +187,10 @@ public class PreLearnStaffService {
boolean isLearned = learnedProductIds.contains(productId); boolean isLearned = learnedProductIds.contains(productId);
boolean scriptReady = Boolean.TRUE.equals( boolean scriptReady = Boolean.TRUE.equals(
candidate.getScriptReadiness() != null ? candidate.getScriptReadiness().get(productId) : null); candidate.getScriptReadiness() != null ? candidate.getScriptReadiness().get(productId) : null);
//没有生成案例的不展示
if(!scriptReady){
continue;
}
PackageLearningItemDTO item = PackageLearningItemDTO.builder() PackageLearningItemDTO item = PackageLearningItemDTO.builder()
.activityProductId(productId) .activityProductId(productId)
.packageName(pkg.getTabName()) .packageName(pkg.getTabName())
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!