package cn.teammodel.utils; import cn.teammodel.model.entity.school.Semester; import java.time.LocalDate; import java.util.List; /** * 学校中年级,学年,日期相关的工具类 * @author winter * @create 2023-11-28 10:15 */ public class SchoolDateUtil { /** * 通过当前时间与学校的学期安排获取当前的学年 * 学校学期: *
     * "semesters": [
     *         {
     *           "name": "下学期",
     *           "start": 0,
     *           "month": 3,
     *           "day": 1,
     *           "id": "2"
     *         },
     *         {
     *           "name": "上学期",
     *           "start": 1,
     *           "month": 9,
     *           "day": 1,
     *           "id": "1"
     *         }
     *         
    */
    public static String getSemesterByNow(List semesters, LocalDate date) {
        return "";
    }

}