| | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import javax.validation.constraints.FutureOrPresent; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | |
| | | @ApiModelProperty(value = "计划编号", hidden = true) |
| | | private String planNumber; |
| | | |
| | | @NotNull(message = "请选择创建人!") |
| | | @ApiModelProperty(value = "创建人", hidden = true) |
| | | private Integer founder; |
| | | |
| | | @FutureOrPresent(message = "请选择计划日期") |
| | | @ApiModelProperty(value = "计划日期开始", example = "2023-07-02", dataType = "date", required = true) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private LocalDate planDateBegin; |
| | | |
| | | @FutureOrPresent(message = "请选择计划日期") |
| | | @ApiModelProperty(value = "计划日期结束", example = "2023-07-02", dataType = "date", required = true) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private LocalDate planDateEnd; |
| | | |
| | | @NotBlank(message = "请选择或请输入计量单位!") |
| | | @ApiModelProperty(value = "计量单位", example = "上海质检所", required = true) |
| | | @NotBlank(message = "请输入计划单位!") |
| | | @ApiModelProperty(value = "计划单位", example = "上海质检所", required = true) |
| | | private String planUnit; |
| | | |
| | | @NotNull(message = "请选择负责人!") |