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 6951aee7e..2a8e5b212 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 @@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.system.dal.dataobject.org.OrgUnitDO; import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; import cn.iocoder.yudao.module.system.service.org.OrgUnitService; import cn.iocoder.yudao.module.system.service.user.AdminUserService; +import cn.iocoder.yudao.module.tblist.dal.mysql.patientexamlist.PatientexamlistMapper; import cn.iocoder.yudao.module.tblist.service.patientexamlist.org.OrgService; import com.google.gson.Gson; @@ -67,7 +68,8 @@ public class PatientexamlistController { private static final Logger log = LoggerFactory.getLogger(PatientexamlistController.class); @Resource private PatientexamlistService patientexamlistService; - + @Resource + private PatientexamlistMapper patientexamlistMapper; @Resource private AdminUserService userService; @Resource @@ -367,7 +369,16 @@ public class PatientexamlistController { patientexamlistService.updatePatientexamlist(updateReqVO); return success(true); } - + @GetMapping("/Updatetblistwarning") + @Operation(summary = "更新tblist危急值状态") + public CommonResult Updatetblistwarning(@RequestParam("id") String id, @RequestParam("type") String type) + { + PatientexamlistDO patientexamlistDO=new PatientexamlistDO(); + patientexamlistDO.setId(id); + patientexamlistDO.setWarning(type); + patientexamlistMapper.updateById(patientexamlistDO); + return success(true); + } @GetMapping("/GetAnalysisInfo") @Operation(summary = "获取报告信息") public CommonResult GetAnalysisInfo(@RequestParam(value = "examId", required = false) String examId, @RequestParam("regId") String regId, @RequestParam("orgId") String orgId) {