提交人:刘森澳

日期:2025/11/13 15:54
内容:担保合同添加默认字段赋值
This commit is contained in:
16358 2025-11-13 15:54:42 +08:00
parent 8f7312b934
commit 839b8716d1
1 changed files with 8 additions and 0 deletions

View File

@ -305,6 +305,14 @@ public class GuaranteeContractFeeDetailPlugin extends AbstractBillPlugIn {
SaveServiceHelper.save(new DynamicObject[]{this.getModel().getDataEntity(true)});
}
}
if ("e_type".equals( name)){
//担保人类型为主组织时默认担保人为资金组织的名称
int rowIndex = e.getChangeSet()[0].getRowIndex();
String e_type = (String) this.getModel().getValue("e_type");
if ("bos_org".equals(e_type)){
this.getModel().setValue("e_ensuretext", ((DynamicObject)this.getModel().getValue("org")).getString("name"),rowIndex);
}
}
}
private BigDecimal getbalance(Date shkd_startdate, Date shkd_enddate, List<DynamicObject> gstatus, BigDecimal fl) {