parent
f0335a90a6
commit
500443fe00
|
@ -161,7 +161,7 @@ public class ApiService {
|
||||||
* 组装推送BIP付款单JSON
|
* 组装推送BIP付款单JSON
|
||||||
*
|
*
|
||||||
* @param dynamic 某个单据的 某条需要推送的数据 注:映射字段必须包含在其中,缺失字段会报错
|
* @param dynamic 某个单据的 某条需要推送的数据 注:映射字段必须包含在其中,缺失字段会报错
|
||||||
* @param systemName 推送系统名称
|
* @param systemName 推送系统标识
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static String paymentSlipsJson(DynamicObject dynamic, String systemName) {
|
public static String paymentSlipsJson(DynamicObject dynamic, String systemName) {
|
||||||
|
@ -169,7 +169,7 @@ public class ApiService {
|
||||||
String billMark = dynamic.getDataEntityType().getName();
|
String billMark = dynamic.getDataEntityType().getName();
|
||||||
|
|
||||||
DynamicObject[] objects = BusinessDataServiceHelper.load("shkd_apimapping", "id,billno," +
|
DynamicObject[] objects = BusinessDataServiceHelper.load("shkd_apimapping", "id,billno," +
|
||||||
"shkd_name,shkd_sourcenumber,shkd_domainname,shkd_token,shkd_url,shkd_systemname," +
|
"shkd_name,shkd_sourcenumber,shkd_domainname,shkd_token,shkd_url," +
|
||||||
"shkd_sourcebill,shkd_targetsystem,entryentity,entryentity.shkd_tarfield,entryentity.shkd_tartier," +
|
"shkd_sourcebill,shkd_targetsystem,entryentity,entryentity.shkd_tarfield,entryentity.shkd_tartier," +
|
||||||
"entryentity.shkd_tartype,entryentity.shkd_parentfield,entryentity.shkd_soufield,entryentity.shkd_defaultdata," +
|
"entryentity.shkd_tartype,entryentity.shkd_parentfield,entryentity.shkd_soufield,entryentity.shkd_defaultdata," +
|
||||||
"entryentity.shkd_required,entryentity.shkd_remarks",
|
"entryentity.shkd_required,entryentity.shkd_remarks",
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("shkd_testapi".equals(itemKey)) {
|
if ("shkd_testapi".equals(itemKey)) {
|
||||||
String responseBody = ApiService.paymentSlipsJson(billObject, dataEntity.getString("shkd_systemname"));
|
String responseBody = ApiService.paymentSlipsJson(billObject, "BIP");
|
||||||
this.getView().showTipNotification("返回结果:" + responseBody);
|
this.getView().showTipNotification("返回结果:" + responseBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue