From 9a4e5b5cce788d41f311c0d9955fa8484fbd6c99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E8=B1=86=E8=B1=86?= <13356128+sunandmoon60@user.noreply.gitee.com> Date: Tue, 2 Dec 2025 15:03:16 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=94=9F=E4=BA=A7=E5=95=86=E5=9F=8E=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/operate/im/YdthPurInConvertPlugin.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lc123/cloud/app/plugin/operate/im/YdthPurInConvertPlugin.java b/lc123/cloud/app/plugin/operate/im/YdthPurInConvertPlugin.java index 9389654..c9ca825 100644 --- a/lc123/cloud/app/plugin/operate/im/YdthPurInConvertPlugin.java +++ b/lc123/cloud/app/plugin/operate/im/YdthPurInConvertPlugin.java @@ -120,9 +120,9 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu String registrationCode = jsonMap.get("registrationCode") != null ? jsonMap.get("registrationCode").toString() : null; // 注册证号 String licenceCode = jsonMap.get("licenceCode") != null ? jsonMap.get("licenceCode").toString() : null; // 生产许可证号 String producer = jsonMap.get("producer") != null ? jsonMap.get("producer").toString() : null; // 生产厂商 - DynamicObject tqq9_goodspackage = BusinessDataServiceHelper.loadSingle("tqq9_goodspackage", new QFilter[]{new QFilter("tqq9_mater.number", QCP.equals, uniqueCode).and("tqq9_isauto", QCP.equals, true)}); +// DynamicObject tqq9_goodspackage = BusinessDataServiceHelper.loadSingle("tqq9_goodspackage", new QFilter[]{new QFilter("tqq9_mater.number", QCP.equals, uniqueCode).and("tqq9_isauto", QCP.equals, true)}); DynamicObject tqq9_registration = BusinessDataServiceHelper.loadSingle("tqq9_registration", new QFilter[]{new QFilter("number", QCP.equals, registrationCode)}); - DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)}); +// DynamicObject tqq9_proxyandfactory = BusinessDataServiceHelper.loadSingle("tqq9_proxyandfactory", new QFilter[]{new QFilter("number", QCP.equals, producer)}); BigDecimal qty = entry.getBigDecimal("qty");//原数量 BigDecimal amountandtax = entry.getBigDecimal("amountandtax");//折扣后价税合计 @@ -151,7 +151,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu // 第一次直接赋值 entry.set("qty", quantity); entry.set("baseqty", quantity); - entry.set("tqq9_goods", tqq9_goodspackage); +// entry.set("tqq9_goods", tqq9_goodspackage); entry.set("producedate", manufactureDate); entry.set("expirydate", expirationDate); entry.set("lotnumber", batch); @@ -161,7 +161,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu entry.set("tqq9_wmsdetailid", wmsDetailId); entry.set("tqq9_licenseno", licenceCode); entry.set("tqq9_registration", tqq9_registration); - entry.set("tqq9_proxyandfactory", tqq9_proxyandfactory); + entry.set("tqq9_proxyandfactory", producer); DynamicObjectCollection billentry_lk = entry.getDynamicObjectCollection("billentry_lk"); billentry_lk.clear(); } else { @@ -187,7 +187,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu newEntry.set("qty", quantity); newEntry.set("baseqty", quantity); - newEntry.set("tqq9_goods", tqq9_goodspackage); +// newEntry.set("tqq9_goods", tqq9_goodspackage); newEntry.set("producedate", manufactureDate); newEntry.set("expirydate", expirationDate); newEntry.set("lotnumber", batch); @@ -197,7 +197,7 @@ public class YdthPurInConvertPlugin extends AbstractConvertPlugIn implements Plu newEntry.set("tqq9_wmsdetailid", wmsDetailId); newEntry.set("tqq9_licenseno", licenceCode); newEntry.set("tqq9_registration", tqq9_registration); - newEntry.set("tqq9_proxyandfactory", tqq9_proxyandfactory); + newEntry.set("tqq9_proxyandfactory", producer); DynamicObjectCollection billentry_lk = newEntry.getDynamicObjectCollection("billentry_lk"); billentry_lk.clear(); // 处理完新entry后的逻辑(比如加入集合或其他操作)