#xinfengYin-18# GY103-供应商引入、转正申请流程-05

ht
xinfengYin 3 months ago
parent dff2874902
commit db400ac929

@ -17,15 +17,18 @@ public class CallSrmServices extends BaseBean {
private OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oainputvendor = null; private OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oainputvendor = null;
@Autowired @Autowired
private static ConfigProp configProp; private ConfigProp configProp;
public void setOainputvendor(OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oasrm) { public void setOainputvendor(OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oasrm) {
this.oainputvendor = oasrm; this.oainputvendor = oasrm;
} }
public String[] call() throws RemoteException { public String[] call() throws RemoteException {
// this(configurationContext, Prop.getPropValue("htsrmoasync","gyszznew")); // this(configurationContext, Prop.getPropValue("htsrmoasync","gyszznew"));
String[] rtInfo = new String[3];
try{
logger_a535240a.error(String.valueOf("调用接口------------------------开始")); logger_a535240a.error(String.valueOf("调用接口------------------------开始"));
String url = configProp.getGyszznew(); String url = configProp.getGyszznew();
logger_a535240a.error(String.valueOf("url-----------------------"+ url));
OaSrmVendorPropmtionServiceServiceStub stub = new OaSrmVendorPropmtionServiceServiceStub(url); OaSrmVendorPropmtionServiceServiceStub stub = new OaSrmVendorPropmtionServiceServiceStub(url);
// 设置传入参数 // 设置传入参数
OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE createRequest = new OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE(); OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE createRequest = new OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE();
@ -39,10 +42,13 @@ public class CallSrmServices extends BaseBean {
OaSrmVendorPropmtionServiceServiceStub.OaOutputVendor oaoutvendor = resp.getOA_SRM_VENDOR_PROPMTIONResponse().getOutputTab(); OaSrmVendorPropmtionServiceServiceStub.OaOutputVendor oaoutvendor = resp.getOA_SRM_VENDOR_PROPMTIONResponse().getOutputTab();
// 封装返回 // 封装返回
logger_a535240a.error(oainputvendor.getRequestId() + " result:" + oaoutvendor.getIstat() + " " + oaoutvendor.getSrmsage()); logger_a535240a.error(oainputvendor.getRequestId() + " result:" + oaoutvendor.getIstat() + " " + oaoutvendor.getSrmsage());
String[] rtInfo = new String[3];
rtInfo[0] = oaoutvendor.getRequestId(); rtInfo[0] = oaoutvendor.getRequestId();
rtInfo[1] = oaoutvendor.getIstat(); rtInfo[1] = oaoutvendor.getIstat();
rtInfo[2] = oaoutvendor.getSrmsage(); rtInfo[2] = oaoutvendor.getSrmsage();
}catch(Exception e ){
e.printStackTrace();
logger_a535240a.error(" CallSrmServices Exception " + e );
}
return rtInfo; return rtInfo;
} }
} }

Loading…
Cancel
Save