fix >0 因为数据为负数

This commit is contained in:
2025-10-15 18:49:54 +08:00
parent 498e68ade5
commit 8cbbbaffdc

View File

@@ -251,9 +251,9 @@ public class AssignmentsController : ControllerBase
TenantId = data.TenantId TenantId = data.TenantId
}; };
if (newData.ClosingAmount < 0) if (newData.ClosingAmount > 0)
{ {
throw new UserFriendlyException("结算金额过大,导致期末金额小于0"); throw new UserFriendlyException("结算金额过大");
} }
data.Valid = false; data.Valid = false;
@@ -287,9 +287,9 @@ public class AssignmentsController : ControllerBase
TenantId = data.TenantId TenantId = data.TenantId
}; };
if (newData.ClosingAmount < 0) if (newData.ClosingAmount > 0)
{ {
throw new UserFriendlyException("退款金额过大,导致期末金额小于0"); throw new UserFriendlyException("退款金额过大");
} }
data.Valid = false; data.Valid = false;