Working.java
6.06 KB
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
package org.jeecg.modules.working.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.config.LocalDateTimeConverter;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 工时统计
* @Author: jeecg-boot
* @Date: 2021-03-10
* @Version: V1.0
*/
@Data
@TableName("working")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="working对象", description="工时统计")
public class Working implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**完成日期*/
@Excel(name = "完成日期", width = 20, format = "yyyy-MM-dd")
@ApiModelProperty(value = "完成日期")
@TableField(value = "complete_date")
private Date completeDate;
@ApiModelProperty(value = "公司编码")
@TableField(value = "company_code")
private String companyCode;
/**班组*/
@Excel(name = "班组", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
@ApiModelProperty(value = "班组")
@TableField(value = "depart")
private String depart;
/**操作者*/
@Excel(name = "操作类型", width = 15, dictTable = "working_type", dicText = "name", dicCode = "code")
@Dict(dictTable = "working_type", dicText = "name", dicCode = "code")
@ApiModelProperty(value = "操作类型")
@TableField(value = "type")
private Integer type;
/**操作者*/
@Excel(name = "操作者", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
@ApiModelProperty(value = "操作者")
@TableField(value = "operater")
private String operater;
/**生产令号*/
@Excel(name = "生产令号", width = 30)
@ApiModelProperty(value = "生产令号")
@TableField(value = "code")
private String code;
/**部件名称*/
@Excel(name = "部件名称", width = 30)
@ApiModelProperty(value = "部件名称")
@TableField(value = "materialname")
private String materialname;
/**部件名称*/
@Excel(name = "规格型号", width = 30)
@ApiModelProperty(value = "规格型号")
@TableField(value = "spec")
private String spec;
/**图号*/
@Excel(name = "图号", width = 30)
@ApiModelProperty(value = "图号")
@TableField(value = "drawingno")
private String drawingno;
/**工序*/
@Excel(name = "工序", width = 15, dictTable = "technology", dicText = "name", dicCode = "code")
@Dict(dictTable = "technology", dicText = "name", dicCode = "code")
@ApiModelProperty(value = "工序")
@TableField(value = "technology")
private String technology;
/**工作内容*/
@Excel(name = "工作内容", width = 50)
@ApiModelProperty(value = "工作内容")
@TableField(value = "work_content")
private String workcontent;
/**合格数量*/
@Excel(name = "合格数量", width = 15)
@ApiModelProperty(value = "合格数量")
@TableField(value = "qty")
private BigDecimal qty;
/**重量*/
@Excel(name = "重量", width = 15)
@ApiModelProperty(value = "重量")
@TableField(value = "weight")
private BigDecimal weight;
/**长度*/
@Excel(name = "长度", width = 15)
@ApiModelProperty(value = "长度")
@TableField(value = "length")
private BigDecimal length;
/**准备工时*/
@Excel(name = "准备工时", width = 15)
@ApiModelProperty(value = "准备工时")
@TableField(value = "readyTime")
private BigDecimal readyTime;
@ApiModelProperty(value = "准备完成")
@TableField(value = "readycomplete")
private Integer readycomplete;
/**操作工时*/
@Excel(name = "操作工时", width = 15)
@ApiModelProperty(value = "操作工时")
@TableField(value = "techonlogytime")
private BigDecimal techonlogytime;
/**实际工时*/
@Excel(name = "实际工时", width = 15)
@ApiModelProperty(value = "实际工时")
@TableField(value = "completetime")
private BigDecimal completetime;
/**核定工时*/
@Excel(name = "核定工时", width = 15)
@ApiModelProperty(value = "核定工时")
@TableField(value = "approvedtime")
private BigDecimal approvedtime;
/**备注*/
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
@TableField(value = "remark")
private String remark;
/**创建人*/
@ApiModelProperty(value = "创建人")
@TableField(value = "create_by", fill = FieldFill.INSERT)
private String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建日期")
@TableField(value = "create_time", fill = FieldFill.INSERT)
@JsonSerialize(using = LocalDateTimeConverter.class)
private LocalDateTime createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
@TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
private String updateBy;
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "完成日期")
@TableField(value = "update_time", fill = FieldFill.UPDATE)
@JsonSerialize(using = LocalDateTimeConverter.class)
private LocalDateTime updateTime;
private String work_type;
@TableField(exist = false)
private String realname;
/**
* 计划明细id
*/
@TableField(value = "scheduler_detail_id")
private Integer schedulerDetailId;
}