package com.tcm.training.admin.points.entity; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.time.LocalDateTime; @TableName("tcm_points_exchange_order_item") @Getter @Setter @NoArgsConstructor public class PointsExchangeOrderItem { @TableId(type = IdType.AUTO) private Long id; @TableField("order_id") private Long orderId; @TableField("order_no") private String orderNo; @TableField("app_user_id") private Long appUserId; @TableField("user_nickname") private String userNickname; @TableField("user_phone") private String userPhone; @TableField("clinic_id") private Long clinicId; @TableField("clinic_name") private String clinicName; @TableField("province_code") private String provinceCode; @TableField("province_name") private String provinceName; @TableField("city_code") private String cityCode; @TableField("city_name") private String cityName; @TableField("district_code") private String districtCode; @TableField("district_name") private String districtName; @TableField("settled_points") private Integer settledPoints; /** 状态:0待发货 1待取货 2兑换完成 */ private Integer status; @TableField("tracking_no") private String trackingNo; @TableField("shipped_at") private LocalDateTime shippedAt; @TableField("completed_at") private LocalDateTime completedAt; @TableField("cancelled_at") private LocalDateTime cancelledAt; @TableLogic private Integer deleted; @TableField(value = "created_by", fill = FieldFill.INSERT) private String createdBy; @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE) private String updatedBy; @TableField("created_at") private LocalDateTime createdAt; @TableField("updated_at") private LocalDateTime updatedAt; }