二次分配提交金额验证方式修改

parent 109b4ff9
...@@ -1613,13 +1613,10 @@ public bool AuditSubmit(ag_secondallot second, int userId) ...@@ -1613,13 +1613,10 @@ public bool AuditSubmit(ag_secondallot second, int userId)
if (temp == null) if (temp == null)
throw new PerformanceException("选择模板不可用,请确定模板及数据是否存在!"); throw new PerformanceException("选择模板不可用,请确定模板及数据是否存在!");
bool VerifySubmissioAmount(decimal? submitDataAmount, decimal? realGiveFee) bool VerifySubmissioAmount(decimal? leftAmount, decimal? rightAmount)
{ {
if (!submitDataAmount.HasValue || !realGiveFee.HasValue)
return false;
decimal floatValue = 0.1m; decimal floatValue = 0.1m;
return submitDataAmount >= (realGiveFee - floatValue) && submitDataAmount <= (realGiveFee + floatValue); return Math.Abs((rightAmount ?? 0) - (leftAmount ?? 0)) <= floatValue;
} }
if (temp.UseTempId == 6) if (temp.UseTempId == 6)
......
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