jiaosong
2023-08-14 3eca8e4741b06c6049fedccd5c0dea4e01b7aa5c
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
package doumeemes.dao.ext.vo;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import doumeemes.core.annotation.excel.ExcelColumn;
import doumeemes.dao.business.model.*;
import doumeemes.dao.system.model.SystemDictData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
import java.util.List;
 
/**
 * @author 江蹄蹄
 * @date 2022/04/20 10:56
 */
@Data
@ApiModel("工单信息列表对象")
public class WorkorderExtListVO implements Serializable{
 
    @ApiModelProperty(value = "主键", example = "1")
    private Integer id;
 
    @ApiModelProperty(value = "是否已删除 0未删除 1已删除", example = "1")
    private Integer deleted;
 
    @ApiModelProperty(value = "创建人编码", example = "1")
    private Integer createUser;
 
    @ApiModelProperty(value = "创建人编码名称", example = "1")
    private String createUserName;
 
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
 
    @ApiModelProperty(value = "更新人编码", example = "1")
    private Integer updateUser;
 
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
 
    @ApiModelProperty(value = "备注")
    private String remark;
 
    @ApiModelProperty(value = "主组织编码(关联department表根组织)", example = "1")
    private Integer rootDepartId;
 
    @ApiModelProperty(value = "公司级组织编码(关联department表)", example = "1")
    private Integer departId;
 
    @ApiModelProperty(value = "所属计划编码", example = "1")
    private Integer planId;
 
    @ApiModelProperty(value = "生产工厂机级组织编码(关联department表)", example = "1")
    private Integer factoryId;
 
    @ApiModelProperty(value = "生产工序编码(关联procedures表)", example = "1")
    private Integer procedureId;
 
    @ApiModelProperty(value = "工单编号")
    @ExcelColumn(name="工单编号",index = 3,width =15)
    private String code;
 
    @ApiModelProperty(value = "原工单编码(返工工单专用)", example = "1")
    private Integer originWorkorderId;
 
    @ApiModelProperty(value = "工单类型ID(关联system_dict_data)", example = "1")
    private Integer typeId;
 
    @ApiModelProperty(value = "数据来源ID(关联system_dict_data)", example = "1")
    private Integer originId;
 
    @ApiModelProperty(value = "是否暂停 0未暂停 1已暂停", example = "1")
    private Integer paused;
 
