|
|
@@ -470,13 +470,17 @@ public class GroupRelationController {
|
|
|
List<Long> userIds = userService.getRelationUserIdList(userId, null);
|
|
|
List<Long> filter_goods_id = relationMapper.getTicketGoodsId(userIds, List.of("validity", "overdue", "outside"));
|
|
|
//用户是否购买过奈飞产品
|
|
|
- int count = orderDonService.count(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
- .eq(OrderDon::getGoodsId, 1)
|
|
|
- .notIn(OrderDon::getStatus, Constant.noOrderAllStatus));
|
|
|
Boolean isPayNf = false;
|
|
|
- if (count > 0) {
|
|
|
- //优先展示路由器、ai、流媒体
|
|
|
+ if (filter_goods_id.contains(1l)) {
|
|
|
isPayNf = true;
|
|
|
+ } else {
|
|
|
+ int count = orderDonService.count(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
+ .eq(OrderDon::getGoodsId, 1)
|
|
|
+ .notIn(OrderDon::getStatus, Constant.noOrderAllStatus));
|
|
|
+ if (count > 0) {
|
|
|
+ //优先展示路由器、ai、流媒体
|
|
|
+ isPayNf = true;
|
|
|
+ }
|
|
|
}
|
|
|
Page<UserRecommendGoodsFrontView> page = groupRelationFrontService.getRecommendGoodsViews(isPayNf, filter_goods_id, start, limit);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(page);
|