Quellcode durchsuchen

其他款项 列表 更改字段值

leiy vor 11 Monaten
Ursprung
Commit
4b24145d5c

+ 1 - 1
OASystem/OASystem.Domain/ViewModels/Groups/DecreasePaymentsView.cs

@@ -23,7 +23,7 @@ namespace OASystem.Domain.ViewModels.Groups
         /// <summary>
         /// 费用金额
         /// </summary>
-        public decimal Price { get; set; }
+        public decimal FeeTotal { get; set; }
 
         /// <summary>
         /// 费用币种

+ 2 - 2
OASystem/OASystem.Infrastructure/Repositories/Groups/DecreasePaymentsRepository.cs

@@ -54,7 +54,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 }
 
                 //雷怡 2024-5-8 15:14 新增View字段 CreateTime
-                string sql = string.Format(@" Select gdp.Id,gdp.DiId,gdp.PriceName,gdp.Price,sd1.[Name] as Currency,gdp.FilePath,su.CnName as CreateUserName,
+                string sql = string.Format(@" Select gdp.Id,gdp.DiId,gdp.PriceName,gdp.FeeTotal,sd1.[Name] as Currency,gdp.FilePath,su.CnName as CreateUserName,
                                               ccp.IsAuditGM as isAudit,ccp.IsPay,gdp.CreateTime
                                               From Grp_DecreasePayments as gdp With(Nolock) Left Join Grp_CreditCardPayment as ccp With(Nolock) On gdp.Id = ccp.CId
                                               Left Join Sys_SetData as sd1 On gdp.Currency = sd1.Id
@@ -490,7 +490,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
 										Left Join Grp_CreditCardPayment ccp With(NoLock) On dp.Id = ccp.CId And dp.DiId = ccp.DIId And ccp.CTable = 98
 										Where dp.IsDel = 0  And dp.Id = {dto.Id}");
 
-            var info = await _sqlSugar.Queryable<DecreasePaymentsInfoView>(sql).FirstAsync();
+            var info = await _sqlSugar.SqlQueryable<DecreasePaymentsInfoView>(sql).FirstAsync();
 
             return new Result() { Code = 0, Msg = "查询成功!", Data = info };
         }