jiaosong
2023-08-11 3be66c9343f68b78a75d5ca93c001245484c780a
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
package doumeemes.dao.business.vo;
 
import cn.afterturn.easypoi.excel.annotation.Excel;
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 doumeemes.core.annotation.excel.ExcelColumn;
import doumeemes.dao.ext.vo.PlansExtListVO;
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 江蹄蹄
 * @since 2023/07/24 15:33
 */
@Data
@ApiModel("成品计划列表对象")
public class WorkPlansVO  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 = "创建时间")
    @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 = "生产工厂机级组织编码(关联department表)", example = "1")
    private Integer factoryId;
 
    @ApiModelProperty(value = "工厂名称", example = "1")
    @ExcelColumn(name="工厂名称",index = 4,width =15)
    private String factoryName;
 
    @ApiModelProperty(value = "来源 0人工创建、1Excel导入", example = "1")
    private Integer origin;
 
    @ApiModelProperty(value = "计划编码")
    @ExcelColumn(name="计划编码",index = 0,width =15)
    private String planCode;
 
    @ApiModelProperty(value = "计划日期")
    @ExcelColumn(name="计划日期",index = 3,width =15)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date planDate;
    @ApiModelProperty(value = "计划开始日期")
    @ExcelColumn(name="计划开始日期",index = 17,width =15)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @ApiModelProperty(value = "销售单号" )
    private String salesorder;
    @ApiModelProperty(value = "物料编码(关联material_distribute表)", example = "1")
    private Integer materialId;
 
 
    @ApiModelProperty(value = "物料编码", example = "1")
    @ExcelColumn(name="物料编码",index = 1,width =15)
    private String materialCode;
 
    @ApiModelProperty(value = "物料名称", example = "1")
    @ExcelColumn(name="物料名称",index = 2,width =15)
    private String materialName;
 
 
    @ApiModelProperty(value = "单位编码(关联unit_distribute表)", example = "1")
    private Integer unitId;
 
    @ApiModelProperty(value = "单位编码名称", example = "1")
    @ExcelColumn(name="单位名称",index = 6,width =15)
    private String unitName;
 
    @ApiModelProperty(value = "计划数量", example = "1")
    @ExcelColumn(name="计划数量",index = 5,width =15)
    private Integer num;
 
    @ApiModelProperty(value = "批次号")
    @ExcelColumn(name="批次号",index = 7,width =15)
    private String batch;
 
    @ApiModelProperty(value = "状态 1=已生成;2=已发布、3已取消、4已分配、5已暂停、6已完工、7已入库、8已关闭", example = "1")
    @ExcelColumn(name="计划状态",valueMapping = "0=已生成;1=执行中;3=已取消;4=已分配;5=已暂停;6=已完工;7=已入库;8=已关闭;",index = 8,width =15)
    private Integer status;
 
    @ApiModelProperty(value = "导入批号(关联plan_import表)", example = "1")
    private Integer importId;
 
    @ApiModelProperty(value = "是否暂停 0未暂停 1已暂停", example = "1")
    @ExcelColumn(name="是否暂停",valueMapping = "0=否;1=是",index = 9,width =15)
    private Integer paused;
 
    @ApiModelProperty(value = "计划员编码(与system_user表关联)", example = "1")
    private Integer userId;
 
    @ApiModelProperty(value = "优先级(排序码)字段", example = "1")
    private Integer urgent;
 
    @ApiModelProperty(value = "计划员姓名", example = "1")
    @ExcelColumn(name="计划员姓名",index = 14,width =15)
    private String userName;
 
    @ApiModelProperty(value = "计划员手机号", example = "1")
    @ExcelColumn(name="计划员手机号",index = 15,width =15)
    private String userMobile;
 
    @ApiModelProperty(value = "计划发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelColumn(name="计划发布时间",index = 13,width =15)
    private Date publishDate;
 
    @ApiModelProperty(value = "用户部门名称", example = "1")
    private String userDepartName;
 
    @ApiModelProperty(value = "完工数量", example = "1")
    @ExcelColumn(name="完工数量" ,index = 10,width =15)
    private Integer finishNum;
 
    @ApiModelProperty(value = "完工合格数量", example = "1")
    @ExcelColumn(name="完工合格数量",index = 11,width =15)
    private Integer finishQualifiedNum;
 
    @ApiModelProperty(value = "完工不良数量", example = "1")
    @ExcelColumn(name="完工不良数量",index = 12,width =15)
    private Integer finishUnQualifiedNum;
 
    @ApiModelProperty(value = "子计划明细信息", example = "1")
    private List<PlansExtListVO> plansExtListVOList;
 
    @ApiModelProperty(value = "是否过期")
    private Boolean hasExpire;
}