|
|
|
@@ -141,7 +141,7 @@ public class ChartDataSchedule { |
|
|
|
if (count == 0) { |
|
|
|
logger.info("销售总交易额>>>>>>>>>>>>>>>>>>>>>>>>>>"); |
|
|
|
Integer price = wxCouponOrderMapper.queryPriceTotal(tenantId, startdate, enddate); |
|
|
|
addChartData(tenantId, price.toString(), EnumChartType.SALE_COUPON_PRICE.getCode(), enddate, createtime); |
|
|
|
addChartData(tenantId, price.toString(), EnumChartType.SALE_COUPON_PRICE.getCode(), startdate, createtime); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -153,8 +153,6 @@ public class ChartDataSchedule { |
|
|
|
HashMap<String, Object> params = new HashMap<>(); |
|
|
|
Date createtime = new Date(); |
|
|
|
String yesterday = DateUtils.getTimeBefore(1, createtime); |
|
|
|
String today = DateUtils.getSystemTime("yyyy-MM-dd"); |
|
|
|
Date enddate = DateUtils.stringToDate(today); |
|
|
|
Date querytime = DateUtils.stringToDate(yesterday); |
|
|
|
|
|
|
|
WxChartDataEntity wxChartDataEntity = new WxChartDataEntity(); |
|
|
|
@@ -178,7 +176,7 @@ public class ChartDataSchedule { |
|
|
|
if (!recordList.isEmpty()) { |
|
|
|
price = recordList.get(0).getTradeAmt(); |
|
|
|
} |
|
|
|
addChartData(tenantId, price.toString(), EnumChartType.MERCHANT_TRADE.getCode(), enddate, createtime); |
|
|
|
addChartData(tenantId, price.toString(), EnumChartType.MERCHANT_TRADE.getCode(), querytime, createtime); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|