|
@@ -1,5 +1,6 @@
|
|
|
package org.dromara.main.domain;
|
|
package org.dromara.main.domain;
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
@@ -18,12 +19,22 @@ public class MainOrder extends BaseEntity {
|
|
|
private Long id;
|
|
private Long id;
|
|
|
|
|
|
|
|
private String orderNo;
|
|
private String orderNo;
|
|
|
|
|
+ /** 客户单号 */
|
|
|
|
|
+ private String customerSn;
|
|
|
private Integer orderType;
|
|
private Integer orderType;
|
|
|
private Integer buyerType;
|
|
private Integer buyerType;
|
|
|
private Long buyerId;
|
|
private Long buyerId;
|
|
|
private String buyerName;
|
|
private String buyerName;
|
|
|
|
|
+ /** 订单来源(小程序/APP/PC) */
|
|
|
|
|
+ private String source;
|
|
|
private Long sellerId;
|
|
private Long sellerId;
|
|
|
private BigDecimal totalAmount;
|
|
private BigDecimal totalAmount;
|
|
|
|
|
+ /** 定金金额 */
|
|
|
|
|
+ private BigDecimal deposit;
|
|
|
|
|
+ /** 尾款金额 */
|
|
|
|
|
+ private BigDecimal balance;
|
|
|
|
|
+ /** 商品数量 */
|
|
|
|
|
+ private Integer quantity;
|
|
|
private BigDecimal paidAmount;
|
|
private BigDecimal paidAmount;
|
|
|
private BigDecimal refundAmount;
|
|
private BigDecimal refundAmount;
|
|
|
private Integer orderStatus;
|
|
private Integer orderStatus;
|
|
@@ -35,4 +46,17 @@ public class MainOrder extends BaseEntity {
|
|
|
private Date cancelTime;
|
|
private Date cancelTime;
|
|
|
private String tenantId;
|
|
private String tenantId;
|
|
|
private String remark;
|
|
private String remark;
|
|
|
|
|
+
|
|
|
|
|
+ // ===== 非数据库字段,用于前端展示(关联查询填充)=====
|
|
|
|
|
+ /** 买家手机号(从 main_student 关联查询) */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
|
+ private String phone;
|
|
|
|
|
+
|
|
|
|
|
+ /** 买家头像URL(从 main_student 关联查询) */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
|
+ private String userAvatar;
|
|
|
|
|
+
|
|
|
|
|
+ /** 商品名称(根据订单类型关联查询) */
|
|
|
|
|
+ @TableField(exist = false)
|
|
|
|
|
+ private String productName;
|
|
|
}
|
|
}
|