Commit be100193 by guanzhenshan

调整借支金额规则

parent 42ca387c
......@@ -1802,7 +1802,7 @@ namespace Bailun.DC.Services
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,70) and cost_status>-1 and recoed_time='" + date.ToString("yyyy-MM-dd")+"'";
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")+"'";
if (companyvalue.HasValue && companyvalue.Value>0)
{
......@@ -1842,7 +1842,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,70) 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 in (53,3,5,60,66,59,50,8,1,61,2) and cost_status>-1 and recoed_time='" + date.ToString("yyyy-MM-dd") + "'";
if (companyvalue.HasValue && companyvalue.Value > 0)
{
......
......@@ -29,8 +29,8 @@
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<script type="text/javascript">
login_localhost();
//login();
//login_localhost();
login();
window.location = "@Url.Content("~/Home/Main")";
</script>
</body>
......
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