Commit 33eca712 by guanzhenshan

调整借支单明细

parent 0cab467e
......@@ -2210,8 +2210,8 @@ namespace Bailun.DC.Services
/// <returns></returns>
public List<dc_daily_fee> ListBorrowAmount(BtTableParameter request, DateTime date, int? companyvalue, ref int total)
{
//只取百伦主体的
var sql = "select * from dc_daily_fee where company_value in (53,3,5,60,66,59,50,8,1,61,2) and cost_status>-1 and recoed_time='" + date.ToString("yyyy-MM-dd")+"'";
//排除4k的主体
var sql = "select * from dc_daily_fee where company_value not in (78,72,71,67,58,54) and cost_status>-1 and recoed_time='" + date.ToString("yyyy-MM-dd")+"'";
if (companyvalue.HasValue && companyvalue.Value>0)
{
......@@ -2251,7 +2251,7 @@ 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 company_value in (53,3,5,60,66,59,50,8,1,61,2) and 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 not in (78,72,71,67,58,54) and cost_status>-1 and recoed_time='" + date.ToString("yyyy-MM-dd") + "'";
if (companyvalue.HasValue && companyvalue.Value > 0)
{
......@@ -2340,7 +2340,7 @@ namespace Bailun.DC.Services
cn.Open();
}
var sql = $"select cost_no,company_name,create_username,((amount - ifnull(had_pay, 0) + ifnull(compensate, 0)) * to_rmb_rate) as amount,recoed_time from dc_daily_fee where is_lend=1 and lend_balance>0 and recoed_time = '{date.ToString("yyyy-MM-dd")}' and company_value in (53,3,5,60,66,59,50,8,1,61,2,70)";
var sql = $"select cost_no,company_name,create_username,((amount - ifnull(had_pay, 0) + ifnull(compensate, 0)) * to_rmb_rate) as amount,recoed_time from dc_daily_fee where is_lend=1 and lend_balance>0 and recoed_time = '{date.ToString("yyyy-MM-dd")}' and company_value not in (78,72,71,67,58,54)";
var obj = cn.Page<dc_daily_fee>(request.pageIndex, request.limit, sql, ref total).ToList();
......
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