Commit 3ef2d18a by guanzhenshan

收入去掉1688的收入

parent 58641cd0
...@@ -72,7 +72,7 @@ namespace Bailun.DC.DailyPayAndIncoming ...@@ -72,7 +72,7 @@ namespace Bailun.DC.DailyPayAndIncoming
costTotal = listInterest.Count > 0 ? listInterest.Sum(a => a.RepayInterestRMB):0; costTotal = listInterest.Count > 0 ? listInterest.Sum(a => a.RepayInterestRMB):0;
//管理成本 只取付款主体为广州百伦供应链科技有限公司、香港百伦科技有限公司、广州电子服装仓、阳山仓、深圳仓、的数据 //管理成本 只取付款主体为广州百伦供应链科技有限公司、香港百伦科技有限公司、广州电子服装仓、阳山仓、深圳仓、的数据
list = list.Where(a => a.companyValue == 1 || a.companyValue == 2 || a.companyValue == 5 || a.companyValue == 8 || a.companyValue == 7||a.companyValue == 69).ToList(); list = list.Where(a => a.companyValue == 1 || a.companyValue == 2 || a.companyValue == 5 || a.companyValue == 8 || a.companyValue == 7).ToList();
if (list.Count > 0) if (list.Count > 0)
{ {
costTotal += list.Sum(a => a.amountRmb); costTotal += list.Sum(a => a.amountRmb);
...@@ -91,8 +91,8 @@ namespace Bailun.DC.DailyPayAndIncoming ...@@ -91,8 +91,8 @@ namespace Bailun.DC.DailyPayAndIncoming
var obj = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60); var obj = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60);
//收入 提现到账的资金 //收入 提现到账的资金 去掉1688的收入
sql = $"select sum(other_to_cny_money) amount from dc_base_finance_cashierdetail where daozhang_time>='{start.ToString("yyyy-MM-dd HH:mm:ss")}' and daozhang_time<'{end.ToString("yyyy-MM-dd HH:mm:ss")}'"; sql = $"select sum(other_to_cny_money) amount from dc_base_finance_cashierdetail where collection_platform!=1 and daozhang_time>='{start.ToString("yyyy-MM-dd HH:mm:ss")}' and daozhang_time<'{end.ToString("yyyy-MM-dd HH:mm:ss")}'";
var objIncoming = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60); var objIncoming = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60);
...@@ -132,7 +132,7 @@ namespace Bailun.DC.DailyPayAndIncoming ...@@ -132,7 +132,7 @@ namespace Bailun.DC.DailyPayAndIncoming
decimal costTotal = 0; decimal costTotal = 0;
costTotal = listInterest.Count > 0 ? listInterest.Sum(a => a.RepayInterestRMB) : 0; costTotal = listInterest.Count > 0 ? listInterest.Sum(a => a.RepayInterestRMB) : 0;
list = list.Where(a => a.companyValue == 1 || a.companyValue == 2 || a.companyValue == 5 || a.companyValue == 8 || a.companyValue == 7 || a.companyValue== 69).ToList(); list = list.Where(a => a.companyValue == 1 || a.companyValue == 2 || a.companyValue == 5 || a.companyValue == 8 || a.companyValue == 7).ToList();
if (list.Count > 0) if (list.Count > 0)
{ {
costTotal += list.Sum(a => a.amountRmb); costTotal += list.Sum(a => a.amountRmb);
......
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