src/main/java/com/whyc/controller/ExportFileController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/dto/Statistic/MonStic.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/service/ExportService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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); } } 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 ; //劣化电压图 private String badResPic ; //劣化内阻 private String damageVolPic ; //损坏电压图 private String damageResPic ; //损坏内阻 } 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"); //劣化电压图 String badResPic = req.getParameter("badResPic"); //劣化内阻 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(); //劣化电压图 String badResPic = stic.getBadResPic(); //劣化内阻 String damageVolPic = stic.getDamageVolPic(); //损坏电压图 String damageResPic = stic.getDamageResPic(); //损坏内阻 User uinf= ActionUtil.getUser(); stic.setUid(uinf.getId()); Map<String,Object> map= battTinfService.getMonStatistic(stic);