From 90c4a651ea022c74a046d7be04071ce7a89632b7 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Tue, 3 Sep 2024 15:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E5=A3=B0=E5=92=8C=E5=BD=B1=E5=83=8F?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=B6=E8=97=8F=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PatientexamlistController.java | 21 +++++++++++++++++++ .../vo/PatientexamlistPageReqVO.java | 2 ++ .../vo/PatientexamlistRespVO.java | 2 ++ .../vo/PatientexamlistSaveReqVO.java | 5 +++++ 4 files changed, 30 insertions(+) diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java index 342f13826..3b9463f31 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java @@ -277,5 +277,26 @@ public class PatientexamlistController { return success(patientexamlistCountVO); } + @GetMapping("/CollectAndCancellation") + @Operation(summary = "收藏以及取消") + public CommonResult CollectAndCancellation(@RequestParam("id") String id,@RequestParam("type") String type) + { + String stafavourite=""; + LocalDateTime dateTime = LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")), + DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); + PatientexamlistSaveReqVO updateReqVO = new PatientexamlistSaveReqVO(); + updateReqVO.setId(id); + updateReqVO.setIsFavourite(type); + if(type.equals("1")) + { + updateReqVO.setFavouriteTime(dateTime); + } + else if(type.equals("0")) + { + updateReqVO.setFavouriteTime(null); + } + patientexamlistService.updatePatientexamlist(updateReqVO); + return success(true); + } } \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistPageReqVO.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistPageReqVO.java index f5b70d646..b58b132ba 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistPageReqVO.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistPageReqVO.java @@ -113,6 +113,8 @@ public class PatientexamlistPageReqVO extends PageParam { private String StudyInsta; + private String isFavourite; + private LocalDateTime FavouriteTime; } \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistRespVO.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistRespVO.java index 1b283e468..d1603c044 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistRespVO.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistRespVO.java @@ -130,5 +130,7 @@ public class PatientexamlistRespVO { private String StudyInsta; + private String isFavourite; + private LocalDateTime FavouriteTime; } \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistSaveReqVO.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistSaveReqVO.java index c1266ea65..e91d66f00 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistSaveReqVO.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/vo/PatientexamlistSaveReqVO.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist.vo; +import com.baomidou.mybatisplus.annotation.TableField; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import java.util.*; @@ -101,7 +102,11 @@ public class PatientexamlistSaveReqVO { private String billDoctorDepartment; @Schema(description = "审核状态") private String reviewStatus; + private String StudyInsta; + private String isFavourite; + + private LocalDateTime FavouriteTime; } \ No newline at end of file