You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
55 lines
1.5 KiB
package com.spring.modules.part.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import lombok.Data;
|
|
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* 物料关键字段变更日志
|
|
* 追踪 std_order_qty 和 estimated_material_cost 的每次变更
|
|
*/
|
|
@Data
|
|
@TableName("part_field_change_log")
|
|
public class PartFieldChangeLogEntity implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@TableId(type = IdType.AUTO)
|
|
private Long id;
|
|
|
|
/** 工厂 */
|
|
private String site;
|
|
|
|
/** 物料编码 */
|
|
private String partNo;
|
|
|
|
/** 变更字段名:std_order_qty 或 estimated_material_cost */
|
|
private String fieldName;
|
|
|
|
/** 变更前的值 */
|
|
private BigDecimal oldValue;
|
|
|
|
/** 变更后的值 */
|
|
private BigDecimal newValue;
|
|
|
|
/** 变更时间 */
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
private Date changeTime;
|
|
|
|
/** 数据库连接账号(触发器记录,可辨别是否来自存储过程/应用) */
|
|
private String dbUser;
|
|
|
|
/** 连接来源程序名(如 Microsoft JDBC Driver for SQL Server) */
|
|
private String appName;
|
|
|
|
/** 发起变更的主机名 */
|
|
private String hostName;
|
|
|
|
/** 备注(Java 层补充写入操作人、操作类型等) */
|
|
private String remark;
|
|
}
|