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); }