Эх сурвалжийг харах

FTP上传添加datasourceId参数方法

andy 1 жил өмнө
parent
commit
5f2888cbab

+ 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;
     }