超声和影像增加收藏方法
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
lxd 2024-09-03 15:27:22 +08:00
parent 557667c78f
commit 90c4a651ea
4 changed files with 30 additions and 0 deletions

View File

@ -277,5 +277,26 @@ public class PatientexamlistController {
return success(patientexamlistCountVO);
}
@GetMapping("/CollectAndCancellation")
@Operation(summary = "收藏以及取消")
public CommonResult<Boolean> 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);
}
}

View File

@ -113,6 +113,8 @@ public class PatientexamlistPageReqVO extends PageParam {
private String StudyInsta;
private String isFavourite;
private LocalDateTime FavouriteTime;
}

View File

@ -130,5 +130,7 @@ public class PatientexamlistRespVO {
private String StudyInsta;
private String isFavourite;
private LocalDateTime FavouriteTime;
}

View File

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