项目面积bug优化
This commit is contained in:
parent
ebaf2edff2
commit
2d02685f28
|
@ -197,17 +197,7 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic
|
|||
for (int i = 0; i < productEntry.size(); i++) {
|
||||
if (productEntry.get(i).getBigDecimal("productentry_buildingarea").compareTo(BigDecimal.ZERO) == 0) {
|
||||
DynamicObjectCollection collections = productEntry.get(i).getDynamicObjectCollection(SUB_ENTRY);
|
||||
this.setProductEntryValue(productEntry,collections,productEntry.get(0).getLong("id"));
|
||||
//防水面积赋值
|
||||
// BigDecimal waterproofArea = collections.stream()
|
||||
// .filter(collection -> "防水".equals(collection.getString("qeug_fl"))) // 排除 "防水" 类型
|
||||
// .map(collection -> {
|
||||
// BigDecimal hjs = collection.getBigDecimal("qeug_hjs");
|
||||
// BigDecimal tzz = collection.getBigDecimal("qeug_tzz");
|
||||
// return hjs.add(tzz);
|
||||
// })
|
||||
// .reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
// this.getModel().setValue("qeug_waterproofarea",waterproofArea,i);
|
||||
this.setProductEntryValue(productEntry,collections,productEntry.get(i).getLong("id"));
|
||||
//指标信息赋值
|
||||
Long typeId = productEntry.get(i).getLong("productentry_producttype.id");
|
||||
this.updateMetricInfo(collections, typeId, pkValue);
|
||||
|
@ -453,7 +443,8 @@ public class TotalAssignmentPlugin extends AbstractFormPlugin implements RowClic
|
|||
dynamicObject.set("qeug_waterproofarea",waterproofArea);
|
||||
//改建后可出租面积
|
||||
dynamicObject.set("qeug_productentry_saleare",hireArea);
|
||||
break;
|
||||
SaveServiceHelper.update(dynamicObject);
|
||||
|
||||
}
|
||||
}
|
||||
this.getView().updateView("productentry");
|
||||
|
|
Loading…
Reference in New Issue