Commit 26ecd87674884f23fa0fff5b9ca8ca1835290fca

Authored by shiyang
1 parent b3d5d9a7b8
Exists in master and in 1 other branch dev

update

Showing 1 changed file with 4 additions and 2 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/LymsInspectionReportController.java View file @ 26ecd87
... ... @@ -59,10 +59,12 @@
59 59 public BaseResponse queryInspectionReport(Integer pcid) {
60 60 BaseResponse baseResponse = new BaseResponse();
61 61 try {
62   - LymsInspectionReport inspectionReport = lymsInspectionReportService.getById(pcid);
  62 + QueryWrapper<LymsInspectionReport> queryWrapper=new QueryWrapper<>();
  63 + queryWrapper.lambda().eq(LymsInspectionReport::getPcid, pcid);
  64 + List<LymsInspectionReport> list = lymsInspectionReportService.list(queryWrapper.orderByDesc("checkdate"));
63 65 baseResponse.setErrorcode(0);
64 66 baseResponse.setErrormsg("成功");
65   - baseResponse.setObject(inspectionReport);
  67 + baseResponse.setObject(list);
66 68 } catch (Exception e) {
67 69 baseResponse.setErrorcode(1);
68 70 baseResponse.setErrormsg("系统异常");