|
|
@@ -49,6 +49,7 @@ public class FamilyAdminStatsService {
|
|
|
|
|
|
/** 本月(按 created_at 落点)上传的健康报告数;显式 Asia/Shanghai 时区,与 JDBC serverTimezone 对齐。 */
|
|
|
private Long countCurrentMonthReports() {
|
|
|
+ // 与 JDBC serverTimezone 对齐;若 DB 时区配置变更需同步调整
|
|
|
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("Asia/Shanghai"));
|
|
|
cal.set(Calendar.DAY_OF_MONTH, 1);
|
|
|
cal.set(Calendar.HOUR_OF_DAY, 0);
|