fix >0 因为数据为负数
This commit is contained in:
@@ -251,9 +251,9 @@ public class AssignmentsController : ControllerBase
|
||||
TenantId = data.TenantId
|
||||
};
|
||||
|
||||
if (newData.ClosingAmount < 0)
|
||||
if (newData.ClosingAmount > 0)
|
||||
{
|
||||
throw new UserFriendlyException("结算金额过大,导致期末金额小于0");
|
||||
throw new UserFriendlyException("结算金额过大");
|
||||
}
|
||||
|
||||
data.Valid = false;
|
||||
@@ -287,9 +287,9 @@ public class AssignmentsController : ControllerBase
|
||||
TenantId = data.TenantId
|
||||
};
|
||||
|
||||
if (newData.ClosingAmount < 0)
|
||||
if (newData.ClosingAmount > 0)
|
||||
{
|
||||
throw new UserFriendlyException("退款金额过大,导致期末金额小于0");
|
||||
throw new UserFriendlyException("退款金额过大");
|
||||
}
|
||||
|
||||
data.Valid = false;
|
||||
|
||||
Reference in New Issue
Block a user