优化推送OA供应商报错

This commit is contained in:
weiyunlong 2024-12-09 16:52:10 +08:00
parent bcdb9bd311
commit 4c90cc0883
1 changed files with 7 additions and 6 deletions

View File

@ -119,12 +119,13 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn {
// "开户行名称:例如招商银行股份有限公司上海分行外高桥支行龙江支行" // "开户行名称:例如招商银行股份有限公司上海分行外高桥支行龙江支行"
bank = BusinessDataServiceHelper.loadSingle(bank.getPkValue(), "bd_bebank"); 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"); custBankaccBody.put("city", bank.getString("citytxt"));//"城市
if (null != city) { // DynamicObject city = bank.getDynamicObject("city");
//"城市" // if (null != city) {
city = BusinessDataServiceHelper.loadSingle(city.getPkValue(), "bd_admindivision"); // //"城市"
custBankaccBody.put("city", city.getString("name")); // city = BusinessDataServiceHelper.loadSingle(city.getPkValue(), "bd_admindivision");
} // custBankaccBody.put("city", city.getString("name"));
// }
} }
custBankaccBody.put("accname", entry_bank.getString("accountname"));//"银行账号名称", custBankaccBody.put("accname", entry_bank.getString("accountname"));//"银行账号名称",
custBankaccBody.put("pk_banktype", "");//todo:"银行类别:例如招商银行", custBankaccBody.put("pk_banktype", "");//todo:"银行类别:例如招商银行",