|
|
@@ -21,6 +21,7 @@ import com.cyksj.service.chatgpt.ChatGptAuthService;
|
|
|
import com.cyksj.service.mail.MailService;
|
|
|
import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
|
+import com.cyksj.service.shop.YhShopFrontService;
|
|
|
import com.cyksj.service.user.UserBindRelationService;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.param.Operator;
|
|
|
@@ -64,10 +65,12 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
|
|
|
private final OrderDonMapper orderDonMapper;
|
|
|
|
|
|
+ private final YhShopFrontService yhShopFrontService;
|
|
|
+
|
|
|
private final HttpServletRequest request;
|
|
|
|
|
|
@Override
|
|
|
- public List<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, Long yhsId) {
|
|
|
+ public List<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, String customId) {
|
|
|
User u = userMapper.selectById(userId);
|
|
|
if (u == null) throw BusinessRuntimeException.getGatewayApiCode(GatewayApiCode.CMS_TOKEN_VALID);
|
|
|
if (u.getIsBlack()) {
|
|
|
@@ -75,12 +78,11 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
List<Long> userIds = userBindRelationService.getRelationUserIdList(userId, u);
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
- if (yhsId == null) {
|
|
|
- builder.field(RenewalView::getYhsId, 0);
|
|
|
- }
|
|
|
+ Long yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
|
List<RenewalView> list = beanSearcher.searchAll(RenewalView.class, builder
|
|
|
.field(RenewalView::getUserId, 0).op(Operator.GreaterThan)
|
|
|
.field(RenewalView::getUserId, userIds).op(Operator.InList)
|
|
|
+ .field(RenewalView::getYhsId, yhsId)
|
|
|
.field(RenewalView::getStatus, List.of("validity", "overdue", "outside")).op(Operator.InList)
|
|
|
.orderBy(RenewalView::getExpiryTime).asc()
|
|
|
.build());
|