项目建立面积数据动态汇总刷新bug

This commit is contained in:
李贵强 2024-12-19 14:42:09 +08:00
parent 052593a8e3
commit 0d894af3da
1 changed files with 5 additions and 4 deletions

View File

@ -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);
}
}