fix:保存时,按照 客户所在国 +买方英文名称+类型+信保限额申请 (4个字段,以空格间隔,拼接生成)
This commit is contained in:
parent
cc363d3e8d
commit
e3fa18f4e5
@ -44,7 +44,7 @@ public class CsrCreditLineSaveOp extends AbstractOperationServicePlugIn {
|
||||
*/
|
||||
private void genCreditTitle(DynamicObject dataEntity) {
|
||||
// 客户所在国
|
||||
String customercountry = dataEntity.getString("yem_customercountry");
|
||||
DynamicObject customercountry = dataEntity.getDynamicObject("yem_arrivalofgoods");
|
||||
// 买方英文名称
|
||||
DynamicObject customer = dataEntity.getDynamicObject("yem_customer");
|
||||
if (customer == null) {
|
||||
@ -56,7 +56,7 @@ public class CsrCreditLineSaveOp extends AbstractOperationServicePlugIn {
|
||||
// 类型
|
||||
String type = dataEntity.getString("yem_type");
|
||||
if (YEM.isNotEmpty(customercountry) && YEM.isNotEmpty(customerName) && YEM.isNotEmpty(type)) {
|
||||
dataEntity.set("yem_credittitle", customercountry + " " + customerName + " " + extracted(dataEntity, "yem_type") + " " + "信保限额申请");
|
||||
dataEntity.set("yem_credittitle", customercountry.getString("name") + " " + customerName + " " + extracted(dataEntity, "yem_type") + " " + "信保限额申请");
|
||||
} else {
|
||||
dataEntity.set("yem_credittitle", null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user