20 lines
538 B
Java
20 lines
538 B
Java
package com.erp.example.seata.entity;
|
|
|
|
import lombok.Data;
|
|
import java.time.LocalDateTime;
|
|
|
|
/**
|
|
* 库存变动日志实体
|
|
*/
|
|
@Data
|
|
public class InventoryLog {
|
|
private Long id;
|
|
private Long productId; // 商品ID
|
|
private String orderNo; // 关联订单号
|
|
private String changeType; // 变动类型
|
|
private Integer quantity; // 变动数量
|
|
private Integer beforeStock; // 变动前库存
|
|
private Integer afterStock; // 变动后库存
|
|
private LocalDateTime createTime;
|
|
}
|