增加供应商同步更新插件
This commit is contained in:
parent
0a25d34363
commit
154949a1ec
|
@ -491,6 +491,9 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace {
|
||||||
if (applist.size() > 1) {
|
if (applist.size() > 1) {
|
||||||
throw new BaseSystemException("根据formID:" + formAppId + "查询出多条数据");
|
throw new BaseSystemException("根据formID:" + formAppId + "查询出多条数据");
|
||||||
}
|
}
|
||||||
|
if (applist.size() == 0 ) {
|
||||||
|
throw new BaseSystemException("根据formID:" + formAppId + "eventType:"+eventType+"未查询到API配置");
|
||||||
|
}
|
||||||
SysApplicationApiEntity sysApp = applist.get(0);
|
SysApplicationApiEntity sysApp = applist.get(0);
|
||||||
JSONArray headerArray = JSONArray.parseArray(sysApp.getHeaderIn());
|
JSONArray headerArray = JSONArray.parseArray(sysApp.getHeaderIn());
|
||||||
if (null != headerArray && headerArray.size() > 0) {
|
if (null != headerArray && headerArray.size() > 0) {
|
||||||
|
@ -516,7 +519,11 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace {
|
||||||
throw new BaseSystemException("根据ID获取插件错误!请传入正确的 pluginId");
|
throw new BaseSystemException("根据ID获取插件错误!请传入正确的 pluginId");
|
||||||
} else {
|
} else {
|
||||||
//执行业务逻辑代码
|
//执行业务逻辑代码
|
||||||
result = pluginBaseEntity.executeBusiness(JSON.parseObject(jsonStr));
|
JSONObject reqJson = new JSONObject();
|
||||||
|
reqJson.put("jsonStr",jsonStr);
|
||||||
|
reqJson.put("formAppId",formAppId);
|
||||||
|
reqJson.put("eventType",eventType);
|
||||||
|
result = pluginBaseEntity.executeBusiness(reqJson);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue