修改限购问题

dev
袁野 2 days ago
parent 622341b439
commit 0455cd52ab
  1. 5
      service/src/main/java/com/hfkj/service/order/impl/BsOrderServiceImpl.java

@ -167,6 +167,11 @@ public class BsOrderServiceImpl implements BsOrderService {
if (l) { if (l) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商品限购数量不能超过" + specs.getPurLimit()); 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) { if (specs != null) {

Loading…
Cancel
Save