|
|
@@ -158,12 +158,18 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
ticket.setRemainDays(remainDays);
|
|
|
}
|
|
|
+ OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
+ .eq(OrderDon::getRelationId, ticket.getRelationId())
|
|
|
+ .eq(OrderDon::getUserId, ticket.getUserId())
|
|
|
+ .notIn(OrderDon::getStatus, Constant.noOrderAllStatus)
|
|
|
+ .orderByDesc(OrderDon::getId)
|
|
|
+ .last("limit 1"));
|
|
|
+ if (orderDon != null) {
|
|
|
+ ticket.setOrderNo(orderDon.getOrderNo());
|
|
|
+ ticket.setTransactionId(orderDon.getTransactionId());
|
|
|
+ }
|
|
|
+
|
|
|
if (list.size() > 1 && ticket.getGoodsId() != 18) {
|
|
|
- OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
- .eq(OrderDon::getRelationId, ticket.getRelationId())
|
|
|
- .eq(OrderDon::getUserId, ticket.getUserId())
|
|
|
- .orderByDesc(OrderDon::getId)
|
|
|
- .last("limit 1"));
|
|
|
Date payTime = null;
|
|
|
if (orderDon != null) {
|
|
|
payTime = Optional.ofNullable(orderDon.getPayTime()).orElse(orderDon.getCreatedTime());
|