From e3f2a082182ee198bdb00031f84c519d791968e3 Mon Sep 17 00:00:00 2001 From: MrZhai Date: Wed, 16 Mar 2022 10:02:51 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E7=8A=B6=E6=80=81=E5=80=BC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/inout/IOOrderStatusController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/IOOrderStatusController.java b/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/IOOrderStatusController.java index 22ef65a..72e991c 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/IOOrderStatusController.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/controller/inout/IOOrderStatusController.java @@ -78,7 +78,11 @@ public class IOOrderStatusController { if (bindingResult.hasErrors()) { return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); } - boolean b = ioOrderStatusService.deleteByOrderId(orderStatusFilterRequest.getOrderId()); + //boolean b = ioOrderStatusService.deleteByOrderId(orderStatusFilterRequest.getOrderId()); + IOOrderStatusEntity ioOrderStatusEntity = new IOOrderStatusEntity(); + ioOrderStatusEntity.setOrderId(orderStatusFilterRequest.getOrderId()); + ioOrderStatusEntity.setStatus(orderStatusFilterRequest.getStatus()); + boolean b = ioOrderStatusService.updateOrderStatus(ioOrderStatusEntity); if (!b) { return ResultVOUtils.error(ResultEnum.NOT_NETWORK); }