提交代码

master
胡锐 6 months ago committed by yuanye
parent 164396b6ed
commit 069bca4bbe
  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