czt
2025-06-09 13b6ad41f0b057f8405f7976a990e9057547443a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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");
    }
}