Commit 86698c7c by chongfu.liang

加料上限设置

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