| | |
| | | * 仪器设备检定/校准计划表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @author |
| | | * @since 2024-11-13 02:53:05 |
| | | */ |
| | | @Api(tags = "量值溯源计划") |
| | |
| | | @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()) { |