|
|
@@ -121,9 +121,9 @@ 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 + ")");
|
|
|
- while (res.next()) {
|
|
|
- String path = res.getString("fp_path");
|
|
|
+ ResultSet Attach = statement.executeQuery("select fp_path from " + sob + ".filepath where fp_id in (" + attach + ")");
|
|
|
+ while (Attach.next()) {
|
|
|
+ String path = Attach.getString("fp_path");
|
|
|
String substring = path.substring(path.lastIndexOf("."));
|
|
|
File file = new File(path);
|
|
|
if (client != null) {
|