订单基础业务
parent
6887805761
commit
0cdc8727a3
|
@ -22,7 +22,6 @@ public class OrdersAddReq {
|
||||||
/**
|
/**
|
||||||
* 订单编号
|
* 订单编号
|
||||||
*/
|
*/
|
||||||
// @NotEmpty(message = "订单编号不可为空")
|
|
||||||
@Schema(
|
@Schema(
|
||||||
title = "订单服务编号",
|
title = "订单服务编号",
|
||||||
description = "‘订单编码’和订单id主键不同,由产品类别批次系统构建"
|
description = "‘订单编码’和订单id主键不同,由产品类别批次系统构建"
|
||||||
|
@ -34,7 +33,6 @@ public class OrdersAddReq {
|
||||||
*/
|
*/
|
||||||
@Schema(title = "订单产品(产品外键)",
|
@Schema(title = "订单产品(产品外键)",
|
||||||
type = "Integer")
|
type = "Integer")
|
||||||
// @NotEmpty(message = "订单产品不可为空")
|
|
||||||
private Integer ordersProduct;
|
private Integer ordersProduct;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -42,13 +40,11 @@ public class OrdersAddReq {
|
||||||
*/
|
*/
|
||||||
@Schema(title = "订单所属人(用户外键)",
|
@Schema(title = "订单所属人(用户外键)",
|
||||||
type = "Integer")
|
type = "Integer")
|
||||||
// @NotEmpty(message = "订单所属人不可为空")
|
|
||||||
private Integer ordersUser;
|
private Integer ordersUser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 订单金额
|
* 订单金额
|
||||||
*/
|
*/
|
||||||
// @NotBlank(message = "订单金额不可为空")
|
|
||||||
@Schema(
|
@Schema(
|
||||||
title = "订单金额",
|
title = "订单金额",
|
||||||
description = "订单金额方向需使用特殊操作处理",
|
description = "订单金额方向需使用特殊操作处理",
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
package com.muyu.cloud.market.domin.req;
|
package com.muyu.cloud.market.domin.req;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@ -15,6 +19,44 @@ public class OrdersUpdReq {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单产品(产品外键)
|
||||||
|
*/
|
||||||
|
@Schema(title = "订单产品(产品外键)",
|
||||||
|
type = "Integer")
|
||||||
|
private Integer ordersProduct;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单金额
|
||||||
|
*/
|
||||||
|
@Schema(
|
||||||
|
title = "订单金额",
|
||||||
|
description = "订单金额方向需使用特殊操作处理",
|
||||||
|
type = "BigDecimal"
|
||||||
|
)
|
||||||
|
private BigDecimal ordersPrice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单规格
|
||||||
|
*/
|
||||||
|
@Schema(
|
||||||
|
description = "订单规格",
|
||||||
|
type = "String"
|
||||||
|
)
|
||||||
|
private String ordersSpecification;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单状态(已付款,未付款,待支付)
|
||||||
|
*/
|
||||||
|
@Schema(
|
||||||
|
title = "订单状态",
|
||||||
|
description = "订单状态:0-待支付 1-已付款 2-已取消"
|
||||||
|
)
|
||||||
|
private Integer ordersState;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue