package com.webmanage.entity; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; /** * 订单信息实体 * * @author webmanage * @date 2024-08-07 */ @Data @EqualsAndHashCode(callSuper = false) @TableName("order_info") public class OrderInfo implements Serializable { private static final long serialVersionUID = 1L; /** * 订单编号 */ @TableId(value = "order_id", type = IdType.INPUT) private String orderId; /** * 产品ID */ @TableField("product_id") private Long productId; /** * 用户ID */ @TableField("user_id") private Long userId; /** * 单位ID */ @TableField("unit_id") private Long unitId; /** * 产品名称 */ @TableField("product_name") private String productName; /** * 产品提供者名称 */ @TableField("provider_name") private String providerName; /** * 提供者ID */ @TableField("provider_id") private Long providerId; /** * 申请时间 */ @TableField("apply_time") private LocalDateTime applyTime; /** * 订单状态 */ @TableField("order_status") private String orderStatus; /** * 订单总金额 */ @TableField("total_amount") private BigDecimal totalAmount; /** * 支付方式 */ @TableField("payment_type") private String paymentType; /** * 支付状态 */ @TableField("payment_status") private String paymentStatus; /** * 工作流ID */ @TableField("workflow_id") private String workflowId; /** * 当前审批步骤 */ @TableField("current_step") private String currentStep; /** * 审批流程配置 */ @TableField("approval_flow") private String approvalFlow; /** * 买家备注 */ @TableField("buyer_remarks") private String buyerRemarks; /** * 卖家备注 */ @TableField("seller_remarks") private String sellerRemarks; /** * 创建时间 */ @TableField(value = "created_at", fill = FieldFill.INSERT) private LocalDateTime createdAt; /** * 更新时间 */ @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE) private LocalDateTime updatedAt; /** * 逻辑删除 */ @TableLogic @TableField("deleted") private Integer deleted; }