From d2ac51b6226e1f32056b1cffb10a106089a34830 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Thu, 16 Jan 2025 15:03:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inout/IoOrderDetailBizController.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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);