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);