Explorar el Código

负荷率利用小时路径

xushili hace 2 años
padre
commit
7f2c88468b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/main/java/com/gyee/frame/model/config/FilePathConfig.java

+ 2 - 1
src/main/java/com/gyee/frame/model/config/FilePathConfig.java

@@ -19,7 +19,8 @@ public class FilePathConfig {
     public static String getDataPath() {
         if(dataPath==null){
             getFilePath();
-            dataPath = filePath.substring(0, filePath.lastIndexOf("\\"));
+            //dataPath = filePath.substring(0, filePath.lastIndexOf("\\"));
+            dataPath = filePath+"\\data";
             File file = new File(dataPath + "\\光伏逆变器负荷率利用小时计算");
             if(!file.exists()) file.mkdir();
         }