From 0d894af3dab2d454bb3c58e9797668bca6aa1b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Thu, 19 Dec 2024 14:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BB=BA=E7=AB=8B=E9=9D=A2?= =?UTF-8?q?=E7=A7=AF=E6=95=B0=E6=8D=AE=E5=8A=A8=E6=80=81=E6=B1=87=E6=80=BB?= =?UTF-8?q?=E5=88=B7=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repc/repmd/formplugin/TotalAssignmentPlugin.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java b/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java index 3fba57d..eb3f007 100644 --- a/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java +++ b/main/java/shkd/repc/repmd/formplugin/TotalAssignmentPlugin.java @@ -187,13 +187,14 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic DynamicObject dynamicObject = subEntryEntity.get(0); DynamicObject dynamicObject2 = (DynamicObject) dynamicObject.getParent(); Long pkValue = (Long) dynamicObject2.getPkValue(); - for (DynamicObject object : productEntry) { - Long id = (Long) object.getPkValue(); + for (int i = 0; i < productEntry.size(); i++) { + DynamicObject dynamicObject1 = productEntry.get(i); + Long id = (Long)dynamicObject1.getPkValue(); if (pkValue.compareTo(id)==0){ - object.set("productentry_buildingarea",publicAndInside); + dynamicObject1.set("productentry_buildingarea",publicAndInside); + this.getView().updateView("productentry_buildingarea",i); break; } } - this.getView().updateView(PRODUCT_ENTRY); } }