增加供应商同步更新插件

This commit is contained in:
476474485@qq.com 2025-03-17 10:31:56 +08:00
parent 0a25d34363
commit 154949a1ec
1 changed files with 8 additions and 1 deletions

View File

@ -491,6 +491,9 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace {
if (applist.size() > 1) {
throw new BaseSystemException("根据formID" + formAppId + "查询出多条数据");
}
if (applist.size() == 0 ) {
throw new BaseSystemException("根据formID" + formAppId + "eventType:"+eventType+"未查询到API配置");
}
SysApplicationApiEntity sysApp = applist.get(0);
JSONArray headerArray = JSONArray.parseArray(sysApp.getHeaderIn());
if (null != headerArray && headerArray.size() > 0) {
@ -516,7 +519,11 @@ public class SeeYonInterFaceImpl implements ISeeYonInterFace {
throw new BaseSystemException("根据ID获取插件错误请传入正确的 pluginId");
} 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;
}
}