From 1b92eb61fee576a51c58e34ede99fc199dcb3f13 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Wed, 19 Oct 2022 14:40:46 +0800 Subject: [PATCH] 上传浑南区空气质量日报功能 --- screen-api/src/main/java/com/moral/api/controller/ExcelController.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/screen-api/src/main/java/com/moral/api/controller/ExcelController.java b/screen-api/src/main/java/com/moral/api/controller/ExcelController.java index 3aa71db..a669f47 100644 --- a/screen-api/src/main/java/com/moral/api/controller/ExcelController.java +++ b/screen-api/src/main/java/com/moral/api/controller/ExcelController.java @@ -19,6 +19,7 @@ import com.moral.api.pojo.bo.ExcelBO; import com.moral.api.pojo.vo.excel.ExcelVo; +import com.moral.api.pojo.vo.excel.HnExcelVo; import com.moral.api.pojo.vo.excel.SyExcelVo; import com.moral.api.service.ExcelService; import com.moral.api.service.HnExcelService; @@ -129,4 +130,24 @@ return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(),syExcelVo); } + + /** + * ��������������������������� + * @param id + * @return + */ + @GetMapping("/hnExcelExport") + public ResultMessage hnExcelExport(Integer id) throws ParseException { + if (id==null){ + return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); + } + + HnExcelVo hnExcelVo = hnExcelService.hnExport(id); + if (hnExcelVo==null){ + return ResultMessage.fail(ResponseCodeEnum.TARGET_IS_NULL.getCode(), ResponseCodeEnum.TARGET_IS_NULL.getMsg()); + } + return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(),hnExcelVo); + } + + } -- Gitblit v1.8.0