提交代码

master
胡锐 6 months ago
parent 97fd3d1ae6
commit 09e959d3cc
  1. 3
      order/src/main/java/com/order/controller/OrderController.java

@ -73,7 +73,8 @@ public class OrderController {
|| orderChild.getProductCount() == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
}
if ( orderChild.getProductType().equals(OrderChildProductTypeEnum.type1.getCode()) || orderChild.getProductType().equals(OrderChildProductTypeEnum.type2.getCode())
if ((orderChild.getProductType().equals(OrderChildProductTypeEnum.type1.getCode())
|| orderChild.getProductType().equals(OrderChildProductTypeEnum.type2.getCode()))
&& orderChild.getProductSpecId() == null) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
}

Loading…
Cancel
Save