From 97f6cc7da5f46f5675e7dedb2082d1049ca17a04 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Thu, 17 Jul 2025 23:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A8=E6=80=81=E5=BF=83?= =?UTF-8?q?=E7=94=B5=E6=95=B0=E6=8D=AEDO=E5=92=8CVO=20=E6=97=B6=E9=95=BF?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=9A=84=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/admin/ecgdata/vo/ecgdataRespVO.java | 2 +- .../system/controller/admin/ecgdata/vo/ecgdataSaveReqVO.java | 2 +- .../system/controller/admin/ecgdata/vo/ecgupfilename.java | 3 +++ .../module/system/dal/dataobject/ecgdata/ecgdataDO.java | 2 +- .../module/system/service/ecgdata/ecgdataServiceImpl.java | 5 +++++ 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataRespVO.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataRespVO.java index c9dac17..6226c5e 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataRespVO.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataRespVO.java @@ -48,7 +48,7 @@ public class ecgdataRespVO { @Schema(description = "佩戴时长(时分秒格式)") @ExcelProperty("佩戴时长(时分秒格式)") - private LocalTime duration; + private String duration; @Schema(description = "佩戴时长(秒数)") @ExcelProperty("佩戴时长(秒数)") diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataSaveReqVO.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataSaveReqVO.java index eed4b1f..67153eb 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataSaveReqVO.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataSaveReqVO.java @@ -38,7 +38,7 @@ public class ecgdataSaveReqVO { private LocalDateTime wearendtime; @Schema(description = "佩戴时长(时分秒格式)") - private LocalTime duration; + private String duration; @Schema(description = "佩戴时长(秒数)") private Integer durationseconds; diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgupfilename.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgupfilename.java index 31d9bde..714e0f9 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgupfilename.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgupfilename.java @@ -14,4 +14,7 @@ public class ecgupfilename { @Schema(description = "压缩文件名") private String zipname; + + @Schema(description = "时长") + private String duration; } diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/ecgdata/ecgdataDO.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/ecgdata/ecgdataDO.java index 38840de..793e3cf 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/ecgdata/ecgdataDO.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/ecgdata/ecgdataDO.java @@ -68,7 +68,7 @@ public class ecgdataDO{ * 佩戴时长(时分秒格式) */ @TableField("duration") - private LocalTime duration; + private String duration; /** * 佩戴时长(秒数) */ diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataServiceImpl.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataServiceImpl.java index c66e63b..ed39980 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataServiceImpl.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataServiceImpl.java @@ -9,6 +9,7 @@ import javax.annotation.Resource; import org.springframework.validation.annotation.Validated; import java.time.LocalDateTime; +import java.time.LocalTime; import java.util.*; import cn.iocoder.yudao.module.system.controller.admin.ecgdata.vo.*; import cn.iocoder.yudao.module.system.dal.dataobject.ecgdata.ecgdataDO; @@ -81,6 +82,10 @@ public class ecgdataServiceImpl implements ecgdataService { { updateReqVO.setFilename(ecgupfilename.getFilename()); } + if (ecgupfilename.getDuration() != null) + { + updateReqVO.setDuration(ecgupfilename.getDuration()); + } ecgdataDO updateObj = BeanUtils.toBean(updateReqVO, ecgdataDO.class); ecgdataMapper.updateById(updateObj); }