|
@ -56,7 +56,7 @@ public class FileMgrService { |
|
|
|
|
|
|
|
|
public String storageOptReport(String userid, String projName, Integer projId, String subprojName, OptScanResult optScanResult, Double result, String resultUnit) throws IOException { |
|
|
public String storageOptReport(String userid, String projName, Integer projId, String subprojName, OptScanResult optScanResult, Double result, String resultUnit) throws IOException { |
|
|
File dir = new File(FilePathConstant.FILE_OPT_REPORT_PATH); |
|
|
File dir = new File(FilePathConstant.FILE_OPT_REPORT_PATH); |
|
|
dir.mkdir(); |
|
|
|
|
|
|
|
|
dir.mkdirs(); |
|
|
String fileName = String.format("%s-(%s)-%s-%s.txt", userid, projName, projId, optScanResult.rawData.optType, ZDateUtils.toID(optScanResult.scanDate)); |
|
|
String fileName = String.format("%s-(%s)-%s-%s.txt", userid, projName, projId, optScanResult.rawData.optType, ZDateUtils.toID(optScanResult.scanDate)); |
|
|
String filePath = String.format("%s/%s", FilePathConstant.FILE_OPT_REPORT_PATH, fileName); |
|
|
String filePath = String.format("%s/%s", FilePathConstant.FILE_OPT_REPORT_PATH, fileName); |
|
|
|
|
|
|
|
|