Commit 86698c7c by chongfu.liang

加料上限设置

parent b1319c4f
...@@ -395,7 +395,7 @@ public abstract class AbstractAddGoodsService implements AddGoodsService { ...@@ -395,7 +395,7 @@ public abstract class AbstractAddGoodsService implements AddGoodsService {
return ; return ;
} }
if(addProductqty.intValue() < materialMaxQty.intValue()){ if((addProductqty.intValue() < materialMaxQty.intValue()) || (addProductqty.intValue() == materialMaxQty.intValue())){
return ; return ;
} }
throw new ServiceException(ResponseResult.SHOPPING_CART_MATERIA_QTY_LIMIT_ERR); throw new ServiceException(ResponseResult.SHOPPING_CART_MATERIA_QTY_LIMIT_ERR);
......
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