【feat】校验ORG配置优化
This commit is contained in:
parent
b4607439a3
commit
b2610842d9
@ -38,6 +38,8 @@ public class OrgConfigServiceImpl extends ServiceImpl<OrgConfigMapper, OrgConfig
|
||||
boolean flag = true;
|
||||
String sourceOrgUrl = null;
|
||||
String targetOrgUrl = null;
|
||||
String uploadUrl = null;
|
||||
String dumpUrl = null;
|
||||
|
||||
try {
|
||||
List<Map<String, Object>> poll = customerMapper.list("code,value","org_config",null);
|
||||
@ -54,6 +56,9 @@ public class OrgConfigServiceImpl extends ServiceImpl<OrgConfigMapper, OrgConfig
|
||||
if ("SOURCE_ORG_PASSWORD".equals(map1.get("code"))) {
|
||||
map.put("password", String.valueOf(map1.get("value")));
|
||||
}
|
||||
if ("FILE_DOWNLOAD_URL".equals(map1.get("code"))) {
|
||||
dumpUrl = (String) map1.get("value");
|
||||
}
|
||||
}
|
||||
|
||||
String username = map.get("username");
|
||||
@ -90,6 +95,9 @@ public class OrgConfigServiceImpl extends ServiceImpl<OrgConfigMapper, OrgConfig
|
||||
if ("TARGET_ORG_PASSWORD".equals(map1.get("code"))) {
|
||||
map.put("password", (String) map1.get("value"));
|
||||
}
|
||||
if ("FILE_UPLOAD_URL".equals(map1.get("code"))) {
|
||||
uploadUrl = (String) map1.get("value");
|
||||
}
|
||||
}
|
||||
|
||||
String username = map.get("username");
|
||||
@ -113,7 +121,8 @@ public class OrgConfigServiceImpl extends ServiceImpl<OrgConfigMapper, OrgConfig
|
||||
|
||||
if (flag){
|
||||
String message = "源ORG与目标ORG连接配置成功!";
|
||||
String format = String.format("ORG连接成功!, \ncause:\n%s , \n源ORG地址:\n%s , \n目标ORG地址:\n%s", message,sourceOrgUrl,targetOrgUrl);
|
||||
String format = String.format("ORG连接成功!, \ncause:\n%s , \n源ORG地址:\n%s , \n目标ORG地址:\n%s ,请检查文件上传下载地址:\n ,文件上传地址:\n%s, 文件下载地址:\n%s",
|
||||
message,sourceOrgUrl,targetOrgUrl,uploadUrl,dumpUrl);
|
||||
EmailUtil.send("DataDump ERROR", format);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user