Browse Source

超支费用 合并

leiy 11 months ago
parent
commit
94073d8afd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      OASystem/OASystem.Api/Controllers/StatisticsController.cs

+ 2 - 1
OASystem/OASystem.Api/Controllers/StatisticsController.cs

@@ -278,13 +278,14 @@ namespace OASystem.API.Controllers
                 decimal promTotalAmount = 0.00M;// 收款退还总金额
                 List<Gsd_PaymentRefundAndOtherMoneyView> _promView = new List<Gsd_PaymentRefundAndOtherMoneyView>();
 
+                //删除了  And prom.PriceType = 1
                 string _ropSql = string.Format(@"Select u.CnName As Appliction,prom.Id As PrId,prom.DiId As PrDiId,prom.Price As PrPrice,
 										         prom.PriceName AS PrPriceName,prom.CurrencyId As PrCurrencyId,
 										         prom.PayType As PrPayType,prom.PriceType As PrPriceType,ccp.*
 										         From Fin_PaymentRefundAndOtherMoney prom
 										         Left Join Grp_CreditCardPayment ccp On prom.DiId = ccp.DIId And prom.Id = ccp.CId
 										         Left Join Sys_Users u On ccp.CreateUserId = u.Id
-										         Where prom.IsDel = 0  And prom.PayType = 1 And prom.PriceType = 1 And ccp.CTable = 285
+										         Where prom.IsDel = 0  And prom.PayType = 1 And ccp.CTable = 285
 										         And ccp.IsAuditGM = 1 And ccp.IsPay = 1
 										         And prom.DiId = {0}", _dto.DiId);
                 var _promDatas = await _sqlSugar.SqlQueryable<Gsd_PaymentRefundAndOtherMoneyDataSource1View>(_ropSql).ToListAsync();