Commit f17b000f by guanzhenshan

增加了金额为负数的判断,金额不允许为负数

parent 24b7d7b9
...@@ -451,7 +451,13 @@ namespace Bailun.DC.Services ...@@ -451,7 +451,13 @@ namespace Bailun.DC.Services
item.before_balance = item.userable_amount; item.before_balance = item.userable_amount;
item.end_balance = item.userable_amount; item.end_balance = item.userable_amount;
} }
if (item.amount < 0 || item.amount_sales<0 || item.before_balance<0||item.userable_amount<0||item.withdraw_amount<0)
{
return "金额必须大于0";
}
if (item.id <= 0) if (item.id <= 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment