|
|
|
@ -1,12 +1,20 @@
|
|
|
|
|
package cn.iocoder.yudao.module.system.controller.admin.taskinfo.vo; |
|
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.system.dal.dataobject.enterprise.EnterpriseDO; |
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|
|
|
|
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer; |
|
|
|
|
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; |
|
|
|
|
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer; |
|
|
|
|
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; |
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema; |
|
|
|
|
import lombok.*; |
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotEmpty; |
|
|
|
|
import javax.validation.constraints.NotNull; |
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
@ -47,12 +55,16 @@ public class TaskInfoSaveReqVO {
|
|
|
|
|
private String status; |
|
|
|
|
|
|
|
|
|
@Schema(description = "任务计划开始时间") |
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|
|
|
|
private LocalDateTime startDate; |
|
|
|
|
@JsonSerialize(using = LocalDateSerializer.class) // 序列化(响应)
|
|
|
|
|
@JsonDeserialize(using = LocalDateDeserializer.class) // 反序列化(请求)
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd") |
|
|
|
|
private LocalDate startDate; |
|
|
|
|
|
|
|
|
|
@Schema(description = "任务计划结束时间") |
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|
|
|
|
private LocalDateTime endDate; |
|
|
|
|
@JsonSerialize(using = LocalDateSerializer.class) // 序列化(响应)
|
|
|
|
|
@JsonDeserialize(using = LocalDateDeserializer.class) // 反序列化(请求)
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd") |
|
|
|
|
private LocalDate endDate; |
|
|
|
|
|
|
|
|
|
@Schema(description = "父任务id", example = "30399") |
|
|
|
|
private Long parentId; |
|
|
|
|