Browse Source

fix: 车辆台账年检时间格式化

zhongwei
haungxing 4 months ago
parent
commit
164cfb21ff
  1. 4
      hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/CarAnnualInspectionEntity.java

4
hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/entity/CarAnnualInspectionEntity.java

@ -8,6 +8,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import org.springblade.core.tool.utils.DateUtil;
import javax.validation.constraints.Size;
import java.util.Date;
@ -29,7 +30,7 @@ public class CarAnnualInspectionEntity extends BaseEntity {
@ApiModelProperty("编码")
private String code;
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
@ApiModelProperty("年检时间")
private Date annualInspectionTime;
@ -42,5 +43,6 @@ public class CarAnnualInspectionEntity extends BaseEntity {
private String imgPath;
@ApiModelProperty("下次年检时间")
@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
private Date nextAnnualInspectionTime;
}

Loading…
Cancel
Save