From 013b6f315f769d5c18c929d35ba655db174f2582 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期四, 05 六月 2025 14:36:32 +0800 Subject: [PATCH] 单节数量统计导出 --- src/main/java/com/whyc/service/ExportService.java | 17 ++++++++--------- src/main/java/com/whyc/controller/ExportFileController.java | 4 ++-- src/main/java/com/whyc/dto/Statistic/MonStic.java | 7 +++++++ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/whyc/controller/ExportFileController.java b/src/main/java/com/whyc/controller/ExportFileController.java index 2038cb7..00e6f84 100644 --- a/src/main/java/com/whyc/controller/ExportFileController.java +++ b/src/main/java/com/whyc/controller/ExportFileController.java @@ -20,7 +20,7 @@ @PostMapping("exportBattTinfStatistic") @ApiOperation(value = "鍗曡妭鏁伴噺缁熻瀵煎嚭锛�1.2.14锛�") - public void exportBattTinfStatistic(HttpServletRequest req, HttpServletResponse resp ) throws ParseException { - service.exportBattTinfStatistic(req,resp); + public void exportBattTinfStatistic(HttpServletRequest req, HttpServletResponse resp ,@RequestBody MonStic stic) throws ParseException { + service.exportBattTinfStatistic(req,resp,stic); } } \ No newline at end of file diff --git a/src/main/java/com/whyc/dto/Statistic/MonStic.java b/src/main/java/com/whyc/dto/Statistic/MonStic.java index 716e7b6..30343f6 100644 --- a/src/main/java/com/whyc/dto/Statistic/MonStic.java +++ b/src/main/java/com/whyc/dto/Statistic/MonStic.java @@ -15,4 +15,11 @@ private Float moncapstd; private Float monvolstd; private Integer uid; + private String topPic; //澶撮儴鏌辩姸鍥� + private String goodVolPic ; //浼樼鐢靛帇鍥� + private String goodResPic ; //浼樼鍐呴樆 + private String badVolPic ; //鍔e寲鐢靛帇鍥� + private String badResPic ; //鍔e寲鍐呴樆 + private String damageVolPic ; //鎹熷潖鐢靛帇鍥� + private String damageResPic ; //鎹熷潖鍐呴樆 } \ No newline at end of file diff --git a/src/main/java/com/whyc/service/ExportService.java b/src/main/java/com/whyc/service/ExportService.java index 1c790f9..1ba2458 100644 --- a/src/main/java/com/whyc/service/ExportService.java +++ b/src/main/java/com/whyc/service/ExportService.java @@ -33,15 +33,14 @@ //鍗曡妭鏁伴噺缁熻瀵煎嚭锛�1.2.14锛� - public void exportBattTinfStatistic(HttpServletRequest req, HttpServletResponse resp) throws ParseException { - String topPic = req.getParameter("topPic"); //澶撮儴鏌辩姸鍥� - String goodVolPic = req.getParameter("goodVolPic"); //浼樼鐢靛帇鍥� - String goodResPic = req.getParameter("goodResPic"); //浼樼鍐呴樆 - String badVolPic = req.getParameter("badVolPic"); //鍔e寲鐢靛帇鍥� - String badResPic = req.getParameter("badResPic"); //鍔e寲鍐呴樆 - String damageVolPic = req.getParameter("damageVolPic"); //鎹熷潖鐢靛帇鍥� - String damageResPic = req.getParameter("damageResPic"); //鎹熷潖鍐呴樆 - MonStic stic=ActionUtil.getGson("yyyy-MM-dd").fromJson(req.getParameter("stic"), MonStic.class); + public void exportBattTinfStatistic(HttpServletRequest req, HttpServletResponse resp, MonStic stic) throws ParseException { + String topPic = stic.getTopPic(); //澶撮儴鏌辩姸鍥� + String goodVolPic = stic.getGoodVolPic(); //浼樼鐢靛帇鍥� + String goodResPic = stic.getGoodResPic(); //浼樼鍐呴樆 + String badVolPic = stic.getBadVolPic(); //鍔e寲鐢靛帇鍥� + String badResPic = stic.getBadResPic(); //鍔e寲鍐呴樆 + String damageVolPic = stic.getDamageVolPic(); //鎹熷潖鐢靛帇鍥� + String damageResPic = stic.getDamageResPic(); //鎹熷潖鍐呴樆 User uinf= ActionUtil.getUser(); stic.setUid(uinf.getId()); Map<String,Object> map= battTinfService.getMonStatistic(stic); -- Gitblit v1.9.1