|
|
@@ -17,12 +17,15 @@ import com.siwei.apply.service.NodeLandService;
|
|
|
import com.siwei.apply.service.ProjectService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
+import org.apache.commons.io.FileUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Paths;
|
|
|
import java.util.*;
|
|
|
@@ -373,9 +376,17 @@ public class ProjectImpl implements ProjectService {
|
|
|
return currentProjectWorkflow;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ @Override
|
|
|
+ public JSONArray getResourceData() throws IOException {
|
|
|
+ java.net.URL fileURL = this.getClass().getResource("/one_code_index_v1.json");
|
|
|
+ //String fileName = "classpath:reportConfig.txt";
|
|
|
+ String fileName = fileURL.getPath();
|
|
|
+ String configStr = FileUtils.readFileToString(new File(fileName), StandardCharsets.UTF_8);
|
|
|
+ JSONArray aa = JSON.parseArray(configStr);
|
|
|
+ configStr = aa.toJSONString();
|
|
|
+ log.info("------------"+configStr);
|
|
|
+ return aa;
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|