diff --git a/src/main/java/com/glxp/api/controller/inv/InvInnerOrderPrintController.java b/src/main/java/com/glxp/api/controller/inv/InvInnerOrderPrintController.java index 4d3cb338..7bf24527 100644 --- a/src/main/java/com/glxp/api/controller/inv/InvInnerOrderPrintController.java +++ b/src/main/java/com/glxp/api/controller/inv/InvInnerOrderPrintController.java @@ -8,6 +8,7 @@ import com.glxp.api.common.enums.ResultEnum; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; import com.glxp.api.dao.inv.InvInnerOrderPdfTempDao; +import com.glxp.api.entity.inout.IoOrderEntity; import com.glxp.api.entity.inv.InvInnerOrderPrintEntity; import com.glxp.api.entity.inv.InvInnerOrderPdfTempEntity; import com.glxp.api.entity.system.SystemPDFModuleEntity; @@ -18,6 +19,7 @@ import com.glxp.api.res.PageSimpleResponse; import com.glxp.api.res.inv.innerOrderPrintRequest; import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.basic.UdiProductService; +import com.glxp.api.service.inout.IoOrderService; import com.glxp.api.service.inv.InnerOrderDetailService; import com.glxp.api.service.inv.InvInnerOrderPdfTempService; import com.glxp.api.service.inv.InvInnerOrderPrintService; @@ -58,6 +60,8 @@ public class InvInnerOrderPrintController { private JaspaperService jaspaperService; @Resource private InvInnerOrderPdfTempService innerOrderPdfTempService; + @Resource + private IoOrderService ioOrderService; @GetMapping("/udiwms/innerOrderPrint/filter") @@ -187,6 +191,9 @@ public class InvInnerOrderPrintController { innerOrderPrintEntity.setId(innerOrderPrintRequest.getId()); invInnerOrderPrintService.updateOrder(innerOrderPrintEntity); } + IoOrderEntity ioOrderEntity=new IoOrderEntity(); + ioOrderEntity.setInCodeStatus(1); + ioOrderService.update(ioOrderEntity); return null; } diff --git a/src/main/java/com/glxp/api/service/inv/impl/InvInnerOrderPrintServiceImpl.java b/src/main/java/com/glxp/api/service/inv/impl/InvInnerOrderPrintServiceImpl.java index 9161b8ef..61b2ad4c 100644 --- a/src/main/java/com/glxp/api/service/inv/impl/InvInnerOrderPrintServiceImpl.java +++ b/src/main/java/com/glxp/api/service/inv/impl/InvInnerOrderPrintServiceImpl.java @@ -293,7 +293,7 @@ public class InvInnerOrderPrintServiceImpl implements InvInnerOrderPrintService innerOrderPrintEntity.setUdiCode(udiCode); invInnerOrderPrintDao.insert(innerOrderPrintEntity); } - orderEntity.setInCodeStatus(1);// + orderEntity.setInCodeStatus(0);// orderService.update(orderEntity); return true; }