From 7587fb4a28dc0149c0a6985a9f3495ac15259238 Mon Sep 17 00:00:00 2001 From: Euni4U <958079825@qq.com> Date: Mon, 23 Dec 2024 18:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BF=94=E4=BF=AE=E5=A2=9E?= =?UTF-8?q?=E5=88=A0=E6=9F=A5=E6=94=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/process/ProcessController.java | 23 +++++- .../admin/process/vo/ProcessRespVO.java | 76 +++++++++++++++++++ .../admin/process/vo/ProcessSaveReqVO.java | 59 ++++++++++++++ 3 files changed, 156 insertions(+), 2 deletions(-) create mode 100644 yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessRespVO.java create mode 100644 yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java index bdfcf2881..ff72e4370 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.system.controller.admin.process; +import cn.iocoder.yudao.module.system.dal.mysql.process.ProcessMapper; import org.springframework.web.bind.annotation.*; import org.springframework.validation.annotation.Validated; import io.swagger.v3.oas.annotations.tags.Tag; @@ -10,10 +11,12 @@ import cn.iocoder.yudao.framework.common.pojo.*; import cn.iocoder.yudao.module.system.dal.dataobject.process.ProcessDO; import cn.iocoder.yudao.module.system.service.process.ProcessService; +import java.time.LocalDateTime; import java.util.*; import java.io.IOException; import javax.annotation.*; import javax.validation.*; +import java.time.format.DateTimeFormatter; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; @@ -25,7 +28,8 @@ public class ProcessController { @Resource private ProcessService processService; - + @Resource + private ProcessMapper processMapper; @GetMapping("/get") @Operation(summary = "获得危急值记录") @Parameter(name = "id", description = "编号", required = true, example = "1024") @@ -40,5 +44,20 @@ public class ProcessController { PageResult pageResult = processService.getProcessPage(pageReqVO); return success(pageResult); } - + @PostMapping("/save") + @Operation(summary = "返修申请插入") + public CommonResult save(@RequestBody ProcessSaveReqVO processSaveReqVO) { + ProcessDO process = new ProcessDO(); + process.setId(UUID.randomUUID().toString()); + process.setOrgId(processSaveReqVO.getOrgId()); + process.setExamId(processSaveReqVO.getExamId()); + process.setRegId(processSaveReqVO.getRegId()); + process.setProcessContent(processSaveReqVO.getProcessContent()); + process.setApplyDoctor(processSaveReqVO.getApplyDoctor()); + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); + process.setApplyDateTime(LocalDateTime.parse(processSaveReqVO.getApplyDateTime(), formatter)); + process.setPname(processSaveReqVO.getPname()); + processMapper.insert(process); + return success(true); + } } \ No newline at end of file diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessRespVO.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessRespVO.java new file mode 100644 index 000000000..e06c0a171 --- /dev/null +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessRespVO.java @@ -0,0 +1,76 @@ +package cn.iocoder.yudao.module.system.controller.admin.process.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import java.util.*; +import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; +import com.alibaba.excel.annotation.*; + +@Schema(description = "管理后台 - 危急值记录 Response VO") +@Data +@ExcelIgnoreUnannotated +public class ProcessRespVO { + + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3040") + @ExcelProperty("主键") + private String id; + + @Schema(description = "机构ID", example = "5547") + @ExcelProperty("机构ID") + private String orgId; + + @Schema(description = "检查ID,一人多个检查的检查id", example = "17411") + @ExcelProperty("检查ID,一人多个检查的检查id") + private String examId; + + @Schema(description = "登记ID :patientid ", example = "23025") + @ExcelProperty("登记ID :patientid ") + private String regId; + + @Schema(description = "审核机构id", example = "2979") + @ExcelProperty("审核机构id") + private String processOrgId; + + @Schema(description = "审核机构名称", example = "李四") + @ExcelProperty("审核机构名称") + private String processorgName; + + @Schema(description = "审核医生") + @ExcelProperty("审核医生") + private String processDoctor; + + @Schema(description = "审核时间") + @ExcelProperty("审核时间") + private LocalDateTime processDate; + + @Schema(description = "申请原因") + @ExcelProperty("申请原因") + private String processContent; + + @Schema(description = "申请医生") + @ExcelProperty("申请医生") + private String applyDoctor; + + @Schema(description = "申请时间") + @ExcelProperty("申请时间") + private LocalDateTime applyDateTime; + + @Schema(description = "备注", example = "你说的对") + @ExcelProperty("备注") + private String remark; + + @Schema(description = "审核状态 0申请 1 审核2 拒绝") + @ExcelProperty("审核状态 0申请 1 审核2 拒绝") + private Integer processstats; + + @Schema(description = "拒绝原因", example = "你说的对") + @ExcelProperty("拒绝原因") + private String refuseremark; + + @Schema(description = "姓名", example = "芋艿") + @ExcelProperty("姓名") + private String pname; + +} \ No newline at end of file diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java new file mode 100644 index 000000000..428427869 --- /dev/null +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java @@ -0,0 +1,59 @@ +package cn.iocoder.yudao.module.system.controller.admin.process.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import javax.validation.constraints.*; +import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; + +@Schema(description = "管理后台 - 危急值记录新增/修改 Request VO") +@Data +public class ProcessSaveReqVO { + + @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3040") + private String id; + + @Schema(description = "机构ID", example = "5547") + private String orgId; + + @Schema(description = "检查ID,一人多个检查的检查id", example = "17411") + private String examId; + + @Schema(description = "登记ID :patientid ", example = "23025") + private String regId; + + @Schema(description = "审核机构id", example = "2979") + private String processOrgId; + + @Schema(description = "审核机构名称", example = "李四") + private String processorgName; + + @Schema(description = "审核医生") + private String processDoctor; + + @Schema(description = "审核时间") + private LocalDateTime processDate; + + @Schema(description = "申请原因") + private String processContent; + + @Schema(description = "申请医生") + private String applyDoctor; + + @Schema(description = "申请时间") + private String applyDateTime; + + @Schema(description = "备注", example = "你说的对") + private String remark; + + @Schema(description = "审核状态 0申请 1 审核2 拒绝") + private Integer processstats; + + @Schema(description = "拒绝原因", example = "你说的对") + private String refuseremark; + + @Schema(description = "姓名", example = "芋艿") + private String pname; + +} \ No newline at end of file