diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java index 39e771c..c642852 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java @@ -119,9 +119,10 @@ public class TRecordController extends BaseController return AjaxResult.error("未获取到id"); } Map data = new HashMap<>(); - data.put("result", tRecordService.selectById(id)); + TRecordResp tRecordResp = tRecordService.selectById(id); + data.put("result", tRecordResp); TImage tImage = new TImage(); - tImage.setThirdId(id); + tImage.setThirdId(tRecordResp.getPatientId()); List images = imageService.selectTImageList(tImage); data.put("image", images); return AjaxResult.success(data);