From d67ef1050c626c9b60def58cc7075cf45ff7a13f Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Thu, 8 Jun 2023 15:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E4=BB=B7=E6=A0=BC=E4=B8=8D?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=97=B6=20=E7=8A=B6=E6=80=81=E6=98=AF?= =?UTF-8?q?=E6=9C=AA=E7=99=BB=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inout/IoOrderDetailBizController.java | 10 ++++++--- .../glxp/api/req/inout/InvoiceRequest.java | 21 +++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/glxp/api/req/inout/InvoiceRequest.java 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 6800fcd2..5a6de8ee 100644 --- a/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java +++ b/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java @@ -674,10 +674,14 @@ public class IoOrderDetailBizController extends BaseController { @PostMapping("/udiwms/inout/biz/updateorderBiz") - public BaseResponse updateorderBiz(@RequestBody List list) { + public BaseResponse updateorderBiz(@RequestBody InvoiceRequest invoiceRequest) { String billNo = null; - for (IoOrderDetailCodeEntity ioOrderDetailBizEntity : list) { - ioOrderDetailBizEntity.setRegStatus(true); + for (IoOrderDetailCodeEntity ioOrderDetailBizEntity : invoiceRequest.getList()) { + if("key".equals(invoiceRequest.getKey())){ + ioOrderDetailBizEntity.setRegStatus(false); + }else{ + ioOrderDetailBizEntity.setRegStatus(true); + } orderDetailCodeService.updateOrderDetailBiz(ioOrderDetailBizEntity); billNo = ioOrderDetailBizEntity.getOrderIdFk(); } diff --git a/src/main/java/com/glxp/api/req/inout/InvoiceRequest.java b/src/main/java/com/glxp/api/req/inout/InvoiceRequest.java new file mode 100644 index 00000000..60c44044 --- /dev/null +++ b/src/main/java/com/glxp/api/req/inout/InvoiceRequest.java @@ -0,0 +1,21 @@ +package com.glxp.api.req.inout; + +import com.glxp.api.entity.inout.IoOrderDetailCodeEntity; +import lombok.Data; + +import java.util.List; + +/** + * @author : zhangsan + * @date : 2023/6/8 15:15 + * @modyified By : + */ + +@Data +public class InvoiceRequest { + private List list; + private String key; + + + +}