瀏覽代碼

FTP上传添加datasourceId参数方法

andy 1 年之前
父節點
當前提交
5f2888cbab
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/java/com/scbfkj/uni/process/FTP.java

+ 4 - 0
src/main/java/com/scbfkj/uni/process/FTP.java

@@ -23,6 +23,10 @@ public class FTP {
     private static final int BUFFER_SIZE = 4096;
     private static final DataBase DATA_BASE = new DataBase();
 
+    public Map<String, Object> updateByDataSourceId(String datasourceId,String targetPath, String sourcePath) throws Exception {
+        String config = queryConnectionStr(datasourceId);
+        return update(config,targetPath,sourcePath);
+    }
     public Map<String, Object> update(String connectionConfig, String targetPath, String sourcePath) {
         return null;
     }