jiazx0107@163.com
2023-05-26 75e83ba772ef70396b2595ccab646edf8ec4df51
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.constant.FoodVariety;
import com.ld.igds.inout.InoutConstant;
import lombok.Data;
 
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
 
/**
 * 出入库-入库通知单,2023年5月26日 优化调整
 *
 * @author chen
 */
@Data
@Entity
@Table(name = "D_INOUT_NOTICE_IN")
public class InoutNoticeIn implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "通知单号")
    private String id;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "DEPT_ID_", length = 50)
    @PropertyDef(label = "库区编码")
    private String deptId;
 
    @Column(name = "NAME_", length = 50)
    @PropertyDef(label = "通知单名称")
    private String name;
 
    @Column(name = "PLAN_ID_", length = 40)
    @PropertyDef(label = "计划明细号", description = "针对轮换粮食必填")
    private String planId;
 
    @Column(name = "CONTRACT_ID_", length = 40)
    @PropertyDef(label = "合同编码", description = "针对轮换粮食必填")
    private String contractId;
 
    @Column(name = "CONTRACT_NAME_", length = 50)
    @PropertyDef(label = "合同名称", description = "针对轮换粮食必填")
    private String contractName;
 
//    @Column(name = "PLAN_NAME_", length = 50)
//    @PropertyDef(label = "计划名称")
//    private String planName;
 
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "目标仓库")
    private String depotId;
 
    @Column(name = "CUSTOMER_ID_", length = 40)
    @PropertyDef(label = "发货客户")
    private String customerId;
 
    @Column(name = "CUSTOMER_NAME_", length = 50)
    @PropertyDef(label = "发货客户")
    private String customerName;
 
    @Column(name = "UNIT_NAME_", length = 50)
    @PropertyDef(label = "收货单位", description = "库区所属公司,手动录入")
    private String unitName;
 
    @Column(name = "FOOD_VARIETY_", length = 10)
    @PropertyDef(label = "粮食品种")
    private String foodVariety;
 
    @Column(name = "YEAR_", length = 10)
    @PropertyDef(label = "年份")
    private String year;
 
    @Column(name = "TARGET_NUMBER_")
    @PropertyDef(label = "目标数量", description = "单位:吨,手动填报")
    private double targetNumber = 0.0;
 
    @Column(name = "COMPLETE_NUMBER_")
    @PropertyDef(label = "完成数量", description = "单位:吨,系统自动合计")
    private double completeNumber = 0.0;
 
    @Column(name = "AUDIT_STATUS_", length = 10)
    @PropertyDef(label = "审核状态", description = "为审核,审核通过,拒接")
    private String auditStatus = InoutConstant.STATUS_NONE;
 
    @Column(name = "AUDIT_USER_", length = 50)
    @PropertyDef(label = "审核人")
    private String auditUser;
 
    @Column(name = "AUDIT_DATE_")
    @PropertyDef(label = "审批时间", description = "格式:yyyy-MM-dd HH:mm:ss")
    private String auditDate;
 
    @Column(name = "COMPLETE_STATUS_", length = 10)
    @PropertyDef(label = "完成状态", description = "未完成,已完成")
    private String completeStatus = InoutConstant.COMPLETE_STATUS_NONE;
 
    @Column(name = "COMPLETE_TIME_")
    @PropertyDef(label = "完成时间")
    private Date completeTime;
 
    @Column(name = "CREATE_TIME_")
    @PropertyDef(label = "创建时间")
    private Date createTime = new Date();
 
    @Column(name = "CREATE_USER_", length = 50)
    @PropertyDef(label = "创建人")
    private String createUser;
 
    @Column(name = "REMARK_", length = 200)
    @PropertyDef(label = "备注信息")
    private String remark;
 
    @Column(name = "TYPE_", length = 2)
    @PropertyDef(label = "业务说明", description = "轮换粮食,非轮换粮,如果为轮换粮食,计划明细和合同必填")
    private String type;
 
    @Transient
    @PropertyDef(label = "标记", description = "用于判断通知单是否为新增")
    private String tag;
 
 
    public String getFoodVarietyName() {
        if (null != this.foodVariety) {
            return FoodVariety.getMsg(this.foodVariety);
        }
        return null;
    }
 
    @Transient
    @PropertyDef(label = "仓库名称")
    private String depotName = "";
 
    @Transient
    @PropertyDef(label = "粮食品种")
    private String foodVarietyName;
}