fix 金额变正新增设备名称

This commit is contained in:
cheche
2024-03-11 10:31:59 +08:00
parent 41a956f1f6
commit 3b4b837994
4 changed files with 16 additions and 2 deletions

View File

@@ -79,6 +79,10 @@ public class BalanceService : IBalanceService
TenantId = record.TenantId,
})
.ToPageListAsync(request);
page.Data.ForEach(item =>
{
item.Amount = Math.Abs(item.Amount);
});
try
{
@@ -224,6 +228,10 @@ public class BalanceService : IBalanceService
})
.ToPageListAsync(request);
foreach (var item in paeginfo.Data)
{
item.Amount = Math.Abs(item.Amount);
}
return paeginfo;
}
/// <summary>