Commit 4f5d8843 authored by liudong1993's avatar liudong1993

1

parent 5bf7c754
...@@ -1808,18 +1808,18 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A ...@@ -1808,18 +1808,18 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
decimal TotalCommission = 0, OldCommission = 0; decimal TotalCommission = 0, OldCommission = 0;
foreach (var qcitem in ssList.Where(x => x.CommissionState == 1)) foreach (var qcitem in ssList.Where(x => x.CommissionState == 1))
{ {
TotalCommission += (qcitem.Commission ?? 0); //查询是否有申请退款
var afterSaleList = goods_OrderAfterSaleRepository.GetList(new RB_Goods_OrderAfterSale_Extend() { OrderDetialId = qcitem.OrderDetailId, Type = 1, MallBaseId = item.MallBaseId, TenantId = item.TenantId });
if (!afterSaleList.Any())
{
TotalCommission += (qcitem.Commission ?? 0);
}
} }
#region 看微店佣金是否是负数 是的话 需要走总佣金里减去 #region 看微店佣金是否是负数 是的话 需要走总佣金里减去
OldCommission = TotalCommission; OldCommission = TotalCommission;
if ((smallModel.Commission ?? 0) < 0) if ((smallModel.Commission ?? 0) < 0)
{ {
//查询是否有申请退款 TotalCommission += (smallModel?.Commission ?? 0);
var afterSaleList = goods_OrderAfterSaleRepository.GetList(new RB_Goods_OrderAfterSale_Extend() { OrderDetialId = qitem.OrderDetailId, Type = 1, MallBaseId = item.MallBaseId, TenantId = item.TenantId });
if (!afterSaleList.Any())
{
TotalCommission += (smallModel?.Commission ?? 0);
}
} }
#endregion #endregion
if (TotalCommission > 0) if (TotalCommission > 0)
......
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