Commit 02fdf72d authored by zhaowei's avatar zhaowei

负数

parent 1fa2123d
......@@ -95,9 +95,10 @@ public class DrawManagerImpl implements IDrawManager {
drawCountTotal = Math.max(drawCountTotal - alreadyDrawCount, 0);
drawCountTotal = Math.min(businessConfig.getDrawMaxCount(), drawCountTotal);
Integer joinActivityPeopleNum = accountPrizeService.countJoinActivityPeople();
drawCountTotal = drawCountTotal - alreadyDrawCount;
return DrawModel.builder()
.alreadyDrawCount(alreadyDrawCount)
.drawCountTotal(drawCountTotal-alreadyDrawCount)
.drawCountTotal(drawCountTotal>=0?drawCountTotal:0)
.maxDrawCountLimit(maxDrawCountLimit)
.numOfDrawCount(Math.max(0, maxDrawCountLimit - drawCountTotal))
.purchasedAmount(purchasedAmount)
......
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