This commit is contained in:
2024-02-19 10:36:02 +08:00
parent d5222812ed
commit 8388a81a93
5 changed files with 7 additions and 6 deletions

View File

@@ -374,7 +374,7 @@ public class DelayMerchantProgramLogic extends AbstractProgramLogic {
OrderDetail orderDetail = returnUpdateOrderDetail(orderBasicInfo, data);
// 计算订单折扣 calculateOrderDiscounts
// calculateOrderDiscounts(orderBasicInfo, orderDetail);
// calculateOrderDiscountsV2(orderBasicInfo, orderDetail);
calculateOrderDiscountsV2(orderBasicInfo, orderDetail);
// 更新数据库
OrderTransactionDTO dto = new OrderTransactionDTO();

View File

@@ -389,7 +389,7 @@
t6.apply_time AS valleyApplyDate
FROM
pile_basic_info t1
JOIN pile_billing_template t2 ON t1.station_id = t2.station_id and t2.status = '1'
JOIN pile_billing_template t2 ON t1.station_id = t2.station_id and t2.status = '1' and t2.member_flag = '0'
JOIN pile_billing_detail t3 ON t3.template_code = t2.template_code AND t3.time_type = '1'
JOIN pile_billing_detail t4 ON t4.template_code = t2.template_code AND t4.time_type = '2'
JOIN pile_billing_detail t5 ON t5.template_code = t2.template_code AND t5.time_type = '3'