Commit 234a9b63 authored by 黎博's avatar 黎博

老数据库同步接口返回值修改

parent 26a39d09
......@@ -96,9 +96,9 @@ public class DbSyncController {
public JsonResult dbSyncOld(String dbName, String host, String port, boolean replaceDomain, boolean notDeleteBusinessData, boolean useCache) {
int buildNum = jenkinsService.buildDbSyncJob(dbName, host, port, replaceDomain, notDeleteBusinessData, useCache);
if (buildNum == 0) {
return JsonResult.buildErrorStateResult("数据库同步失败!", false);
return JsonResult.buildErrorStateResult("数据库同步失败!", 0);
} else {
return JsonResult.buildSuccessResult("开始同步数据库!", true);
return JsonResult.buildSuccessResult("开始同步数据库!", buildNum);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment