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; + + + +}