|
@@ -3,6 +3,9 @@ package zs.payment.entity.mongodb.supply;
|
|
|
import lombok.Getter;
|
|
import lombok.Getter;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
import lombok.Setter;
|
|
import lombok.Setter;
|
|
|
|
|
+import org.bson.types.ObjectId;
|
|
|
|
|
+import org.springframework.data.annotation.Id;
|
|
|
|
|
+import org.springframework.data.mongodb.core.mapping.Field;
|
|
|
import zs.payment.dto.*;
|
|
import zs.payment.dto.*;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -13,21 +16,29 @@ import java.util.List;
|
|
|
public class Orders {
|
|
public class Orders {
|
|
|
|
|
|
|
|
// 订单id
|
|
// 订单id
|
|
|
- private Integer id;
|
|
|
|
|
|
|
+ @Id
|
|
|
|
|
+ private ObjectId id;
|
|
|
// 创建时间
|
|
// 创建时间
|
|
|
- private Long created_at;
|
|
|
|
|
|
|
+ @Field("created_at")
|
|
|
|
|
+ private Long createdAt;
|
|
|
// 修改时间
|
|
// 修改时间
|
|
|
- private Long updated_at;
|
|
|
|
|
|
|
+ @Field("updated_at")
|
|
|
|
|
+ private Long updatedAt;
|
|
|
// 订单编号(主要的)
|
|
// 订单编号(主要的)
|
|
|
- private Long order_sn;
|
|
|
|
|
|
|
+ @Field("order_sn")
|
|
|
|
|
+ private Long orderSn;
|
|
|
// 第三方订单号
|
|
// 第三方订单号
|
|
|
- private String third_order_sn;
|
|
|
|
|
|
|
+ @Field("third_order_sn")
|
|
|
|
|
+ private String thirdOrderSn;
|
|
|
// 供应链订单号
|
|
// 供应链订单号
|
|
|
- private String gather_supply_sn;
|
|
|
|
|
|
|
+ @Field("gather_supply_sn")
|
|
|
|
|
+ private String gatherSupplySn;
|
|
|
//
|
|
//
|
|
|
- private String gather_supply_msg;
|
|
|
|
|
|
|
+ @Field("gather_supply_msg")
|
|
|
|
|
+ private String gatherSupplyMsg;
|
|
|
// 供应链类型id
|
|
// 供应链类型id
|
|
|
- private Integer gather_supply_type;
|
|
|
|
|
|
|
+ @Field("gather_supply_type")
|
|
|
|
|
+ private Integer gatherSupplyType;
|
|
|
//
|
|
//
|
|
|
private String key;
|
|
private String key;
|
|
|
// 标题
|
|
// 标题
|
|
@@ -37,79 +48,113 @@ public class Orders {
|
|
|
// 订单总金额(分)
|
|
// 订单总金额(分)
|
|
|
private Integer amount;
|
|
private Integer amount;
|
|
|
// 退款金额(分)
|
|
// 退款金额(分)
|
|
|
- private Integer refund_amount;
|
|
|
|
|
|
|
+ @Field("refund_amount")
|
|
|
|
|
+ private Integer refundAmount;
|
|
|
// 商品市场价(分)
|
|
// 商品市场价(分)
|
|
|
- private Integer item_amount;
|
|
|
|
|
|
|
+ @Field("item_amount")
|
|
|
|
|
+ private Integer itemAmount;
|
|
|
// 供货金额(分)
|
|
// 供货金额(分)
|
|
|
- private Integer supply_amount;
|
|
|
|
|
|
|
+ @Field("supply_amount")
|
|
|
|
|
+ private Integer supplyAmount;
|
|
|
// 成本金额(分)
|
|
// 成本金额(分)
|
|
|
- private Integer cost_amount;
|
|
|
|
|
|
|
+ @Field("cost_amount")
|
|
|
|
|
+ private Integer costAmount;
|
|
|
// 运费(分)
|
|
// 运费(分)
|
|
|
private Integer freight;
|
|
private Integer freight;
|
|
|
// 服务费(分)
|
|
// 服务费(分)
|
|
|
- private Integer service_fee;
|
|
|
|
|
|
|
+ @Field("service_fee")
|
|
|
|
|
+ private Integer serviceFee;
|
|
|
// 商品总数
|
|
// 商品总数
|
|
|
- private Integer goods_count;
|
|
|
|
|
|
|
+ @Field("goods_count")
|
|
|
|
|
+ private Integer goodsCount;
|
|
|
// 发货状态 0待发货 1部分发货 2已发货
|
|
// 发货状态 0待发货 1部分发货 2已发货
|
|
|
- private Integer send_status;
|
|
|
|
|
|
|
+ @Field("send_status")
|
|
|
|
|
+ private Integer sendStatus;
|
|
|
// 退款状态
|
|
// 退款状态
|
|
|
- private Integer refund_status;
|
|
|
|
|
|
|
+ @Field("refund_status")
|
|
|
|
|
+ private Integer refundStatus;
|
|
|
// 买家留言
|
|
// 买家留言
|
|
|
private String remark;
|
|
private String remark;
|
|
|
// 商家备注
|
|
// 商家备注
|
|
|
private String note;
|
|
private String note;
|
|
|
// 技术服务费(分)
|
|
// 技术服务费(分)
|
|
|
- private Integer technical_services_fee;
|
|
|
|
|
|
|
+ @Field("technical_services_fee")
|
|
|
|
|
+ private Integer technicalServicesFee;
|
|
|
// 支付时间
|
|
// 支付时间
|
|
|
- private String paid_at;
|
|
|
|
|
|
|
+ @Field("paid_at")
|
|
|
|
|
+ private String paidAt;
|
|
|
// 发货时间
|
|
// 发货时间
|
|
|
- private String sent_at;
|
|
|
|
|
|
|
+ @Field("sent_at")
|
|
|
|
|
+ private String sentAt;
|
|
|
// 完成时间
|
|
// 完成时间
|
|
|
- private String received_at;
|
|
|
|
|
|
|
+ @Field("received_at")
|
|
|
|
|
+ private String receivedAt;
|
|
|
// 关闭时间
|
|
// 关闭时间
|
|
|
- private String closed_at;
|
|
|
|
|
|
|
+ @Field("closed_at")
|
|
|
|
|
+ private String closedAt;
|
|
|
// 会员id
|
|
// 会员id
|
|
|
- private Integer user_id;
|
|
|
|
|
|
|
+ @Field("user_id")
|
|
|
|
|
+ private Integer userId;
|
|
|
// 供应商id
|
|
// 供应商id
|
|
|
- private Integer supplier_id;
|
|
|
|
|
|
|
+ @Field("supplier_id")
|
|
|
|
|
+ private Integer supplierId;
|
|
|
// 供应链id
|
|
// 供应链id
|
|
|
- private Integer gather_supply_id;
|
|
|
|
|
|
|
+ @Field("gather_supply_id")
|
|
|
|
|
+ private Integer gatherSupplyId;
|
|
|
//
|
|
//
|
|
|
- private Integer application_id;
|
|
|
|
|
|
|
+ @Field("application_id")
|
|
|
|
|
+ private Integer applicationId;
|
|
|
// 交易id
|
|
// 交易id
|
|
|
- private Integer trade_id;
|
|
|
|
|
|
|
+ @Field("trade_id")
|
|
|
|
|
+ private Integer tradeId;
|
|
|
// 支付方式id
|
|
// 支付方式id
|
|
|
- private Integer pay_type_id;
|
|
|
|
|
|
|
+ @Field("pay_type_id")
|
|
|
|
|
+ private Integer payTypeId;
|
|
|
//
|
|
//
|
|
|
- private Integer pay_info_id;
|
|
|
|
|
|
|
+ @Field("pay_info_id")
|
|
|
|
|
+ private Integer payInfoId;
|
|
|
//
|
|
//
|
|
|
- private Integer shipping_method_id;
|
|
|
|
|
|
|
+ @Field("shipping_method_id")
|
|
|
|
|
+ private Integer shippingMethodId;
|
|
|
// 收货地址id
|
|
// 收货地址id
|
|
|
- private Integer shipping_address_id;
|
|
|
|
|
|
|
+ @Field("shipping_address_id")
|
|
|
|
|
+ private Integer shippingAddressId;
|
|
|
//
|
|
//
|
|
|
- private Integer send_type_id;
|
|
|
|
|
|
|
+ @Field("send_type_id")
|
|
|
|
|
+ private Integer sendTypeId;
|
|
|
//
|
|
//
|
|
|
- private Integer comment_status;
|
|
|
|
|
|
|
+ @Field("comment_status")
|
|
|
|
|
+ private Integer commentStatus;
|
|
|
// 是否可以退货(1是0否)
|
|
// 是否可以退货(1是0否)
|
|
|
- private Integer can_refund;
|
|
|
|
|
|
|
+ @Field("can_refund")
|
|
|
|
|
+ private Integer canRefund;
|
|
|
//
|
|
//
|
|
|
private Integer lock;
|
|
private Integer lock;
|
|
|
//
|
|
//
|
|
|
- private Integer is_connection;
|
|
|
|
|
|
|
+ @Field("is_connection")
|
|
|
|
|
+ private Integer isConnection;
|
|
|
//
|
|
//
|
|
|
- private Integer is_update_shipping_address;
|
|
|
|
|
|
|
+ @Field("is_update_shipping_address")
|
|
|
|
|
+ private Integer isUpdateShippingAddress;
|
|
|
//
|
|
//
|
|
|
- private Integer is_cps;
|
|
|
|
|
|
|
+ @Field("is_cps")
|
|
|
|
|
+ private Integer isCps;
|
|
|
// 订单支付明细
|
|
// 订单支付明细
|
|
|
- private AmountDetailDTO amount_detail;
|
|
|
|
|
|
|
+ @Field("amount_detail")
|
|
|
|
|
+ private AmountDetailDTO amountDetail;
|
|
|
// 子订单信息
|
|
// 子订单信息
|
|
|
- private List<OrderItemDTO> order_items;
|
|
|
|
|
|
|
+ @Field("order_items")
|
|
|
|
|
+ private List<OrderItemDTO> orderItems;
|
|
|
// 配送信息
|
|
// 配送信息
|
|
|
- private OrderExpressDTO order_express;
|
|
|
|
|
|
|
+ @Field("order_express")
|
|
|
|
|
+ private OrderExpressDTO orderExpress;
|
|
|
// 收货信息
|
|
// 收货信息
|
|
|
- private ShippingAddressDTO shipping_address;
|
|
|
|
|
|
|
+ @Field("shipping_address")
|
|
|
|
|
+ private ShippingAddressDTO shippingAddress;
|
|
|
// 发票信息
|
|
// 发票信息
|
|
|
- private OrderBillDTO order_bill;
|
|
|
|
|
|
|
+ @Field("order_bill")
|
|
|
|
|
+ private OrderBillDTO orderBill;
|
|
|
// 技术服务费账单
|
|
// 技术服务费账单
|
|
|
- private TechnologyFeeBillDTO technology_fee_bill;
|
|
|
|
|
|
|
+ @Field("technology_fee_bill")
|
|
|
|
|
+ private TechnologyFeeBillDTO technologyFeeBill;
|
|
|
}
|
|
}
|