Commit 93f22b70 by jianshuqin

平台利润调整退款为实际退款

parent e4859de5
......@@ -5775,7 +5775,7 @@ namespace Bailun.DC.Services
}
var sqlparam = new DynamicParameters();
var sql = $"select {str_statistic_col},{(isUSD ? "sum(t1.amount_refund_usd)" : "sum(t1.amount_refund_rmb)")} as amount_refund from dc_base_crm_refund t1 ";
var sql = $"select {str_statistic_col},{(isUSD ? "sum(t1.amount_refund_usd) - (SUM(IFNULL(t1.amount_refund_promotion_usd,0)) + SUM(IFNULL(t1.amount_refund_platform_usd,0)) + SUM(IFNULL(t1.amount_refund_fba_usd,0)))" : "sum(t1.amount_refund_rmb) - (SUM(IFNULL(t1.amount_refund_promotion_rmb,0)) + SUM(IFNULL(t1.amount_refund_platform_rmb,0)) + SUM(IFNULL(t1.amount_refund_fba_rmb,0)))")} as amount_refund from dc_base_crm_refund t1 ";
if ((producttype != null && producttype.Count() > 0) || skusource.HasValue || shippingstrategy.HasValue || statistictype != 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