Browse Source

调整附件上传

koul 4 years ago
parent
commit
bdd2d34b76
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/com/uas/service/Impl/UploadAttachImpl.java

+ 3 - 3
src/main/java/com/uas/service/Impl/UploadAttachImpl.java

@@ -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) {