Commit 411b9fd5 authored by libin's avatar libin

Merge branch 'master' into dev

parents d72661aa 7565bd87
...@@ -156,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O ...@@ -156,8 +156,9 @@ public class OrderProfileDisplayBiz extends BaseBiz<OrderProfileDisplayMapper, O
//2.支付终端统计 //2.支付终端统计
wrapToPayProfileWithPayTerminal(baseOrders, orderAmountConstant, largeScreenDisplayConstantDataBo, orderPayProfileDispalyVo); wrapToPayProfileWithPayTerminal(baseOrders, orderAmountConstant, largeScreenDisplayConstantDataBo, orderPayProfileDispalyVo);
BigDecimal realOrderAmount = baseOrders.stream().map(BaseOrderDTO::getRealAmount).reduce(BigDecimal.ZERO, BigDecimal::add);
//累计订单金额 //累计订单金额
orderProfileDispayVo.setOrderAmount(orderAmountConstant); orderProfileDispayVo.setOrderAmount(orderAmountConstant.add(realOrderAmount));
orderProfileDispayVo.setOrderPayProfileDisplay(orderPayProfileDispalyVo); orderProfileDispayVo.setOrderPayProfileDisplay(orderPayProfileDispalyVo);
return orderProfileDispayVo; return orderProfileDispayVo;
} }
......
...@@ -53,6 +53,8 @@ public class CompanyOrderReceivedStatiscsAdminController { ...@@ -53,6 +53,8 @@ public class CompanyOrderReceivedStatiscsAdminController {
public void exportCompanyPerformance(@RequestBody CompanyPerformanceFindDTO companyPerformanceFindDTO, HttpServletResponse response){ public void exportCompanyPerformance(@RequestBody CompanyPerformanceFindDTO companyPerformanceFindDTO, HttpServletResponse response){
try { try {
companyPerformanceFindDTO.setLimit(null);
companyPerformanceFindDTO.setPage(null);
String name = DateTimeFormatter.ofPattern("YYYYMMddHHmmss").format(LocalDateTime.now()); String name = DateTimeFormatter.ofPattern("YYYYMMddHHmmss").format(LocalDateTime.now());
response.setContentType("application/vnd.ms-excel;charset=utf-8"); response.setContentType("application/vnd.ms-excel;charset=utf-8");
String filename = String.format("%s-company-statistics.xlsx",name); String filename = String.format("%s-company-statistics.xlsx",name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment