|
|
@@ -224,11 +224,14 @@ public class OnlineOrderController extends BaseController {
|
|
|
|
|
|
|
|
|
//累计收款
|
|
|
- OnlineOrderCountVo countVo = iOnlineOrderService.getStatistics(bo);
|
|
|
- map.put("totalAmount", countVo.getOrderTotalAmount());
|
|
|
-
|
|
|
- //已退款
|
|
|
- map.put("totalRefund", countVo.getRefundTotalAmount());
|
|
|
+ OnlineOrderCountVo countVo = iOnlineOrderService.getStatistics(onlineOrderBo);
|
|
|
+ map.put("totalAmount", 0.00);
|
|
|
+ map.put("totalRefund", 0.00);
|
|
|
+ if (ObjectUtil.isNotNull(countVo)) {
|
|
|
+ map.put("totalAmount", countVo.getOrderTotalAmount());
|
|
|
+ //已退款
|
|
|
+ map.put("totalRefund", countVo.getRefundTotalAmount());
|
|
|
+ }
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
@@ -254,11 +257,14 @@ public class OnlineOrderController extends BaseController {
|
|
|
map.put("todayAmount", ObjectUtil.isNotNull( statistics)? statistics.getOnlineOrderAmount() : 0);
|
|
|
|
|
|
//累计收款
|
|
|
- OnlineOrderCountVo countVo = iOnlineOrderService.getStatistics(bo);
|
|
|
- map.put("totalAmount", countVo.getOrderTotalAmount());
|
|
|
-
|
|
|
- //已退款
|
|
|
- map.put("totalRefund", countVo.getRefundTotalAmount());
|
|
|
+ OnlineOrderCountVo countVo = iOnlineOrderService.getStatistics(onlineOrderBo);
|
|
|
+ map.put("totalAmount", 0.00);
|
|
|
+ map.put("totalRefund", 0.00);
|
|
|
+ if (ObjectUtil.isNotNull(countVo)) {
|
|
|
+ map.put("totalAmount", countVo.getOrderTotalAmount());
|
|
|
+ //已退款
|
|
|
+ map.put("totalRefund", countVo.getRefundTotalAmount());
|
|
|
+ }
|
|
|
return map;
|
|
|
}
|
|
|
|