Commit a1a67c5a by guanzhenshan

同上

parent 6042d149
......@@ -1617,7 +1617,8 @@ namespace Bailun.DC.Services
public dc_daily_fee ListBorrowAmountCount(DateTime date, int? companyvalue)
{
var sql = "select sum((amount - had_pay + ifnull(compensate, 0)) * to_rmb_rate) amount from dc_daily_fee where cost_status>-1 and recoed_time='" + date.ToString("yyyy-MM-dd") + "'";
//只取百伦主体的
var sql = "select sum((amount - had_pay + ifnull(compensate, 0)) * to_rmb_rate) amount from dc_daily_fee where company_value in (53,3,5,60,66,59,50,8,1,61,2,70) and cost_status>-1 and recoed_time='" + date.ToString("yyyy-MM-dd") + "'";
if (companyvalue.HasValue && companyvalue.Value > 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