Преглед изворни кода

fix: /info/export default date from a year start

dengjia пре 4 недеља
родитељ
комит
7a2446791d

+ 1 - 2
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/pkg/WmScorePackageControllerV2.java

@@ -69,8 +69,7 @@ public class WmScorePackageControllerV2 {
       endDate = today;
     }
     if(startDate == null) {
-      // startDate = LocalDate.of(today.getYear(), (today.getMonthValue() - 1) / 3 * 3 + 1, 1);  // first day of Quarter
-      startDate = today.minusMonths(12); // temporary solution
+      startDate = LocalDate.of(today.getYear(),  1, 1);  // first day of Year
     }
 
     return packageManager.exportPkgInfo(startDate, endDate);