优化推送OA供应商报错

This commit is contained in:
weiyunlong 2024-12-09 16:28:06 +08:00
parent 4a610f9796
commit bcdb9bd311
1 changed files with 2 additions and 0 deletions

View File

@ -117,10 +117,12 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn {
DynamicObject bank = entry_bank.getDynamicObject("bank"); DynamicObject bank = entry_bank.getDynamicObject("bank");
if (null != bank) { if (null != bank) {
// "开户行名称:例如招商银行股份有限公司上海分行外高桥支行龙江支行" // "开户行名称:例如招商银行股份有限公司上海分行外高桥支行龙江支行"
bank = BusinessDataServiceHelper.loadSingle(bank.getPkValue(), "bd_bebank");
custBankaccBody.put("pk_bankdoc", bank.getString("name")); custBankaccBody.put("pk_bankdoc", bank.getString("name"));
DynamicObject city = bank.getDynamicObject("city"); DynamicObject city = bank.getDynamicObject("city");
if (null != city) { if (null != city) {
//"城市" //"城市"
city = BusinessDataServiceHelper.loadSingle(city.getPkValue(), "bd_admindivision");
custBankaccBody.put("city", city.getString("name")); custBankaccBody.put("city", city.getString("name"));
} }
} }