导出修改

This commit is contained in:
Lenovo 2024-07-19 16:30:03 +08:00
parent 7c70e102c4
commit c068d1e5dc
1 changed files with 6 additions and 2 deletions

View File

@ -92,8 +92,12 @@ public class BusStoreDayHistoryInfoController extends BaseController
}else{
excelInfo.setCommentsNumber(0);
}
excelInfo.setPrice(storeInfo.getPrice().toString());
BigDecimal money = new BigDecimal(storeInfo.getPrice().toString()).multiply(new BigDecimal(visitCount));
BigDecimal d = new BigDecimal("0");
if (storeInfo.getPrice() != null){
d = storeInfo.getPrice();
}
excelInfo.setPrice(d.toString());
BigDecimal money = d.multiply(new BigDecimal(visitCount));
excelInfo.setMoney(money.toString());
totamMoney = totamMoney.add(money);