|
|
|
@ -167,6 +167,11 @@ public class BsOrderServiceImpl implements BsOrderService { |
|
|
|
|
if (l) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商品限购数量不能超过" + specs.getPurLimit()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 本次购买产品数量是否大于限购数量
|
|
|
|
|
if (specs.getPurLimit() < child.getProductCount()) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商品限购数量不能超过" + specs.getPurLimit()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (specs != null) { |
|
|
|
|