Files
TaoTaoWang_backend/src/main/java/com/qf/backend/entity/Orders.java
qingfeng1121 51086db30e feat: 添加用户登录服务及JWT认证功能
refactor: 重构实体类并添加Lombok注解

docs: 更新数据库表结构文档

style: 清理无用代码并优化格式

fix: 修复用户详情服务中的联系方式更新方法

build: 更新pom.xml配置并添加Lombok插件

test: 添加用户登录测试用例

chore: 添加开发和生产环境配置文件
2025-11-28 14:14:38 +08:00

47 lines
1.7 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.qf.backend.entity;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 订单主表
*/
@Data // 自动生成getter、setter、toString、equals、hashCode方法
@Builder // 自动生成builder模式的构造器
@NoArgsConstructor // 自动生成无参构造器
@AllArgsConstructor // 自动生成全参构造器
@TableName("orders")
public class Orders {
@TableId(type = IdType.AUTO)
private Long id; // 订单ID主键自增
private String orderNo; // 订单号
private Long userId; // 用户ID外键关联users表
private Long shopId; // 店铺ID外键关联shops表
private BigDecimal totalAmount; // 总金额
private BigDecimal actualAmount; // 实际支付金额
private BigDecimal shippingFee; // 运费
private Integer orderStatus; // 订单状态0:待付款, 1:待发货, 2:待收货, 3:已完成, 4:已取消, 5:已退款
private String shippingAddress; // 收货地址
private String receiverName; // 收件人姓名
private String receiverPhone; // 收件人电话
private String paymentMethod; // 支付方式
private Date paymentTime; // 支付时间
private Date shippingTime; // 发货时间
private Date deliveryTime; // 送达时间
private Date completeTime; // 完成时间
private String remark; // 备注
private Date createdAt; // 创建时间
private Date updatedAt; // 更新时间
}