fix 优化提醒

This commit is contained in:
2024-09-03 12:16:44 +08:00
parent 192c6f80af
commit 2eee800d92

View File

@@ -25,7 +25,8 @@ public class EMealVoucherReceiveRequest : IValidatableObject
/// <summary>
/// 手机号
/// </summary>
[Required(ErrorMessage = "成本中心不能为空")]
[MinLength(11, ErrorMessage = "手机号不合法")]
[MaxLength(11, ErrorMessage = "手机号不合法")]
public string Phone { get; set; }
/// <summary>
@@ -59,8 +60,8 @@ public class EMealVoucherReceiveRequest : IValidatableObject
/// <summary>
/// 餐别组合 早餐1;午餐2;晚餐3;夜宵4,凌晨餐5
/// </summary>
[MinLength(1, ErrorMessage = "消费厂区不能为空")]
[MaxLength(5, ErrorMessage = "消费厂区不能为空")]
[MinLength(1, ErrorMessage = "餐别不能为空")]
[MaxLength(5, ErrorMessage = "餐别不能为空")]
public List<int> Shifts { get; set; }
/// <summary>
@@ -124,7 +125,7 @@ public class EMealVoucherReceiveDetailRequest : IValidatableObject
/// <summary>
/// 金额
/// </summary>
[Range(0.01, double.MaxValue)]
[Range(0.01, double.MaxValue, ErrorMessage = "金额有误")]
public decimal Amount { get; set; }