fix 金额小数点

This commit is contained in:
2024-02-23 19:22:08 +08:00
parent 80c84069e1
commit 96cbaa1c3a
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
namespace Dlhis.Canteen.Order.Response;
using Newtonsoft.Json;
namespace Dlhis.Canteen.Order.Response;
public class OrderResultResponse
{
@@ -22,8 +24,11 @@ public class OrderResultResponse
/// </summary>
public string DepartmentName { get; set; }
[JsonIgnore]
public decimal CurrentBalance { get; set; }
/// <summary>
/// 余额
/// </summary>
public decimal Balance { get; set; }
public string Balance => CurrentBalance.ToString("f2");
}