From f2334e4786ca9861b65a471a6be94b826e914227 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Sun, 28 Sep 2025 09:36:33 +0800 Subject: [PATCH] =?UTF-8?q?2025-09-28=20pda=20=E5=85=B6=E5=AE=83=E5=85=A5?= =?UTF-8?q?=E5=BA=93=20=E5=85=B6=E5=AE=83=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/OtherOutboundServiceImpl.java | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/gaotao/modules/other/service/impl/OtherOutboundServiceImpl.java b/src/main/java/com/gaotao/modules/other/service/impl/OtherOutboundServiceImpl.java index cf93839..f8011c3 100644 --- a/src/main/java/com/gaotao/modules/other/service/impl/OtherOutboundServiceImpl.java +++ b/src/main/java/com/gaotao/modules/other/service/impl/OtherOutboundServiceImpl.java @@ -66,33 +66,33 @@ public class OtherOutboundServiceImpl implements OtherOutboundService { // 5. 调用通用的出入库方法生成记录和变更库存 List detailList = transHeaderService.genTransAndChangeInventoryStock(transRequest, "OUT"); - // 6. 调用IFS接口同步出库信息 - for (TransDetail detail : detailList) { - OtherTransactionIfsDto ifsDto = new OtherTransactionIfsDto(); - ifsDto.setIfsSiteID(dto.getSite()); - ifsDto.setIfsPartNo(detail.getPartNo()); - ifsDto.setIfsLocationNo(detail.getLocationId()); - ifsDto.setIfsLotBatchNo(detail.getBatchNo()); - ifsDto.setIfsSerialNo("*"); - ifsDto.setIfsWdrNo(detail.getWdrNo()); - ifsDto.setIfsEngChgLevel("1"); - ifsDto.setIfsActivitySeq(BigDecimal.ZERO); - ifsDto.setIfsHandlingUntitID(BigDecimal.ZERO); - ifsDto.setIfsQuantity(detail.getTransQty()); - ifsDto.setIfsTransactionType("OUT"); - ifsDto.setIfsReason(dto.getOutboundReason()); - ifsDto.setIfsOperator(dto.getOperatorName()); - - try { - String ifsResponse = ifsApiIssueAndReturnService.addOtherOutbound(ifsDto); - // 检查IFS响应,如果失败可能需要回滚事务 - if (!"IFSUpdated".equals(ifsResponse) && !"\"IFSUpdated\"".equals(ifsResponse)) { - throw new XJException("IFS同步失败,响应: " + ifsResponse); - } - } catch (Exception ifsException) { - throw new XJException("其它出库IFS同步失败: " + ifsException.getMessage()); - } - } +// // 6. 调用IFS接口同步出库信息 +// for (TransDetail detail : detailList) { +// OtherTransactionIfsDto ifsDto = new OtherTransactionIfsDto(); +// ifsDto.setIfsSiteID(dto.getSite()); +// ifsDto.setIfsPartNo(detail.getPartNo()); +// ifsDto.setIfsLocationNo(detail.getLocationId()); +// ifsDto.setIfsLotBatchNo(detail.getBatchNo()); +// ifsDto.setIfsSerialNo("*"); +// ifsDto.setIfsWdrNo(detail.getWdrNo()); +// ifsDto.setIfsEngChgLevel("1"); +// ifsDto.setIfsActivitySeq(BigDecimal.ZERO); +// ifsDto.setIfsHandlingUntitID(BigDecimal.ZERO); +// ifsDto.setIfsQuantity(detail.getTransQty()); +// ifsDto.setIfsTransactionType("OUT"); +// ifsDto.setIfsReason(dto.getOutboundReason()); +// ifsDto.setIfsOperator(dto.getOperatorName()); +// +// try { +// String ifsResponse = ifsApiIssueAndReturnService.addOtherOutbound(ifsDto); +// // 检查IFS响应,如果失败可能需要回滚事务 +// if (!"IFSUpdated".equals(ifsResponse) && !"\"IFSUpdated\"".equals(ifsResponse)) { +// throw new XJException("IFS同步失败,响应: " + ifsResponse); +// } +// } catch (Exception ifsException) { +// throw new XJException("其它出库IFS同步失败: " + ifsException.getMessage()); +// } +// } // 7. 更新HandlingUnit状态 updateHandlingUnitStatus(handlingUnits, detailList, currentUser);