feat:机器上可以查询全部订单
This commit is contained in:
1 parent
ec39c72f7e
commit
1bf4ad3dd8
8 files changed
+270
-1
No files matched your search
+38
@@ -0,0 +1,38 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.hard;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 终端交易记录查询参数。
|
||||
*
|
||||
* 设备 ID 是唯一的数据范围入口:scope 为空或 DEVICE 时仅查询本机订单,
|
||||
* scope 为 MERCHANT 时按服务端解析的终端所属商户查询全部设备订单,
|
||||
* 客户端不能通过本接口指定其他商户或用户范围。
|
||||
*/
|
||||
@Data
|
||||
public class TerminalOrderRecordQueryDto {
|
||||
|
||||
@NotNull(message = "设备ID不能为空")
|
||||
@Schema(description = "当前终端设备ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Long hardId;
|
||||
|
||||
@Schema(description = "开始日期,格式 yyyy-MM-dd")
|
||||
private LocalDate startDate;
|
||||
|
||||
@Schema(description = "结束日期,格式 yyyy-MM-dd")
|
||||
private LocalDate endDate;
|
||||
|
||||
@Schema(description = "数据范围:DEVICE 仅本机(默认),MERCHANT 当前终端所属商户全部设备")
|
||||
private String scope;
|
||||
|
||||
@Schema(description = "订单状态编码集合,为空时查询全部状态")
|
||||
private List<String> orderStatusCodes;
|
||||
|
||||
@Schema(description = "用餐时段编码,为空或 -1 时不区分")
|
||||
private String hourType;
|
||||
}
|
||||
+3
@@ -26,4 +26,7 @@ public class VerificationRecordQueryDto {
|
||||
|
||||
@Schema(description = "核销类型,目前仅支持 RESERVATION 预约核销;为空时同样按预约核销查询")
|
||||
private String verificationType;
|
||||
|
||||
@Schema(description = "数据范围:DEVICE 仅本机(默认),MERCHANT 当前终端所属商户全部设备")
|
||||
private String scope;
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.bsd.pjcloud.hard.api.vo.android;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/** 终端交易记录展示对象,仅返回交易记录列表所需字段。 */
|
||||
@Data
|
||||
public class TerminalOrderRecordVo {
|
||||
|
||||
/** 订单主键。 */
|
||||
private Long orderId;
|
||||
|
||||
/** 业务订单号。 */
|
||||
private String orderNo;
|
||||
|
||||
/** 订单类型稳定编码。 */
|
||||
private String orderType;
|
||||
|
||||
/** 订单类型展示名称。 */
|
||||
private String orderTypeName;
|
||||
|
||||
/** 订单状态稳定编码。 */
|
||||
private String orderStatus;
|
||||
|
||||
/** 订单状态展示名称。 */
|
||||
private String orderStatusName;
|
||||
|
||||
/** 支付方式稳定编码。 */
|
||||
private String payType;
|
||||
|
||||
/** 支付方式展示名称。 */
|
||||
private String payTypeName;
|
||||
|
||||
/** 下单用户姓名。 */
|
||||
private String username;
|
||||
|
||||
/** 下单用户所属部门。 */
|
||||
private String userDeptName;
|
||||
|
||||
/** 订单商品摘要。 */
|
||||
private String productDesc;
|
||||
|
||||
/** 用餐时段编码。 */
|
||||
private String hourType;
|
||||
|
||||
/** 商品总金额(分)。 */
|
||||
private Integer totalPrice;
|
||||
|
||||
/** 额外支付(分)。 */
|
||||
private Integer extraPrice;
|
||||
|
||||
/** 实际支付(分)。 */
|
||||
private Integer payPrice;
|
||||
|
||||
/** 完成交易的设备名称;本机数据范围下与服务端解析的终端一致。 */
|
||||
private String hardName;
|
||||
|
||||
/** 下单时间。 */
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
Reference in new issue
Block a user