    @ApiModelProperty(value = "计划日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelColumn(name="计划开工日期",index = 1,width =15)
    private Date planDate;
 
    @ApiModelProperty(value = "计划数量", example = "1")
    @ExcelColumn(name="计划数量",index = 7,width =15)
    private Integer planNum;
 
    @ApiModelProperty(value = "物料编码(关联material_distribute表)", example = "1")
    private Integer materialId;
 
    @ApiModelProperty(value = "单位编码(关联unit_distribute表)", example = "1")
    private Integer unitId;
 
    @ApiModelProperty(value = "批次号")
    @ExcelColumn(name="批次号",index = 8,width =15)
    private String batch;
 
    @ApiModelProperty(value = "生产人员编码(关联system_user表)", example = "1")
    private Integer proUserId;
 
    @ApiModelProperty(value = "生产班组编码(关联device表)", example = "1")
    private Integer proGroupId;
 
    @ApiModelProperty(value = "合格数量", example = "1")
    @ExcelColumn(name="合格数量",index = 12,width =15)
    private Integer qualifiedNum;
 
    @ApiModelProperty(value = "不合格数量", example = "1")
    @ExcelColumn(name="不良数量",index = 13,width =15)
    private Integer unqualifiedNum;
 
    @ApiModelProperty(value = "检验人员编码", example = "1")
    private Integer checkUserId;
 
    @ApiModelProperty(value = "工单状态 0已创建、1已备料、2已完工、3已检验、4已报工、5已入库、6已取消、7生产中", example = "1")
    @ExcelColumn(name="工单状态",valueMapping = "0=已创建;1=已备料;2=已完工;3=已检验;4=已报工;5=已入库;6=已取消;7=生产中;",index = 14,width =15)
    private Integer status;
 
    @ApiModelProperty(value = "最近状态更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastDealDate;
 
    @ApiModelProperty(value = "最近状态更新备注")
    private String lastDealInfo;
 
    @ApiModelProperty(value = "优先级(排序码)字段", example = "1")
    private Integer urgent;
 
 
    @ApiModelProperty(value = "返修申请单号(关联backorder表)", example = "1")
    private Integer backorderId;
 
    @ApiModelProperty(value = "系统-组织信息表信息")
    private Department dmodel;
 
    @ApiModelProperty(value = "工单类-生产计划信息表信息")
    private Plans pmodel;
 
    @ApiModelProperty(value = "系统-组织信息表信息")
    private Department fmodel;
 
    @ApiModelProperty(value = "系统-数据字典数据表信息")
    private SystemDictData tmodel;
 
    @ApiModelProperty(value = "物料基本信息表信息")
    private Material mmodel;
 
    @ApiModelProperty(value = "物料单位信息表信息")
    private Unit umodel;
 
    @ApiModelProperty(value = "生产设备信息表信息")
    private Device pgmodel;
 
    @ApiModelProperty(value = "工单类型(0正常、1返工、2客户返修)", example = "1")
    @ExcelColumn(name="工单类型",valueMapping = "0=正常;1=异常;2=客户返修;",index = 4,width =15)
    private Integer type;
 
    @ApiModelProperty(value = "检点内容(json)", example = "1")
    private String checkParam;
 
    @ApiModelProperty(value = "报工数量", example = "1")
    @ExcelColumn(name="报工数量",index = 11,width =15)
    private Integer proNum;
 
    @ApiModelProperty(value = "二维码ID", example = "1")
    private Integer qrcodeId;
    @ApiModelProperty(value = "是否有bom配置 0无 1有", example = "1")
    private Integer hasBom;
    @ApiModelProperty(value = "bom投料方式 0推式 1拉式", example = "1")
    private Integer bomType;
 
    @ApiModelProperty(value = "投料记录编码", example = "1")
    private Integer touliaoId;
 
    @ApiModelProperty(value = "工序名称" )
    private String procedureName;
 
    @ApiModelProperty(value = "工序是否需要检验才能报工 0是 1否" ,example = "0")
    private Integer procedureNeedcheck;
 
    @ApiModelProperty(value = "来源名称" )
    private String originName;
 
    @ApiModelProperty(value = "生产人员名称" )
    private String proUserName;
    @ApiModelProperty(value = "创建人姓名" )
    private String userName;
    @ApiModelProperty(value = "生产人员部门编码" ,hidden = true)
    private String proUserDepartId;
    @ApiModelProperty(value = "生产人员部门名称" ,hidden = true)
    private String proUserDepartName;
    @ApiModelProperty(value = "工序报工是否计算不良品 0是 1否",hidden = true)
    @TableField(exist = false)
    private Integer  iscalculate;
 
    @ApiModelProperty(value = "当前工序下一个工序集合")
    @TableField(exist = false)
    private List<RouteProcedureExtListVO> routeProcedureList;
 
    @ApiModelProperty(value = "图纸编号")
    @TableField(exist = false)
    private String   papercode;
 
    @ApiModelProperty(value = "生产人员分配集合"  )
    private List<WorkorderUserExtListVO> proUserList;
 
    @ExcelColumn(name="生产人员",index = 2,width =15)
    private String proUserListStr;
 
    @ExcelColumn(name="物料名称",index = 5,width =15)
    private String materialName;
 
    @ExcelColumn(name="物料编码",index = 6,width =15)
    private String materialCode;
 
    @ExcelColumn(name="生产设备",index = 9,width =15)
    private String deviceName;
 
    @ExcelColumn(name="工单来源",index = 10,width =15)
    private String orderForm;
 
    @ExcelColumn(name="单位名称",index = 15,width =15)
    private String unitName;
}