EquipmentAdjustAddDTO.java
2.3 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
package com.skua.modules.supplies.dto;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 物料调拨 add
* @author 邓学龙
* @date 2022/12/8 23:18
*/
@Data
@ApiModel("EquipmentAdjustAddDTO")
public class EquipmentAdjustAddDTO {
//***/
@ApiModelProperty(value = "库存调整id")
private java.lang.String id;
@NotBlank
@ApiModelProperty(value = "所属组织")
private java.lang.String departId;
@ApiModelProperty(value = "调整单号")
private java.lang.String adjustOrder;
@NotBlank
@ApiModelProperty(value = "仓库id")
private java.lang.String suppliesWarehouseId;
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "调整时间")
private java.util.Date adjustTime;
@ApiModelProperty(value = "经办人")
private java.lang.String transactBy;
@ApiModelProperty(value = "备注")
private java.lang.String remark;
@NotBlank
@ApiModelProperty(value = "状态:0=未调整库存数量;1=已调整库存数量")
private java.lang.String state;
@Valid
@NotNull
@Size(min = 1)
@ApiModelProperty(value = "调整详情")
private List<EquipmentAdjustChildAddDTO> adjustChildList = new ArrayList<EquipmentAdjustChildAddDTO>();
@Data
public static class EquipmentAdjustChildAddDTO{
@NotBlank
@ApiModelProperty(value = "物料id")
private java.lang.String suppliesId;
@ApiModelProperty(value = "调整前数量")
private java.math.BigDecimal beforeNum;
@ApiModelProperty(value = "调整后数量")
private java.math.BigDecimal afterNum;
@ApiModelProperty(value = "调整方式 字典[supplies_num_adjust_type]")
private java.lang.String adjustWay;
@ApiModelProperty(value = "调整数量")
private java.math.BigDecimal adjustNum;
}
}