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 9a47041d3..d81aacc9f 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 @@ -96,5 +96,11 @@ public class EcganalysisparasController { ExcelUtils.write(response, "心电分析数据.xls", "数据", EcganalysisparasRespVO.class, BeanUtils.toBean(list, EcganalysisparasRespVO.class)); } - + @GetMapping("/getexamIDdata") + @Operation(summary = "根据examId获得心电数据") + @Parameter(name = "examID", description = "检查编号", required = true, example = "1024") + public CommonResult getexamIDdata(@RequestParam("examId") String examId) { + EcganalysisparasDO ecganalysisparas= ecganalysisparasService.getexamIDdata(examId); + return success(BeanUtils.toBean(ecganalysisparas, EcganalysisparasRespVO.class)); + } } \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java index 33ef3ef6e..fad3e5519 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasService.java @@ -54,5 +54,12 @@ public interface EcganalysisparasService extends IService { * @return 心电分析数据分页 */ PageResult getEcganalysisparasPage(EcganalysisparasPageReqVO pageReqVO); + /** + * 获得心电分析数据 + * + * @param examID 编号 + * @return 心电分析数据 + */ + EcganalysisparasDO getexamIDdata(String examID); } \ No newline at end of file diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java index 4bf7ecc0b..b51f6dac6 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/service/ecganalysisparas/EcganalysisparasServiceImpl.java @@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.tblist.service.ecganalysisparas; import cn.iocoder.yudao.framework.common.exception.ErrorCode; import cn.iocoder.yudao.module.tblist.dal.dataobject.patientexamlist.PatientexamlistDO; import cn.iocoder.yudao.module.tblist.dal.mysql.patientexamlist.PatientexamlistMapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; import org.springframework.validation.annotation.Validated; @@ -76,4 +77,12 @@ public class EcganalysisparasServiceImpl extends ServiceImpl queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("examId", examID); + + return ecganalysisparasMapper.selectOne(queryWrapper); + } + } \ No newline at end of file