3 天以前 b852254d90e7d1955db31db154193ec8ee84d8b3
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
package cn.iocoder.yudao.module.mes.controller.admin.wm.equipmentreceipt.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;
 
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
 
@Schema(description = "管理后台 - MES 设备入库单新增/修改 Request VO")
@Data
public class MesWmEquipmentReceiptSaveReqVO {
 
    @Schema(description = "编号", example = "1")
    private Long id;
 
    @Schema(description = "单据编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "ER20260908001")
    @NotEmpty(message = "单据编码不能为空")
    private String code;
 
    @Schema(description = "单据名称", example = "设备入库")
    private String name;
 
    @Schema(description = "入库日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库日期不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime receiptDate;
 
    @Schema(description = "入库来源", example = "外购")
    private String source;
 
    @Schema(description = "备注", example = "备注信息")
    private String remark;
 
}