From e5f4ca3147f000522bed48fd192dd9b67f840ddd Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Wed, 16 Jul 2025 14:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/ecgdata/ecgdataController.java | 7 +++++++ .../admin/ecgdata/vo/ecgdataPageReqVO.java | 7 +++++++ .../admin/ecgdata/vo/ecgdataRespVO.java | 2 ++ .../admin/ecgdata/vo/ecgdataSaveReqVO.java | 5 +++++ .../admin/ecgdata/vo/ecgupfilename.java | 17 +++++++++++++++++ .../dal/dataobject/ecgdata/ecgdataDO.java | 11 ++++++++++- .../system/service/ecgdata/ecgdataService.java | 5 +++++ .../service/ecgdata/ecgdataServiceImpl.java | 17 ++++++++++++++++- 8 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgupfilename.java diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/ecgdataController.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/ecgdataController.java index 4683711..7b0c9cb 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/ecgdataController.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/ecgdataController.java @@ -59,6 +59,13 @@ public class ecgdataController { return success(true); } + @PutMapping("/upecgfilename") + @Operation(summary = "更新心电图文件名称和压缩文件名称") + public CommonResult upecgfilename(@Valid @RequestBody ecgupfilename upecgfilename) { + ecgdataService.upecgfilename(upecgfilename); + return success(true); + } + @GetMapping("/apply-superior-review") @Operation(summary = "申请上级审核") public CommonResult applySuperiorReview(@RequestParam("id") Integer id,@RequestParam("orgid") String orgid) { diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataPageReqVO.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataPageReqVO.java index cab090a..7ef61d5 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataPageReqVO.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgdataPageReqVO.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.system.controller.admin.ecgdata.vo; +import com.baomidou.mybatisplus.annotation.TableField; import lombok.*; import java.time.LocalTime; @@ -70,4 +71,10 @@ public class ecgdataPageReqVO extends PageParam { @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) private LocalDateTime[] updatetime; + private String filename; + /* + * 压缩文件名称 + * */ + private String zipname; + } \ No newline at end of file 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 48b101e..c9dac17 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 @@ -86,4 +86,6 @@ public class ecgdataRespVO { @ExcelProperty("更新时间") private LocalDateTime updatetime; + + } \ No newline at end of file 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 fca6dc0..eed4b1f 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 @@ -67,4 +67,9 @@ public class ecgdataSaveReqVO { @Schema(description = "更新时间") private LocalDateTime updatetime; + private String filename; + /* + * 压缩文件名称 + * */ + private String zipname; } \ No newline at end of file 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 new file mode 100644 index 0000000..31d9bde --- /dev/null +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ecgdata/vo/ecgupfilename.java @@ -0,0 +1,17 @@ +package cn.iocoder.yudao.module.system.controller.admin.ecgdata.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +@Data +public class ecgupfilename { + + @Schema(description = "主键ID,自增", requiredMode = Schema.RequiredMode.REQUIRED, example = "18914") + private Integer id; + + @Schema(description = "文件名") + private String filename; + + @Schema(description = "压缩文件名") + private String zipname; +} 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 3cf5283..38840de 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 @@ -114,6 +114,15 @@ public class ecgdataDO{ */ @TableField("updatetime") private LocalDateTime updatetime; - + /* + * 文件名称 + * */ + @TableField("filename") + private String filename; + /* + * 压缩文件名称 + * */ + @TableField("zipname") + private String zipname; } \ No newline at end of file diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataService.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataService.java index 9477520..14af1bf 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataService.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/ecgdata/ecgdataService.java @@ -38,6 +38,11 @@ public interface ecgdataService { * 动态心电申请功能 * */ void applySuperiorReview(Integer id, String orgid); + /* + * 更新文件名称和压缩文件名称 + * + * */ + void upecgfilename(ecgupfilename ecgupfilename); /** * 删除心电图动态数据 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 4a17734..c66e63b 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 @@ -68,7 +68,22 @@ public class ecgdataServiceImpl implements ecgdataService { ecgdataDO updateObj = BeanUtils.toBean(updateReqVO, ecgdataDO.class); ecgdataMapper.updateById(updateObj); } - + @Override + public void upecgfilename(ecgupfilename ecgupfilename) + { + ecgdataSaveReqVO updateReqVO = new ecgdataSaveReqVO(); + updateReqVO.setId(ecgupfilename.getId()); + if (ecgupfilename.getZipname() != null) + { + updateReqVO.setZipname(ecgupfilename.getZipname()); + } + if (ecgupfilename.getFilename() != null) + { + updateReqVO.setFilename(ecgupfilename.getFilename()); + } + ecgdataDO updateObj = BeanUtils.toBean(updateReqVO, ecgdataDO.class); + ecgdataMapper.updateById(updateObj); + } @Override public void deleteecgdata(Integer id) {