diff --git a/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java b/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java index 8faeae78..bc9700d5 100644 --- a/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java +++ b/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java @@ -795,14 +795,14 @@ public class IoOrderDetailBizController extends BaseController { addBizProductReqeust.setOrderEntity(ioOrderEntity); } addBizProductReqeust.setProductType(udiRelevanceResponse.getProductType()); -// BaseResponse response = orderDetailBizService.addBizProduct(addBizProductReqeust); -// if (response.getCode() != 20000) { -// return response; -// } -// if (i == 0) { -// ioOrderEntity = JSONObject.parseObject(JSONObject.toJSONString(response.getData()), IoOrderEntity.class); -// addBizProductReqeust.setOrderEntity(ioOrderEntity); -// } + BaseResponse response = orderDetailBizService.addBizProduct(addBizProductReqeust); + if (response.getCode() != 20000) { + return response; + } + if (i == 0) { + ioOrderEntity = JSONObject.parseObject(JSONObject.toJSONString(response.getData()), IoOrderEntity.class); + addBizProductReqeust.setOrderEntity(ioOrderEntity); + } AddOrderRequest addOrderRequest = new AddOrderRequest(); BeanUtils.copyProperties(ioOrderEntity, addOrderRequest);