Commit bbbbad3b by 王璐琦

fix(daily-report): 修正销售类型判断错误

- 将销售类型判断从售后(AFTER_SALE)修改为售前(BEFORE_SALE)
- 修复今日预订触达和本月预订触达统计中的逻辑错误
- 确保交易金额统计准确反映售前销售数据
1 parent 84d5e294
...@@ -5302,7 +5302,7 @@ public class DailyReportDataService { ...@@ -5302,7 +5302,7 @@ public class DailyReportDataService {
|| tagSet.contains((int) CustomerTagTypeEnum.GROUP_ADDED.getValue()))) { || tagSet.contains((int) CustomerTagTypeEnum.GROUP_ADDED.getValue()))) {
todayBookingTouchCount++; todayBookingTouchCount++;
} }
if (customer.getSalesType() != null && customer.getSalesType() == SalesTypeEnum.AFTER_SALE.getValue()) { if (customer.getSalesType() != null && customer.getSalesType() == SalesTypeEnum.BEFORE_SALE.getValue()) {
todayTransactionAmount = todayTransactionAmount.add(calcOrderNetAmount(order)); todayTransactionAmount = todayTransactionAmount.add(calcOrderNetAmount(order));
} }
} }
...@@ -5327,7 +5327,7 @@ public class DailyReportDataService { ...@@ -5327,7 +5327,7 @@ public class DailyReportDataService {
|| tagSet.contains((int) CustomerTagTypeEnum.GROUP_ADDED.getValue()))) { || tagSet.contains((int) CustomerTagTypeEnum.GROUP_ADDED.getValue()))) {
monthBookingTouchCount++; monthBookingTouchCount++;
} }
if (customer.getSalesType() != null && customer.getSalesType() == SalesTypeEnum.AFTER_SALE.getValue()) { if (customer.getSalesType() != null && customer.getSalesType() == SalesTypeEnum.BEFORE_SALE.getValue()) {
monthTransactionAmount = monthTransactionAmount.add(calcOrderNetAmount(order)); monthTransactionAmount = monthTransactionAmount.add(calcOrderNetAmount(order));
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!