فهرست منبع

回签单逻辑判断增加账套条件

koul 3 سال پیش
والد
کامیت
25d629e4d3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/java/com/uas/util/FileUtil.java

+ 1 - 1
src/main/java/com/uas/util/FileUtil.java

@@ -88,7 +88,6 @@ public class FileUtil {
 	public static Boolean fileUp(Statement statement, MultipartFile file, String sob){
 		boolean result = false;
 		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-		String path = saveFile(file, "FTP");
 		String filename = file.getOriginalFilename().replaceAll(",", ",");
         String originalFilename = file.getOriginalFilename();
 		int size = (int) file.getSize();
@@ -98,6 +97,7 @@ public class FileUtil {
                 while (set.next()){
                     int count = set.getInt(1);
                     if (count==0){
+                        String path = saveFile(file, "FTP");
                         ResultSet resultSet = statement.executeQuery("select " + sob + ".EMAILFILEPATH.nextval from dual");
                         if (resultSet.next()) {
                             int id = resultSet.getInt(1);