|
|
@ -73,7 +73,8 @@ public class OrderController { |
|
|
|
|| orderChild.getProductCount() == null) { |
|
|
|
|| orderChild.getProductCount() == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
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) { |
|
|
|
&& orderChild.getProductSpecId() == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
} |
|
|
|
} |
|
|
|