|
|
@@ -211,18 +211,11 @@ public class GroupRelationController {
|
|
|
* 获取全部车票
|
|
|
*/
|
|
|
@GetMapping("/get")
|
|
|
- public Result<List<UserTicketView>> getUserTicketView() {
|
|
|
+ public Result<List<UserTicketView>> getUserTicketView(Long goodsId, Long skuId) {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
List<Long> userIds = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
- List<UserTicketView> ticketViews = beanSearcher.searchAll(UserTicketView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
- .field(UserTicketView::getUserId, userIds).op(Operator.InList)
|
|
|
- .field(UserTicketView::getStatus, List.of("validity", "outside")).op(Operator.InList)
|
|
|
- .field(UserTicketView::getExpiryTime, DateTime.now()).op(Operator.GreaterThan)
|
|
|
- //过滤镜像店铺车票
|
|
|
- .field(UserTicketView::getCmt, 2).op(Operator.NotEqual)
|
|
|
- .orderBy(UserTicketView::getRelationId).asc()
|
|
|
- .build());
|
|
|
- return GatewayResponse.SUCCESS.newBuilder().toResult(ticketViews);
|
|
|
+ List<UserTicketView> tickets = relationMapper.selectUserTickets(userIds, goodsId, skuId);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(tickets);
|
|
|
}
|
|
|
|
|
|
/**
|