提交 2914025a authored 作者: xinjunguo's avatar xinjunguo

--no commit message

上级 b50a2c79
......@@ -36,8 +36,8 @@ import io.swagger.annotations.ApiOperation;
@Api(description = "资源管理-导出任务")
public class DatabaseController {
private String url = "jdbc:mysql://192.168.2.229:3306/zzfszzy-resource";
private String fileurl = "jdbc:mysql://192.168.2.229:3306/zzfszzy-file";
private String url = "jdbc:mysql://localhost:3306/zzfszzy-resource";
private String fileurl = "jdbc:mysql://localhost:3306/zzfszzy-file";
private String userName = "root";
private String password = "root";
......@@ -125,8 +125,8 @@ public class DatabaseController {
// 前置路径
String command = "/usr/bin/mysqldump -f -c -q ";
Process process = null;
String fileinfo = "-uroot -proot -t -h192.168.2.229 zzfszzy-file";
String resource = "-uroot -proot -t -h192.168.2.229 zzfszzy-resource";
String fileinfo = "-uroot -proot -t -h127.0.0.1 zzfszzy-file";
String resource = "-uroot -proot -t -h127.0.0.1 zzfszzy-resource";
// 导出fileinfo库
Set<String> fileList = new HashSet<String>();
if (codes.contains(",")) {
......@@ -358,7 +358,7 @@ public class DatabaseController {
}
if (ids.length() > 0) {
ids = ids.deleteCharAt(ids.length() - 1);
String cmdannex = command + resource + " res_audio_library --where \"id in (" + ids + ")\" > " + path
String cmdannex = command + resource + " res_pdf_library --where \"id in (" + ids + ")\" > " + path
+ "pdf.sql";
process = Runtime.getRuntime().exec(new String[] { "/bin/sh", "-c", cmdannex });
process.waitFor();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论