erp-java/seata/example/entity/Order.java

22 lines
582 B
Java

package com.erp.example.seata.entity;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 订单实体
*/
@Data
public class Order {
private Long id;
private String orderNo; // 订单编号
private Long customerId; // 客户ID
private Long productId; // 商品ID
private Integer quantity; // 购买数量
private BigDecimal totalAmount; // 订单总金额
private String status; // 订单状态
private LocalDateTime createTime;
private LocalDateTime updateTime;
}