去除长者标签多余资源逻辑处理代码
This commit is contained in:
parent
9d0cf09725
commit
64f34a21ae
|
|
@ -85,28 +85,28 @@ public class ElderTagServiceImpl extends ServiceImpl<ElderTagMapper, ElderTag> i
|
|||
etMQDto.setElderTagList(BeanUtil.copyToList(elderTags, ElderTagAsyncMQDto.class));
|
||||
elderTagMQListener.handleIncremental2( etMQDto);
|
||||
|
||||
String apiAddress = "";
|
||||
//查询源数据平台的接口api地址
|
||||
{
|
||||
//各平台api地址都存在管理系统中 管理系统api地址在系统参数配置中 “ope_open_url”
|
||||
JSONObject opeOpenUrl = sysConfigApi.getByKeyByDS("master", "ope_open_url");
|
||||
String opeApiAddress = opeOpenUrl.getString("configValue");
|
||||
if (opeApiAddress.endsWith("/")) {
|
||||
opeApiAddress = opeApiAddress.substring(0, opeApiAddress.length() - 1);
|
||||
}
|
||||
String bizApiAddress = opeApiAddress + "/api/baseInfo/getOrgApiAddress?orgCode=" + sourceOrgCode;
|
||||
|
||||
try {
|
||||
String res = HttpRequestUtil.doGet(bizApiAddress, HttpRequestUtil.createDefaultHeaders());
|
||||
JSONObject jsonResponse = JSON.parseObject(res);
|
||||
JSONObject result = jsonResponse.getJSONObject("result");
|
||||
apiAddress = result.getString("url");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
elderTagMQListener.handleCreateMedia2(etMQDto, apiAddress);
|
||||
// String apiAddress = "";
|
||||
// //查询源数据平台的接口api地址
|
||||
// {
|
||||
// //各平台api地址都存在管理系统中 管理系统api地址在系统参数配置中 “ope_open_url”
|
||||
// JSONObject opeOpenUrl = sysConfigApi.getByKeyByDS("master", "ope_open_url");
|
||||
// String opeApiAddress = opeOpenUrl.getString("configValue");
|
||||
// if (opeApiAddress.endsWith("/")) {
|
||||
// opeApiAddress = opeApiAddress.substring(0, opeApiAddress.length() - 1);
|
||||
// }
|
||||
// String bizApiAddress = opeApiAddress + "/api/baseInfo/getOrgApiAddress?orgCode=" + sourceOrgCode;
|
||||
//
|
||||
// try {
|
||||
// String res = HttpRequestUtil.doGet(bizApiAddress, HttpRequestUtil.createDefaultHeaders());
|
||||
// JSONObject jsonResponse = JSON.parseObject(res);
|
||||
// JSONObject result = jsonResponse.getJSONObject("result");
|
||||
// apiAddress = result.getString("url");
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// elderTagMQListener.handleCreateMedia2(etMQDto, apiAddress);
|
||||
//给对应业务平台发送消息
|
||||
return etMQDto;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue