fix 优化查询余额
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Dlhis.Entity.Basic.Enums;
|
||||
using Kurisu.AspNetCore.Utils.Extensions;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Dlhis.Basic.Organization.Response;
|
||||
|
||||
@@ -20,7 +21,10 @@ public class GainfoMealResponse
|
||||
/// <summary>
|
||||
/// 余额
|
||||
/// </summary>
|
||||
public decimal Balance { get; set; }
|
||||
public string Balance => CurrentBalance.ToString("F2");
|
||||
|
||||
[JsonIgnore]
|
||||
public decimal CurrentBalance { get; set; }
|
||||
|
||||
// /// <summary>
|
||||
// /// 余额(充值)
|
||||
@@ -41,7 +45,9 @@ public class GainfoMealResponse
|
||||
/// <summary>
|
||||
/// 餐补总额
|
||||
/// </summary>
|
||||
public decimal MealSupplementAmount { get; set; }
|
||||
public string MealSupplementAmount => CurrentMealSupplementAmount.ToString("F2");
|
||||
|
||||
public decimal CurrentMealSupplementAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 档案状态
|
||||
|
||||
Reference in New Issue
Block a user