|
|
@@ -118,6 +118,8 @@ public class GroupRelationController {
|
|
|
|
|
|
private final AccountBlockedReplaceRecordMapper accountBlockedReplaceRecordMapper;
|
|
|
|
|
|
+ private final OrderDonMapper orderDonMapper;
|
|
|
+
|
|
|
private final static Sequence SEQUENCE = new Sequence(0);
|
|
|
|
|
|
@RequestMapping("/get/renewal")
|
|
|
@@ -539,7 +541,16 @@ public class GroupRelationController {
|
|
|
isPayNf = true;
|
|
|
}
|
|
|
}
|
|
|
- Page<UserRecommendGoodsFrontView> page = groupRelationFrontService.getRecommendGoodsViews(isPayNf, filter_goods_id, start, limit);
|
|
|
+ Boolean filterCourseGoods = false;
|
|
|
+ //GPT Plus基础2月 课程不展示
|
|
|
+ Integer orders = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
+ .in(OrderDon::getUserId, userIds)
|
|
|
+ .eq(OrderDon::getSkuId, 444)
|
|
|
+ .notIn(OrderDon::getStatus, Constant.noOrderStatus));
|
|
|
+ if (orders > 0) {
|
|
|
+ filterCourseGoods = true;
|
|
|
+ }
|
|
|
+ Page<UserRecommendGoodsFrontView> page = groupRelationFrontService.getRecommendGoodsViews(isPayNf, filter_goods_id, filterCourseGoods, start, limit);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(page);
|
|
|
}
|
|
|
|