利润计算出现bug 修复

This commit is contained in:
chfei committed 2026-08-18 11:28:10 +08:00
1 parent dcb82684f4
commit 5ed558e343
1 file changed
+2 -1
@@ -201,10 +201,11 @@ namespace KJD_Web.BLL.WXXD
int orderPrice = row["order_price"].ParseToInt();
int predictCommissionFee = row["predict_commission_fee"].ParseToInt();
int commissionAmount = row["commission_amount"].ParseToInt();
int refund_status = row["refund_status"].ParseToInt();
int refund_amount = row["refund_amount"].ParseToInt();
// 利润 = 订单金额 - 外采金额 - 平台服务费 - 达人佣金(为空按0处理)
int profit = orderPrice - outAmount - predictCommissionFee - commissionAmount;
if (refund_amount > 0) //退款利润计算
if (refund_status > 1 && refund_amount > 0) //退款利润计算
{
profit = orderPrice - refund_amount;
}