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("系统异常");