用户订单分页查询

This commit is contained in:
yanglei 2025-11-17 16:39:55 +08:00
parent 916297de2f
commit 5e92048612
2 changed files with 7 additions and 1 deletions

View File

@ -138,4 +138,9 @@ public class EbikeUserAllOrdersVo {
@JsonDeserialize(using = PGpointDeserializer.class) @JsonDeserialize(using = PGpointDeserializer.class)
private PGpoint endLocation; private PGpoint endLocation;
/**
* 创建时间
*/
private LocalDateTime createTime;
} }

View File

@ -283,7 +283,8 @@ public class EbikeOrderImpl extends ServiceImpl<EbikeOrderMapper, EbikeOrder> im
EBIKE_ORDER.MAX_FEE_AMOUNT, EBIKE_ORDER.MAX_FEE_AMOUNT,
EBIKE_ORDER.HELMET_MANAGEMENT_FEE, EBIKE_ORDER.HELMET_MANAGEMENT_FEE,
EBIKE_ORDER.START_LOCATION, EBIKE_ORDER.START_LOCATION,
EBIKE_ORDER.END_LOCATION EBIKE_ORDER.END_LOCATION,
EBIKE_ORDER.CREATE_TIME
) )
.where(EBIKE_ORDER.USER_ID.eq(userId)) .where(EBIKE_ORDER.USER_ID.eq(userId))
.orderBy(EBIKE_ORDER.CREATE_TIME.desc()); .orderBy(EBIKE_ORDER.CREATE_TIME.desc());