package com.rj.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.math.BigDecimal; @Data @EqualsAndHashCode(callSuper = false) @TableName("lb_order_row") @Schema(description = "LB 订单行表") public class LbOrderRow implements Serializable { private static final long serialVersionUID = 1L; /** * 订单 id(与 {@link #tenantId} 组成复合主键 {@code (tenant_id, id)}),由调用方传入,非数据库自增。 * MyBatis-Plus 仅标注 {@code id} 为 {@link TableId},按主键定位记录时需同时使用租户 id。 */ @TableId(value = "id", type = IdType.INPUT) @Schema(description = "订单 id(复合主键之一,须与 tenantId 一起使用)") private Long id; @TableField("old_id") @Schema(description = "旧订单 id") private Long oldId; @TableField("tenant_id") @Schema(description = "租户ID") private String tenantId; @TableField("data_type") @Schema(description = "数据类型") private String dataType; @TableField("seller_id") @Schema(description = "卖家 id") private Long sellerId; @TableField("seller_name") @Schema(description = "卖家姓名") private String sellerName; @TableField("seller_phone") @Schema(description = "卖家电话") private String sellerPhone; @TableField("buyer_id") @Schema(description = "买家 id") private Long buyerId; @TableField("buyer_name") @Schema(description = "买家姓名") private String buyerName; @TableField("buyer_phone") @Schema(description = "买家电话") private String buyerPhone; @TableField("order_sn") @Schema(description = "订单号") private String orderSn; @TableField("total_money") @Schema(description = "总金额") private BigDecimal totalMoney; @TableField("pay_time") @Schema(description = "支付时间(原样字符串)") private String payTime; @TableField("pay_img") @Schema(description = "支付凭证图") private String payImg; @TableField("status") @Schema(description = "状态") private Integer status; @TableField("is_resell") @Schema(description = "是否转卖") private Integer isResell; @TableField("is_show") @Schema(description = "是否展示") private Integer isShow; @TableField("consignee") @Schema(description = "收货人") private String consignee; @TableField("phone") @Schema(description = "电话") private String phone; @TableField("province") @Schema(description = "省") private String province; @TableField("city") @Schema(description = "市") private String city; @TableField("area") @Schema(description = "区") private String area; @TableField("address") @Schema(description = "详细地址") private String address; @TableField("merchandise_id") @Schema(description = "商品 id") private Long merchandiseId; @TableField("confirm_time") @Schema(description = "确认时间") private String confirmTime; @TableField("buy_time") @Schema(description = "下单时间") private String buyTime; @TableField("created_at") @Schema(description = "创建时间") private String createdAt; @TableField("updated_at") @Schema(description = "更新时间") private String updatedAt; @TableField("today_total_money_sum") @Schema(description = "汇总后的总金额") private BigDecimal todayTotalMoneySum; @TableField("today_unresell_count") @Schema(description = "当天没有寄卖的单数总和") private Integer todayUnresellCount; @TableField("today_order_count") @Schema(description = "当天交易单数") private Integer todayOrderCount; @TableField("avg_amt") @Schema(description = "平均金额(sum_data 按日汇总时:总金额 / 当天交易单数)") private BigDecimal avgAmt; }