| | |
| | | @PostMapping("exportOfValueTraceabilityPlan") |
| | | public void exportOfValueTraceabilityPlan(String instrumentName, String managementNumber, |
| | | HttpServletResponse response) throws Exception { |
| | | IPage<FeCalibrationSchedule> data = feCalibrationScheduleService.page(new Page<>(1, -1),instrumentName, managementNumber); |
| | | IPage<FeCalibrationSchedule> data = feCalibrationScheduleService.page(new Page<>(-1, -1),instrumentName, managementNumber); |
| | | List<FeCalibrationScheduleExport> studentList = JSONObject.parseArray(JSON.toJSONString(data.getRecords()), FeCalibrationScheduleExport.class); |
| | | response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
| | | response.setHeader("requestType", "excel"); |
| | |
| | | .doWrite(studentList); |
| | | } |
| | | |
| | | @ValueClassify(value = "量值溯源计划导入") |
| | | @ApiOperation(value = "importOfValueTraceabilityPlan") |
| | | @ValueClassify(value = "量值溯源计划") |
| | | @ApiOperation(value = "量值溯源计划导入") |
| | | @PostMapping("/importOfValueTraceabilityPlan") |
| | | public void importOfValueTraceabilityPlan(MultipartFile file) throws IOException { |
| | | if (file.isEmpty()) { |