From 2a0bd04bf51e08fdd859c99dd640605922518cdb Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Fri, 9 Aug 2024 17:35:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E6=8E=92=E6=9F=A5=E6=9F=A5=E8=AF=A2=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hnac/hzims/safeproduct/risk/vo/HazardTaskVo.java | 4 ++++ 1 file changed, 4 insertions(+) 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("风险评估对象")