EquipmentCheckAddDTO.java
2.0 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
package com.skua.modules.equipment.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.modules.equipment.entity.EquipmentCheck;
import com.skua.modules.equipment.entity.EquipmentCheckChild;
import com.skua.tool.annotation.BeanAnno;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;
/**
* @author sonin
* @date 2021/10/11 11:11
*/
@Data
@ApiModel
public class EquipmentCheckAddDTO {
@ApiModelProperty(value = "盘点id")
private String checkId;
@ApiModelProperty(value = "所属机构")
private String departId;
@Excel(name = "盘点单号", width = 15)
@ApiModelProperty(value = "盘点单号")
private String checkOrder;
/**
* 仓库id
*/
@NotBlank
@ApiModelProperty(value = "仓库id")
private String suppliesWarehouseId;
/**
* 经办人
*/
@ApiModelProperty(value = "经办人")
private String transactBy;
/**
* 盘点时间
*/
@Excel(name = "盘点时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "盘点时间")
private Date checkTime;
@Excel(name = "状态", width = 15)
@ApiModelProperty(value = "状态:0=未修正库存数量;1=已修正库存数量")
@NotBlank
private String state;
@Excel(name = "盘点类型", width = 15)
@ApiModelProperty(value = "盘点类型 字典[supplies_check_type]")
private String type;
@Excel(name = "备注", width = 15)
@ApiModelProperty(value = "备注")
private String remark;
@NotNull
@Size()
List<EquipmentCheckChild> equipmentCheckChildList;
}