EquipmentAllotAddDTO.java
2.2 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
package com.skua.modules.supplies.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.modules.equipment.entity.EquipmentOut;
import com.skua.modules.equipment.entity.EquipmentOutChild;
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.Valid;
import javax.validation.constraints.*;
import java.util.Date;
import java.util.List;
/**
* 物料调拨 add
* @author 邓学龙
* @date 2022/12/8 23:18
*/
@Data
@ApiModel("EquipmentAllotAddDTO")
public class EquipmentAllotAddDTO {
/**所属机构*/
//@NotBlank(message = "所属机构不能为空")
@ApiModelProperty(value = "所属机构")
private String departId;
/**调拨单号*/
@ApiModelProperty(value = "调拨单号")
private String allotOrder;
/**出库仓库id*/
@NotBlank(message = "出库仓库不能为空")
@ApiModelProperty(value = "出库仓库id")
private String outSuppliesWarehouseId;
/**入库仓库id*/
@NotBlank(message = "入库仓库不能为空")
@ApiModelProperty(value = "入库仓库id")
private String inSuppliesWarehouseId;
/**经办人id*/
@NotBlank(message = "经办人不能为空")
@ApiModelProperty(value = "经办人id")
private String transactBy;
/**调拨时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "调拨时间")
private Date allotTime;
/**备注*/
@ApiModelProperty(value = "备注")
private String allotRemark;
@Valid
@NotNull
@Size(min = 1)
@ApiModelProperty(value = "调拨详情")
private List<EquipmentAllotChildAddDTO> allotChildList;
@Data
public static class EquipmentAllotChildAddDTO{
@NotBlank
@ApiModelProperty(value = "物资id")
private String suppliesId;
@NotNull
@DecimalMin(value = "0")
@ApiModelProperty(value = "物资调拨数量")
private java.math.BigDecimal allotNum;
}
}