|
|
@@ -62,8 +62,7 @@ public class UploadAttachImpl implements UploadAttach {
|
|
|
String cd_varchar50_4 = map.get("cd_varchar50_4");
|
|
|
if (cd_varchar50_9!=null) {
|
|
|
cd_varchar50_9 = cd_varchar50_9.replace(";", ",").substring(0, cd_varchar50_9.length() - 1);
|
|
|
- uploadAttachFtp(statement,sob,cd_varchar50_9,client,config.get("ip").toString(),folder,
|
|
|
- cd_varchar50_4,s,cd_id);
|
|
|
+ uploadAttachFtp(statement,sob,cd_varchar50_9,client,config.get("ip").toString(),folder, cd_varchar50_4,s,cd_id);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -122,8 +121,7 @@ public class UploadAttachImpl implements UploadAttach {
|
|
|
}
|
|
|
private void uploadAttachFtp(Statement statement,String sob,String attach,FTPClient client,String ip,
|
|
|
String folder,String attachName,String dateString,String cd_id) throws SQLException {
|
|
|
- ResultSet res = statement.executeQuery("select fp_path from " + sob + ".filepath where " +
|
|
|
- "fp_id in (" + attach + ")");
|
|
|
+ ResultSet res = statement.executeQuery("select fp_path from " + sob + ".filepath where fp_id in (" + attach + ")");
|
|
|
while (res.next()) {
|
|
|
String path = res.getString("fp_path");
|
|
|
String substring = path.substring(path.lastIndexOf("."));
|
|
|
@@ -136,7 +134,6 @@ public class UploadAttachImpl implements UploadAttach {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- res.close();
|
|
|
}
|
|
|
|
|
|
private boolean upload(FTPClient client,String ip,String folder,File file,String name){
|