Quellcode durchsuchen

fix: 个人执行包、个人任务明细导出数据结束时间边界问题

lixuesong vor 1 Tag
Ursprung
Commit
b3b542c0f3

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

@@ -59,8 +59,8 @@ public class WmScorePackageExportController {
 		}
 
 		if(endDate == null) {
-			// 当月的最后一天
-			endDate = LocalDate.of(startDate.getYear(),  startDate.getMonth(), startDate.lengthOfMonth());
+			// 下月的第一天
+			endDate = LocalDate.of(today.getYear() + 1,  today.getMonth(), 1);
 		}
 
 		return R.ok(scorePackageExportService.asyncExport(user, roles, startDate, endDate));

+ 2 - 2
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/task/WmTaskExportController.java

@@ -59,8 +59,8 @@ public class WmTaskExportController {
 		}
 
 		if(endDate == null) {
-			// 当月的最后一天
-			endDate = LocalDate.of(startDate.getYear(),  startDate.getMonth(), startDate.lengthOfMonth());
+			// 下月的第一天
+			endDate = LocalDate.of(today.getYear() + 1,  today.getMonth(), 1);
 		}
 
 		return R.ok(taskDetailExportService.asyncExport(user, roles, startDate, endDate));