diff --git a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardTaskVo.java b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardTaskVo.java index f3bfc3e..13b9b6e 100644 --- a/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardTaskVo.java +++ b/hzims-service-api/safeproduct-api/src/main/java/com/hnac/hzims/safeproduct/risk/vo/HazardTaskVo.java @@ -5,6 +5,8 @@ import com.hnac.hzims.safeproduct.risk.entity.HazardTask; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; +import org.springblade.core.tool.utils.DateUtil; +import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; import java.util.List; @@ -17,9 +19,11 @@ import java.util.List; public class HazardTaskVo extends HazardTask { @ApiModelProperty("开始时间") + @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME) private Date startTime; @ApiModelProperty("结束时间") + @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME) private Date endTime; @ApiModelProperty("风险评估对象")