From 7c7450f2cef80370371e41555ad6483d952f8d83 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Sat, 29 Dec 2018 11:00:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AF=B9=E8=B4=A6=E5=8D=95][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9][=E6=80=BB=E6=95=B0=E4=B8=BA=E8=BF=9130=E5=A4=A9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxOrderServiceImpl.java | 11 ++++++++--- .../service/impl/WxProfitSharingOrderServiceImpl.java | 5 ++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java index 1c1eab2b7..d658ec1ef 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java @@ -986,13 +986,16 @@ public class WxOrderServiceImpl implements WxOrderService { } public void queryMerchantCount(String tenantId, Map result) { + String systemTime = DateUtils.getSystemTime("yyyy-MM-dd"); //全部商户个数 Map params = new HashMap<>(); params.put("tenantId", tenantId); + String thirtyTime = DateUtils.getTimeBefore(29, new Date()); + params.put("startdate", thirtyTime + " 00:00:00"); + params.put("enddate", systemTime + " 23:59:59"); Long allMerchantCount=wxOrderMapper.queryOrderForMerchantCount(params); result.put("allMerchantCount",allMerchantCount); //今日 - String systemTime = DateUtils.getSystemTime("yyyy-MM-dd"); params.put("startdate", systemTime + " 00:00:00"); params.put("enddate", systemTime + " 23:59:59"); Long todayMerchantCount=wxOrderMapper.queryOrderForMerchantCount(params); @@ -1028,13 +1031,16 @@ public class WxOrderServiceImpl implements WxOrderService { } public void queryOrderSummary(String tenantId, Map result) { + String systemTime = DateUtils.getSystemTime("yyyy-MM-dd"); //全部商户个数 Map params = new HashMap<>(); params.put("tenantId", tenantId); + String thirtyTime = DateUtils.getTimeBefore(29, new Date()); + params.put("startdate", thirtyTime + " 00:00:00"); + params.put("enddate", systemTime + " 23:59:59"); Long allOrderSummary=wxOrderMapper.queryOrderForSum(params); result.put("allOrderSummary",allOrderSummary); //今日 - String systemTime = DateUtils.getSystemTime("yyyy-MM-dd"); params.put("startdate", systemTime + " 00:00:00"); params.put("enddate", systemTime + " 23:59:59"); Long todayOrderSummary=wxOrderMapper.queryOrderForSum(params); @@ -1069,5 +1075,4 @@ public class WxOrderServiceImpl implements WxOrderService { } } - } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java index 51d0ed53c..d03e3af09 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java @@ -665,13 +665,16 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ } public void queryMerchantCount(String tenantId, Map result) { + String systemTime = DateUtils.getSystemTime("yyyy-MM-dd"); //全部商户个数 Map params = new HashMap<>(); params.put("tenantId", tenantId); + String thirtyTime = DateUtils.getTimeBefore(29, new Date()); + params.put("startdate", thirtyTime + " 00:00:00"); + params.put("enddate", systemTime + " 23:59:59"); Long allMerchantCount=wxProfitSharingOrderMapper.queryOrderForMerchantCount(params); result.put("allMerchantCount",allMerchantCount); //今日 - String systemTime = DateUtils.getSystemTime("yyyy-MM-dd"); params.put("startdate", systemTime + " 00:00:00"); params.put("enddate", systemTime + " 23:59:59"); Long todayMerchantCount=wxProfitSharingOrderMapper.queryOrderForMerchantCount(params);