From faa2cc217d5fe44c4be42973e84a40cd56aae73d Mon Sep 17 00:00:00 2001 From: mengjiao <3338049200@qq,com> Date: Mon, 8 Apr 2024 10:57:09 +0800 Subject: [PATCH] =?UTF-8?q?wms=E9=94=80=E5=94=AE=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E5=8D=95=E6=8E=A5=E5=8F=A332?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/op/wms/service/impl/WmsProductPutServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java index 8d02a1a03..0c70f5962 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java @@ -741,7 +741,13 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { wmsSellOutEmbryo1.setActiveFlag("1"); wmsSellOutEmbryo1.setCreateBy(wmsSellOutEmbryo.getCreateBy()); wmsSellOutEmbryo1.setCreateTime(new Date()); - wmsSellOutEmbryoMapper.insertWmsSellOutEmbryo(wmsSellOutEmbryo1); + //判断有没有这个单子,。如果有的话,就跳过吧 + WmsSellOutEmbryo wmsSellOutEmbryo2= wmsSellOutEmbryoMapper.selectWmsSellOutEmbryoByOrderCodeAndProductCode(VBELN,MATNR); + if (wmsSellOutEmbryo2==null){ + wmsSellOutEmbryoMapper.insertWmsSellOutEmbryo(wmsSellOutEmbryo1); + }else { + results="已经存在"; + } } } return results;