...
|
...
|
@@ -2453,22 +2453,28 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
Map<String, Integer> paramMap = getQueryParam(bo.getQueryTimeType());
|
|
|
Integer startTime = paramMap.get("startTime");
|
|
|
Integer endTime = paramMap.get("endTime");
|
|
|
List<UnionShareOrders> orderList = unionShareOrdersMapper.selectListForStatistics(bo.getUid(), startTime, endTime);
|
|
|
//预估订单收入
|
|
|
BigDecimal orderAmountSum = BigDecimal.valueOf(0);
|
|
|
//预估其它收入
|
|
|
BigDecimal extraAmountSum = BigDecimal.valueOf(0);
|
|
|
//订单数
|
|
|
int orderNum = 0;
|
|
|
for(UnionShareOrders order : orderList) {
|
|
|
orderAmountSum = orderAmountSum.add(order.getOrderAmount());
|
|
|
extraAmountSum = extraAmountSum.add(order.getExtraAmount());
|
|
|
orderNum += 1;
|
|
|
// List<UnionShareOrders> orderList = unionShareOrdersMapper.selectListForStatistics(bo.getUid(), startTime, endTime);
|
|
|
// //预估订单收入
|
|
|
// BigDecimal orderAmountSum = BigDecimal.valueOf(0);
|
|
|
// //预估其它收入
|
|
|
// BigDecimal extraAmountSum = BigDecimal.valueOf(0);
|
|
|
// //订单数
|
|
|
// int orderNum = 0;
|
|
|
// for(UnionShareOrders order : orderList) {
|
|
|
// orderAmountSum = orderAmountSum.add(order.getOrderAmount());
|
|
|
// extraAmountSum = extraAmountSum.add(order.getExtraAmount());
|
|
|
// orderNum += 1;
|
|
|
// }
|
|
|
// rspBo.setOrderAmountSum(orderAmountSum);
|
|
|
// rspBo.setExtraAmountSum(extraAmountSum);
|
|
|
// rspBo.setOrderNum(orderNum);
|
|
|
rspBo = unionShareOrdersMapper.selectStatistics(bo.getUid(), startTime, endTime);
|
|
|
if (rspBo.getExtraAmountSum() == null) {
|
|
|
rspBo.setExtraAmountSum(new BigDecimal(0));
|
|
|
}
|
|
|
if (rspBo.getOrderAmountSum() == null) {
|
|
|
rspBo.setOrderAmountSum(new BigDecimal(0));
|
|
|
}
|
|
|
|
|
|
rspBo.setOrderAmountSum(orderAmountSum);
|
|
|
rspBo.setExtraAmountSum(extraAmountSum);
|
|
|
rspBo.setOrderNum(orderNum);
|
|
|
rspBo.setClickNum(getClickNum(bo.getUid(), paramMap.get("startDate"), paramMap.get("endDate")));//点击数
|
|
|
logger.info("getStatisticsInfo ,req is {},paramMap is {},rspBo is {}.",bo,paramMap,rspBo);
|
|
|
//设置缓存
|
...
|
...
|
|