|
|
@@ -170,12 +170,11 @@ public class AdoS0ItemMasterUpsertDto
|
|
|
public string? DefaultShelf { get; set; }
|
|
|
public bool KeyItem { get; set; }
|
|
|
|
|
|
- // C2 技术护栏:上下界对齐 Entity 列类型 decimal(18,5)(max ±9,999,999,999,999.99999)。
|
|
|
- // 这不是业务净重上限,仅为防止 MySQL out-of-range 触发 unhandled 500。
|
|
|
+ // C2 技术护栏 + C1 负数拒绝:上界对齐 Entity 列类型 decimal(18,5)(max 9,999,999,999,999.99999);
|
|
|
+ // 下界 0 与前端 el-input-number :min="0" 对齐(C0 §7 C1-Q1 选 a:后端拒绝负数)。
|
|
|
// 业务实际上限待 C0 业务签字(参见 lwb/C0-business-rule-scope-review-20260425.md C2-Q1/Q2)。
|
|
|
- // 负数语义未在本轮处理,下界保留为列允许的负向极值。
|
|
|
- [Range(typeof(decimal), "-9999999999999.99999", "9999999999999.99999",
|
|
|
- ErrorMessage = "净重数值超出技术允许范围(decimal(18,5))")]
|
|
|
+ [Range(typeof(decimal), "0", "9999999999999.99999",
|
|
|
+ ErrorMessage = "净重不能为负,且不能超过技术允许范围(decimal(18,5))")]
|
|
|
public decimal? NetWeight { get; set; }
|
|
|
public string? NetWeightUM { get; set; }
|
|
|
public bool Inspect { get; set; }
|