|
|
|
@ -27,10 +27,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -152,11 +149,14 @@ public class HighUserDiscountController { |
|
|
|
|
for (HighDiscountCouponRel highDiscountCouponRel : discountCouponRelList) { |
|
|
|
|
List<HighDiscountUserRel> collect = userRels.stream().filter(o -> o.getDiscountId().equals(highDiscountCouponRel.getDiscountId())).collect(Collectors.toList()); |
|
|
|
|
if (collect != null && collect.size() > 0) { |
|
|
|
|
list.add(collect.get(0)); |
|
|
|
|
for (HighDiscountUserRel discountUser : collect) { |
|
|
|
|
list.add(discountUser); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
list.sort(Comparator.comparing(o -> o.getUseEndTime())); |
|
|
|
|
return ResponseMsgUtil.success(list); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|