添加功能
This commit is contained in:
@@ -407,7 +407,8 @@ class AppletAttendance(Controller):
|
||||
day = start_date_obj + timedelta(days=i)
|
||||
# 只添加年份和月份匹配的日期
|
||||
if day.year == target_year and day.month == target_month:
|
||||
holidays_list.append(day.isoformat())
|
||||
formatted_date = f"{day.year}年{day.month}月{day.day}日"
|
||||
holidays_list.append(formatted_date)
|
||||
|
||||
# 处理调班补班
|
||||
if leaves.shift_replacement_day:
|
||||
@@ -419,7 +420,7 @@ class AppletAttendance(Controller):
|
||||
|
||||
# 只添加月份匹配的日期
|
||||
if month == target_month:
|
||||
formatted_date = f"{target_year}-{month:02d}-{day:02d}"
|
||||
formatted_date = f"{target_year}年{month}月{day}日"
|
||||
shift_days_list.append(formatted_date)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user