|
@@ -197,7 +197,7 @@ namespace OASystem.Infrastructure.Repositories.Financial
|
|
|
From Fin_PaymentRefundAndOtherMoney prom
|
|
|
Left Join Grp_CreditCardPayment ccp On ccp.CId = prom.id And ccp.CTable = 98 And ccp.IsDel = 0
|
|
|
Where prom.IsDel = 0 And ccp.DIId = prom.DiId And prom.Id = {0}", dto.Id);
|
|
|
- var data = await _sqlSugar.SqlQueryable<Fin_PaymentRefundAndOtherMoneyInfoView>(sql).ToListAsync();
|
|
|
+ var data = await _sqlSugar.SqlQueryable<Fin_PaymentRefundAndOtherMoneyInfoView>(sql).FirstAsync();
|
|
|
|
|
|
if (data != null)
|
|
|
{
|
|
@@ -341,7 +341,7 @@ namespace OASystem.Infrastructure.Repositories.Financial
|
|
|
Left Join Grp_CreditCardPayment ccp On ccp.CId = prom.id And ccp.CTable = 98
|
|
|
Where prom.IsDel = 0 And ccp.IsDel = 0 And ccp.DIId = prom.DiId And prom.PriceName = '{0}'",
|
|
|
_PaymentRefundAndOtherMoney.PriceName);
|
|
|
- var data = await _sqlSugar.SqlQueryable<Fin_PaymentRefundAndOtherMoneyInfoView>(sql).ToListAsync();
|
|
|
+ var data = await _sqlSugar.SqlQueryable<Fin_PaymentRefundAndOtherMoneyInfoView>(sql).FirstAsync();
|
|
|
|
|
|
if (data != null)
|
|
|
{
|