|
@@ -10,6 +10,7 @@ import lombok.NoArgsConstructor;
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
|
|
@@ -38,7 +39,7 @@ public class BaseCameraResVo implements Serializable {
|
|
|
/**
|
|
|
* 开始时间
|
|
|
*/
|
|
|
- @NotEmpty(message = "开始时间不能为空")
|
|
|
+ @NotNull(message = "开始时间不能为空")
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
private Date startTime;
|
|
|
|
|
@@ -46,7 +47,7 @@ public class BaseCameraResVo implements Serializable {
|
|
|
* 结束时间
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
- @NotEmpty(message = "结束时间不能为空")
|
|
|
+ @NotNull(message = "结束时间不能为空")
|
|
|
private Date entTime;
|
|
|
|
|
|
}
|