diff --git a/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java b/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java index 33c9457..490b91d 100644 --- a/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java +++ b/ruoyi-manage/src/main/java/com/ruoyi/manage/controller/RecordInspectionController.java @@ -1,6 +1,8 @@ package com.ruoyi.manage.controller; +import java.util.HashMap; import java.util.List; +import java.util.Map; import com.ruoyi.manage.domain.RecordInspectionImg; import com.ruoyi.manage.domain.RecordInspectionInfo; @@ -55,13 +57,16 @@ public class RecordInspectionController extends BaseController { } @GetMapping("/print") - public String print(String ids) { + @ResponseBody + public AjaxResult print(String ids) { System.out.println(ids); List list = recordInspectionService.selectListByids(ids); List infolist=iRecordInspectionTaskService.selectTaskInfoByInspectionId(ids); - - return prefix +""; + Map map=new HashMap(); + map.put("list",list); + map.put("infolist",infolist); + return success(map); }