|
|
@@ -1,8 +1,10 @@
|
|
|
package com.railway.business.catenary.domain;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.railway.common.core.domain.BaseEntity;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+import java.util.Date;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
@@ -55,9 +57,8 @@ public class BusJcbGlkg extends BaseEntity{
|
|
|
@Length(min = 1, max = 10, message = "【温度】长度必须介于 {min} 和 {max} 之间")
|
|
|
private String temperature;
|
|
|
|
|
|
- @ApiModelProperty(value = "检查日期")
|
|
|
- @Length(min = 1, max = 10, message = "【检查日期】长度必须介于 {min} 和 {max} 之间")
|
|
|
- private String checkDate;
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd")
|
|
|
+ private Date checkDate;
|
|
|
|
|
|
@ApiModelProperty(value = "机构箱-完好无损并加锁")
|
|
|
@Length(min = 1, max = 1, message = "【机构箱-完好无损并加锁】长度必须介于 {min} 和 {max} 之间")
|