From 75f71d74fe49db4fc5f5f1454600a3282259c3f5 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Fri, 22 Nov 2024 18:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E7=94=B5=E5=88=86=E6=9E=90=E6=A8=A1?= =?UTF-8?q?=E5=9D=97DO=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EcganalysisparasController.java | 15 +++++++++++++++ .../vo/EcganalysisparasRespVO.java | 6 +++--- .../ecganalysisparas/EcganalysisparasDO.java | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java index d81aacc9f..d1a6a9055 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/EcganalysisparasController.java @@ -10,6 +10,8 @@ import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.Operation; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; import java.util.*; import java.io.IOException; @@ -57,6 +59,19 @@ public class EcganalysisparasController { return success(true); } + + @PutMapping("/save") + @Operation(summary = "保存心电分析数据") + public CommonResult SaveEcganalysisparas(@Valid @RequestBody EcganalysisparasSaveReqVO updateReqVO) { + LocalDateTime dateTime = LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")), + DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); + updateReqVO.setDoctorDiagTime(dateTime); + ecganalysisparasService.updateEcganalysisparas(updateReqVO); + return success(true); + } + + + @DeleteMapping("/delete") @Operation(summary = "删除心电分析数据") @Parameter(name = "id", description = "编号", required = true) diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparasRespVO.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparasRespVO.java index f28c3ca59..62a1fda95 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparasRespVO.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/ecganalysisparas/vo/EcganalysisparasRespVO.java @@ -103,11 +103,11 @@ public class EcganalysisparasRespVO { @Schema(description = "诊断医生的医生id", example = "29431") @ExcelProperty("诊断医生的医生id") - private Integer doctorId; + private String doctorId; @Schema(description = "诊断医生的科室id", example = "15130") @ExcelProperty("诊断医生的科室id") - private Integer departId; + private String departId; @Schema(description = "诊断医生的科室名称", example = "赵六") @ExcelProperty("诊断医生的科室名称") @@ -127,7 +127,7 @@ public class EcganalysisparasRespVO { @Schema(description = "执行删除操作的医生id", example = "10049") @ExcelProperty("执行删除操作的医生id") - private Integer deleteDoctorId; + private String deleteDoctorId; @Schema(description = "心电数据文件的路径: 路径或URL") @ExcelProperty("心电数据文件的路径: 路径或URL") diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/dataobject/ecganalysisparas/EcganalysisparasDO.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/dataobject/ecganalysisparas/EcganalysisparasDO.java index 4faf17354..9364d9586 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/dataobject/ecganalysisparas/EcganalysisparasDO.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/dal/dataobject/ecganalysisparas/EcganalysisparasDO.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.tblist.dal.dataobject.ecganalysisparas; +import cn.hutool.core.date.DateTime; import lombok.*; import java.util.*; import java.time.LocalDateTime;