From 26ecd87674884f23fa0fff5b9ca8ca1835290fca Mon Sep 17 00:00:00 2001 From: shiyang <316555390@qq.com> Date: Mon, 18 Jul 2022 09:36:19 +0800 Subject: [PATCH] update --- .../talkonlineweb/controller/LymsInspectionReportController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsInspectionReportController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsInspectionReportController.java index 58ab339..48d9201 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsInspectionReportController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsInspectionReportController.java @@ -59,10 +59,12 @@ public class LymsInspectionReportController { public BaseResponse queryInspectionReport(Integer pcid) { BaseResponse baseResponse = new BaseResponse(); try { - LymsInspectionReport inspectionReport = lymsInspectionReportService.getById(pcid); + QueryWrapper queryWrapper=new QueryWrapper<>(); + queryWrapper.lambda().eq(LymsInspectionReport::getPcid, pcid); + List list = lymsInspectionReportService.list(queryWrapper.orderByDesc("checkdate")); baseResponse.setErrorcode(0); baseResponse.setErrormsg("成功"); - baseResponse.setObject(inspectionReport); + baseResponse.setObject(list); } catch (Exception e) { baseResponse.setErrorcode(1); baseResponse.setErrormsg("系统异常"); -- 1.8.3.1