修改 打印数据

master
wanghao 2 weeks ago
parent bd83b3c730
commit 52c4d94226

@ -1,6 +1,8 @@
package com.ruoyi.manage.controller; package com.ruoyi.manage.controller;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import com.ruoyi.manage.domain.RecordInspectionImg; import com.ruoyi.manage.domain.RecordInspectionImg;
import com.ruoyi.manage.domain.RecordInspectionInfo; import com.ruoyi.manage.domain.RecordInspectionInfo;
@ -55,13 +57,16 @@ public class RecordInspectionController extends BaseController {
} }
@GetMapping("/print") @GetMapping("/print")
public String print(String ids) { @ResponseBody
public AjaxResult print(String ids) {
System.out.println(ids); System.out.println(ids);
List<RecordInspection> list = recordInspectionService.selectListByids(ids); List<RecordInspection> list = recordInspectionService.selectListByids(ids);
List<RecordInspectionTask> infolist=iRecordInspectionTaskService.selectTaskInfoByInspectionId(ids); List<RecordInspectionTask> infolist=iRecordInspectionTaskService.selectTaskInfoByInspectionId(ids);
Map<String,List> map=new HashMap<String,List>();
return prefix +""; map.put("list",list);
map.put("infolist",infolist);
return success(map);
} }

Loading…
Cancel
Save