|
|
@@ -1,7 +1,6 @@
|
|
|
package com.cyksj.web.controller.group;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
-import com.cyksj.common.constant.Constant;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
@@ -45,20 +44,6 @@ public class GroupRelationController {
|
|
|
public Result<List<RenewalView>> get(Boolean isLoginPopularize) {
|
|
|
long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
List<RenewalView> list = groupRelationFrontService.getMyTicket(userId, isLoginPopularize);
|
|
|
- list.forEach(data->{
|
|
|
- if (data.getGoodsId() == 1) {
|
|
|
- OrderDon last = orderDonService.getOne(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
- .eq(OrderDon::getGoodsId, 1)
|
|
|
- .eq(OrderDon::getUserId, data.getUserId())
|
|
|
- .notIn(OrderDon::getStatus, Constant.noOrderAllStatus)
|
|
|
- .orderByAsc(OrderDon::getId)
|
|
|
- .select(OrderDon::getCreatedTime)
|
|
|
- .last("limit 1"));
|
|
|
- if (last != null) {
|
|
|
- data.setLastTime(last.getCreatedTime());
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(list);
|
|
|
}
|
|
|
|