|
|
@@ -29,6 +29,7 @@ import org.springframework.dao.DuplicateKeyException;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.util.Comparator;
|
|
|
import java.util.List;
|
|
|
import java.util.Optional;
|
|
|
|
|
|
@@ -172,6 +173,7 @@ public class CouponFontServiceImpl implements CouponFontService {
|
|
|
this.setCouponUserStatus(data, now);
|
|
|
});
|
|
|
});
|
|
|
+ availableCouponList.getRecords().stream().sorted(Comparator.comparing(CouponUserView::getIsAvailable).reversed());
|
|
|
return availableCouponList;
|
|
|
}
|
|
|
|