shjung преди 2 години
родител
ревизия
42f51df3c3
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/main/java/com/its/op/service/its/scrs/ScFileDownloadService.java

+ 4 - 4
src/main/java/com/its/op/service/its/scrs/ScFileDownloadService.java

@@ -363,8 +363,8 @@ public class ScFileDownloadService {
 
         StringUtils.subString(fromDt, 10);
         init();
-        String fileName = "IMGN_DTCT_RAW_CLCT_" + StringUtils.subString(fromDt, 10) + "_" + StringUtils.subString(toDt, 10) + this.csvFileExtension;
-        String createFileName = this.createFilePath + "IMGN_DTCT_RAW_CLCT_" + StringUtils.subString(fromDt, 10) + "_" + StringUtils.subString(toDt, 10) + "_" + (System.currentTimeMillis() / 1000) + this.csvFileExtension;
+        String fileName = "IMGN_DTCT_RAW_CLCT_" + StringUtils.subString(fromDt, 12) + "_" + StringUtils.subString(toDt, 12) + this.csvFileExtension;
+        String createFileName = this.createFilePath + "IMGN_DTCT_RAW_CLCT_" + StringUtils.subString(fromDt, 12) + "_" + StringUtils.subString(toDt, 12) + "_" + (System.currentTimeMillis() / 1000) + this.csvFileExtension;
         Path fullFilePath = Paths.get(this.systemDir, createFileName);
 
         String[] csvHeader = {"CLCT_DT",
@@ -441,8 +441,8 @@ public class ScFileDownloadService {
     public ResponseEntity<Object> downloadAcrdHhStat(HttpServletRequest request, HttpServletResponse response, String fromDt, String toDt) {
 
         init();
-        String fileName = "ACRD_HH_STAT_" + StringUtils.subString(fromDt, 10) + "_" + StringUtils.subString(toDt, 10) + this.csvFileExtension;
-        String createFileName = this.createFilePath + "ACRD_HH_STAT_" + StringUtils.subString(fromDt, 10) + "_" + StringUtils.subString(toDt, 10) + "_" + (System.currentTimeMillis() / 1000) + this.csvFileExtension;
+        String fileName = "ACRD_HH_STAT_" + StringUtils.subString(fromDt, 12) + "_" + StringUtils.subString(toDt, 12) + this.csvFileExtension;
+        String createFileName = this.createFilePath + "ACRD_HH_STAT_" + StringUtils.subString(fromDt, 12) + "_" + StringUtils.subString(toDt, 12) + "_" + (System.currentTimeMillis() / 1000) + this.csvFileExtension;
         Path fullFilePath = Paths.get(this.systemDir, createFileName);
 
         String[] csvHeader = {"CLCT_DT",