package com.fzzy.igds.dzhwk.domain;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import lombok.Data;
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
import javax.persistence.*;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* @Description AI决策分析
|
* @Author CZT
|
* @Date 2025/6/06 10:59
|
*/
|
@Data
|
@Entity
|
@Table(name = "H_AI_ANALYSIS")
|
public class AiAnalysis implements Serializable {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
public static String SORT_PROP = "id";
|
|
@Id
|
@Column(name = "ID_")
|
private String id;
|
|
@Column(name = "COMPANY_ID_", length = 10)
|
@PropertyDef(label = "组织编码")
|
private String companyId;
|
|
@Column(name = "DEPT_ID_", length = 30)
|
@PropertyDef(label = "所属分库")
|
private String deptId;
|
|
@Column(name = "DEPOT_ID_", length = 50)
|
@PropertyDef(label = "所属仓库")
|
private String depotId;
|
|
@Column(name = "TYPE_", length = 50)
|
@PropertyDef(label = "分析类型", description = "01-粮情分析,02-作业分析,03-其他")
|
private String type;
|
|
@Column(name = "MODE_", length = 50)
|
@PropertyDef(label = "分析方式", description = "01-粮情大数据对比,02-作业数据对比,03-其他")
|
private String mode;
|
|
@Column(name = "TIME_")
|
@PropertyDef(label = "分析时间")
|
private Date time;
|
|
@Column(name = "RESULT_", length = 50)
|
@PropertyDef(label = "分析结果")
|
private String result;
|
|
@Column(name = "INFO_", length = 254)
|
@PropertyDef(label = "分析详情")
|
private String info;
|
|
@Column(name = "UPDATE_TIME_")
|
@PropertyDef(label = "更新时间")
|
private Date updateTime;
|
|
@Transient
|
private String timeStr;
|
|
public String getTimeStr() {
|
if(null == this.time){
|
return "";
|
}
|
return DateFormatUtils.format(this.time, "yy-MM-dd HH:mm");
|
}
|
}
|