From eeb03f7226e0088ec0fb983b7a15187dd4e02bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Wed, 2 Aug 2023 14:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E4=B8=8A=E4=BC=A0=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/glxp/api/res/inout/IoOrderResponse.java | 9 +++++++++ .../glxp/api/service/inout/impl/PlatformServiceImpl.java | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/com/glxp/api/res/inout/IoOrderResponse.java b/src/main/java/com/glxp/api/res/inout/IoOrderResponse.java index 60d45eb48..3495da336 100644 --- a/src/main/java/com/glxp/api/res/inout/IoOrderResponse.java +++ b/src/main/java/com/glxp/api/res/inout/IoOrderResponse.java @@ -212,6 +212,8 @@ public class IoOrderResponse { private String customerName; + + /** * 导出状态/上传状态(0.未导出,1.已导出,2.导出失败) */ @@ -253,4 +255,11 @@ public class IoOrderResponse { return fromInvName; return fromName; } + + public Integer getExportStatus() { + if(exportStatus == null){ + return 0; + } + return exportStatus; + } } diff --git a/src/main/java/com/glxp/api/service/inout/impl/PlatformServiceImpl.java b/src/main/java/com/glxp/api/service/inout/impl/PlatformServiceImpl.java index c39021e05..2a760a3aa 100644 --- a/src/main/java/com/glxp/api/service/inout/impl/PlatformServiceImpl.java +++ b/src/main/java/com/glxp/api/service/inout/impl/PlatformServiceImpl.java @@ -388,10 +388,15 @@ public class PlatformServiceImpl implements PlatformService { IoOrderEntity ioOrderEntity1=new IoOrderEntity(); ioOrderEntity1.setFromSpmsOrders(formSpmsOrders); ioOrderEntity1.setBillNo(orderId); + ioOrderEntity1.setExportStatus(1); ioOrderService.updateByBillNo(ioOrderEntity1); return JSON.parseObject(resp, BaseResponse.class); } else { log.error("获取自助平台分库失败"); + IoOrderEntity ioOrderEntity1=new IoOrderEntity(); + ioOrderEntity1.setBillNo(orderId); + ioOrderEntity1.setExportStatus(2); + ioOrderService.updateByBillNo(ioOrderEntity1); return ResultVOUtils.error(500, "获取自助平台接口异常"); } }