|
@@ -54,11 +54,11 @@ 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,
|
|
|
-ccp.IsAuditDM 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
|
|
|
-Left Join Sys_Users as su On gdp.CreateUserId = su.Id
|
|
|
-Where gdp.DiId = {0} And ccp.CTable = 98 {2} And ccp.IsDel = 0 And gdp.IsDel = 0 And gdp.CreateUserId in ({1}) ", dto.DiId, dto.UserId, sqlWhere);
|
|
|
+ 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
|
|
|
+ Left Join Sys_Users as su On gdp.CreateUserId = su.Id
|
|
|
+ Where gdp.DiId = {0} And ccp.CTable = 98 {2} And ccp.IsDel = 0 And gdp.IsDel = 0 And gdp.CreateUserId in ({1}) ", dto.DiId, dto.UserId, sqlWhere);
|
|
|
List<DecreasePaymentsView> _DecreasePayments = await _sqlSugar.SqlQueryable<DecreasePaymentsView>(sql).ToListAsync();
|
|
|
if (_DecreasePayments.Count > 0)
|
|
|
{
|