From a9b4ae814232c7be6e2572b1a93b3a5ff64efc2d Mon Sep 17 00:00:00 2001 From: luozukai Date: Wed, 24 Apr 2019 13:58:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=82=AE=E4=BB=B6][=E4=BF=AE=E6=94=B9][?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A8=E6=80=81=E8=83=8C=E6=99=AF]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/service/impl/WxChartServiceImpl.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java index baf8a41d5..1a27fcd7f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxChartServiceImpl.java @@ -1965,11 +1965,24 @@ public class WxChartServiceImpl implements WxChartDataService { result.put("pressPaymentHistory",pressPaymentHistoryMap); wxCoupon.setTenantId(tenantId); + + result.put("pressSendHistoryTotal",getTotal(pressSendHistoryMap)); + result.put("pressSuccHistoryCount",getTotal(pressSuccHistoryMap)); + result.put("pressPaymentHistoryCount",getTotal(pressPaymentHistoryMap)); + result.put("pressSuccRate",wxCouponService.pressSuccRate(wxCoupon)); result.put("sumJoin",wxCouponService.sumJoin(wxCoupon)); return new ResultData(result); } + public int getTotal(Map map){ + int tatal = 0; + for (String key:map.keySet()) { + tatal += Integer.parseInt(map.get(key)); + } + return tatal; + } + private Date getMonthFirstDay() { Calendar c = Calendar.getInstance(); c.add(Calendar.MONTH, 0); @@ -2048,7 +2061,6 @@ public class WxChartServiceImpl implements WxChartDataService { result.put("transferRatio", transferRatio); result.put("verifyCount", verifyCount); - return new ResultData(result); }