解析放假通知生成法定节假日JSON格式文件

解析放假通知生成法定节假日JSON格式文件

    • 获取法定节假日信息
    • 解析
    • 运行结果
    • 灵感

获取法定节假日信息

2024年节假日放假通知

解析

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.Data;

import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

/**
 * date
 */
public class RegxHolidayUtil {

    @Data
    public static class Holiday {

        private String name;

        private List<Date> timeLine;

        private List<Date> leave;

    }

    @Data
    public static class DayJson {

        @JSONField(format = DatePattern.NORM_DATE_PATTERN)
        private Date date;

        // 0工作日 1周末 2节假日
        private int type;

        private String remark;

        public DayJson() {
        }

        public DayJson(Date date, int type, String remark) {
            this.date = date;
            this.type = type;
            this.remark = remark;
        }

        public DayJson(Date date, int type) {
            this.date = date;
            this.type = type;
        }

        public DayJson(Date date) {
            this.date = date;
            this.type = 0;
        }
    }

    private static final String test2023 = "各省、自治区、直辖市人民政府,国务院各部委、各直属机构:\n" +
            "\n" +
            "经国务院批准,现将2023年元旦、春节、清明节、劳动节、端午节、中秋节和国庆节放假调休日期的具体安排通知如下。\n" +
            "\n" +
            "一、元旦:2022年12月31日至2023年1月2日放假调休,共3天。\n" +
            "\n" +
            "二、春节:1月21日至27日放假调休,共7天。1月28日(星期六)、1月29日(星期日)上班。\n" +
            "\n" +
            "三、清明节:4月5日放假,共1天。\n" +
            "\n" +
            "四、劳动节:4月29日至5月3日放假调休,共5天。4月23日(星期日)、5月6日(星期六)上班。\n" +
            "\n" +
            "五、端午节:6月22日至24日放假调休,共3天。6月25日(星期日)上班。\n" +
            "\n" +
            "六、中秋节、国庆节:9月29日至10月6日放假调休,共8天。10月7日(星期六)、10月8日(星期日)上班。\n" +
            "\n" +
            "节假日期间,各地区、各部门要妥善安排好值班和安全、保卫、疫情防控等工作,遇有重大突发事件,要按规定及时报告并妥善处置,确保人民群众祥和平安度过节日假期。";

    private static final String test2024 = "各省、自治区、直辖市人民政府,国务院各部委、各直属机构:\n" +
            "\n" +
            "经国务院批准,现将2024年元旦、春节、清明节、劳动节、端午节、中秋节和国庆节放假调休日期的具体安排通知如下。\n" +
            "\n" +
            "一、元旦:1月1日放假,与周末连休。\n" +
            "\n" +
            "二、春节:2月10日至17日放假调休,共8天。2月4日(星期日)、2月18日(星期日)上班。鼓励各单位结合带薪年休假等制度落实,安排职工在除夕(2月9日)休息。\n" +
            "\n" +
            "三、清明节:4月4日至6日放假调休,共3天。4月7日(星期日)上班。\n" +
            "\n" +
            "四、劳动节:5月1日至5日放假调休,共5天。4月28日(星期日)、5月11日(星期六)上班。\n" +
            "\n" +
            "五、端午节:6月10日放假,与周末连休。\n" +
            "\n" +
            "六、中秋节:9月15日至17日放假调休,共3天。9月14日(星期六)上班。\n" +
            "\n" +
            "七、国庆节:10月1日至7日放假调休,共7天。9月29日(星期日)、10月12日(星期六)上班。\n" +
            "\n" +
            "节假日期间,各地区、各部门要妥善安排好值班和安全、保卫、疫情防控等工作,遇有重大突发事件,要按规定及时报告并妥善处置,确保人民群众祥和平安度过节日假期。";

    // 匹配节假日信息
    private static final String regx = "([一,二,三,四,五,六,七]、).*?(\n)";

    // 匹配时间段
    private static final String regx1 = "([0-9]+年)?[0-9]+月[0-9]+日(至([0-9]+年)?([0-9]+月)?[0-9]+日)?";

    private static final String regx2 = "[0-9]+月[0-9]+日";

    public static void main(String[] args) {
        int year = 2023;
        // 1.利用正则提取放假信息
        Pattern compile = Pattern.compile(regx);
        Matcher matcher = compile.matcher(test2023);
        List<String> holidays = matcherAll(matcher);
        // 解析放假时间
        Pattern compile1 = Pattern.compile(regx1);
        Pattern compile2 = Pattern.compile(regx2);
        // 节假日信息
        List<Holiday> holidayList = new ArrayList<>(20);
        for (String holidayStr : holidays) {
            String[] holidaySplit = holidayStr.split("。");
            String temp = holidaySplit[0];
            // 获取节假日名称
            Holiday holiday = new Holiday();
            String name = temp.substring(2, temp.indexOf(":"));
            holiday.setName(name);
            // 获取节假日起始时间
            String timeLength = temp.substring(temp.indexOf(":") + 1);
            Matcher matcher1 = compile1.matcher(timeLength);
            if (matcher1.find()) {
                String group = matcher1.group();
                if (group.contains("至")) {
                    String[] split = group.split("至");
                    String start = split[0];
                    String end = split[1];
                    DateTime startDate;
                    DateTime endDate;
                    if (start.contains("年")) {
                        startDate = DateUtil.parse(start, DatePattern.CHINESE_DATE_FORMAT);
                        endDate = DateUtil.parse(end, DatePattern.CHINESE_DATE_FORMAT);
                    } else {
                        startDate = DateUtil.parse(year + "年" + start, DatePattern.CHINESE_DATE_FORMAT);
                        if (end.contains("月")) {
                            endDate = DateUtil.parse(year + "年" + end, DatePattern.CHINESE_DATE_FORMAT);
                        } else {
                            endDate = DateUtil.parse(year + "年" + start.substring(0, start.indexOf("月") + 1) + end, DatePattern.CHINESE_DATE_FORMAT);
                        }
                    }
                    // 调休日
                    String xiu = "";
                    if (timeLength.contains("调休")) {
                        Matcher matcher2 = compile2.matcher(holidaySplit[1]);
                        List<String> list = matcherAll(matcher2);
                        xiu = list.toString();
                        List<Date> collect = list.stream().map(s -> DateUtil.parse(year + "年" + s, DatePattern.CHINESE_DATE_FORMAT)).collect(Collectors.toList());
                        holiday.setLeave(collect);
                    }
                    // 时间
                    List<Date> timeLine = new ArrayList<>();
                    Date tempDate = startDate;
                    while (DateUtil.isSameDay(tempDate, endDate) || tempDate.before(endDate)) {
                        timeLine.add(tempDate);
                        tempDate = DateUtil.offsetDay(tempDate, 1);
                    }
                    holiday.setTimeLine(timeLine);
                    // System.out.println(name + "放假时间:" + group + ", 共" + (DateUtil.between(startDate, endDate, DateUnit.DAY) + 1) + "天, 调休" + xiu);
                } else {
                    List<Date> timeLine = new ArrayList<>();
                    timeLine.add(DateUtil.parse(year + "年" + group, DatePattern.CHINESE_DATE_FORMAT));
                    holiday.setTimeLine(timeLine);
                    // System.out.println(name + "放假时间:" + group + ", 共1天");
                }
            }
            holidayList.add(holiday);
        }
        String s = buildJson(holidayList, year);
        System.out.println("s = " + s);
    }

    private static List<String> matcherAll(Matcher matcher) {
        if (Objects.isNull(matcher)) throw new RuntimeException("不能为空");
        List<String> r = new ArrayList<>();
        int matcherStart = 0;
        while (matcher.find(matcherStart)) {
            // System.out.println(matcher.group());
            r.add(matcher.group());
            matcherStart = matcher.end();
        }
        return r;
    }

    private static String buildJson(List<RegxHolidayUtil.Holiday> holidayList, int year) {
        Map<Date, DayJson> dayJsonMap = holidayList.stream().map(s -> {
            List<DayJson> collect1 = s.getTimeLine().stream().map(v -> new DayJson(v, 2, s.getName())).collect(Collectors.toList());
            if (CollectionUtil.isNotEmpty(s.getLeave())) {
                List<DayJson> collect2 = s.getLeave().stream().map(v -> new DayJson(v, 0, s.getName() + "调休")).collect(Collectors.toList());
                collect1.addAll(collect2);
            }
            return collect1;
        }).reduce(new ArrayList<>(), (o1, o2) -> {
            o1.addAll(o2);
            return o1;
        }).stream().collect(Collectors.toMap(DayJson::getDate, v -> v));

        // 时间段
        Date dayOfYear = DateUtil.parse(year + "-01-01", DatePattern.NORM_DATE_FORMAT);
        Date endOfYear = DateUtil.parse(year + "-12-31", DatePattern.NORM_DATE_FORMAT);
        List<DayJson> dayJsons = new ArrayList<>(366);
        while (dayOfYear.before(endOfYear) || DateUtil.isSameDay(dayOfYear, endOfYear)) {
            Optional<DayJson> optionalDayJson = Optional.ofNullable(dayJsonMap.get(dayOfYear));
            if (optionalDayJson.isPresent()) {
                dayJsons.add(optionalDayJson.get());
            } else if (DateUtil.isWeekend(dayOfYear)) {
                dayJsons.add(new DayJson(dayOfYear, 1));
            } else {
                dayJsons.add(new DayJson(dayOfYear));
            }
            // 偏移
            dayOfYear = DateUtil.offsetDay(dayOfYear, 1);
        }
        return JSON.toJSONString(dayJsons, SerializerFeature.WriteMapNullValue, SerializerFeature.WriteNullStringAsEmpty, SerializerFeature.WriteDateUseDateFormat);
    }

}


运行结果

[
    {
        "date": "2023-01-01",
        "remark": "元旦",
        "type": 2
    },
    {
        "date": "2023-01-02",
        "remark": "元旦",
        "type": 2
    },
    {
        "date": "2023-01-03",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-04",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-05",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-07",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-01-08",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-01-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-14",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-01-15",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-01-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-21",
        "remark": "春节",
        "type": 2
    },
    {
        "date": "2023-01-22",
        "remark": "春节",
        "type": 2
    },
    {
        "date": "2023-01-23",
        "remark": "春节",
        "type": 2
    },
    {
        "date": "2023-01-24",
        "remark": "春节",
        "type": 2
    },
    {
        "date": "2023-01-25",
        "remark": "春节",
        "type": 2
    },
    {
        "date": "2023-01-26",
        "remark": "春节",
        "type": 2
    },
    {
        "date": "2023-01-27",
        "remark": "春节",
        "type": 2
    },
    {
        "date": "2023-01-28",
        "remark": "春节调休",
        "type": 0
    },
    {
        "date": "2023-01-29",
        "remark": "春节调休",
        "type": 0
    },
    {
        "date": "2023-01-30",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-01-31",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-01",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-02",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-03",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-04",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-05",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-11",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-12",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-18",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-19",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-22",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-23",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-25",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-26",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-02-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-02-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-01",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-02",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-03",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-04",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-05",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-11",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-12",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-18",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-19",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-22",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-23",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-25",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-26",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-03-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-29",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-30",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-03-31",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-01",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-04-02",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-04-03",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-04",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-05",
        "remark": "清明节",
        "type": 2
    },
    {
        "date": "2023-04-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-08",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-04-09",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-04-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-15",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-04-16",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-04-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-22",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-04-23",
        "remark": "劳动节调休",
        "type": 0
    },
    {
        "date": "2023-04-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-25",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-26",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-04-29",
        "remark": "劳动节",
        "type": 2
    },
    {
        "date": "2023-04-30",
        "remark": "劳动节",
        "type": 2
    },
    {
        "date": "2023-05-01",
        "remark": "劳动节",
        "type": 2
    },
    {
        "date": "2023-05-02",
        "remark": "劳动节",
        "type": 2
    },
    {
        "date": "2023-05-03",
        "remark": "劳动节",
        "type": 2
    },
    {
        "date": "2023-05-04",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-05",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-06",
        "remark": "劳动节调休",
        "type": 0
    },
    {
        "date": "2023-05-07",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-05-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-13",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-05-14",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-05-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-20",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-05-21",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-05-22",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-23",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-25",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-26",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-27",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-05-28",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-05-29",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-30",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-05-31",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-01",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-02",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-03",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-06-04",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-06-05",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-10",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-06-11",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-06-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-17",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-06-18",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-06-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-22",
        "remark": "端午节",
        "type": 2
    },
    {
        "date": "2023-06-23",
        "remark": "端午节",
        "type": 2
    },
    {
        "date": "2023-06-24",
        "remark": "端午节",
        "type": 2
    },
    {
        "date": "2023-06-25",
        "remark": "端午节调休",
        "type": 0
    },
    {
        "date": "2023-06-26",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-29",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-06-30",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-01",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-02",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-03",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-04",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-05",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-08",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-09",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-15",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-16",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-22",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-23",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-25",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-26",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-07-29",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-30",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-07-31",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-01",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-02",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-03",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-04",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-05",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-06",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-12",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-13",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-19",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-20",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-22",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-23",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-25",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-26",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-27",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-08-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-29",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-30",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-08-31",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-01",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-02",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-03",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-04",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-05",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-09",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-10",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-16",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-17",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-22",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-23",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-24",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-09-25",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-26",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-09-29",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-09-30",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-10-01",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-10-02",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-10-03",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-10-04",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-10-05",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-10-06",
        "remark": "中秋节、国庆节",
        "type": 2
    },
    {
        "date": "2023-10-07",
        "remark": "中秋节、国庆节调休",
        "type": 0
    },
    {
        "date": "2023-10-08",
        "remark": "中秋节、国庆节调休",
        "type": 0
    },
    {
        "date": "2023-10-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-14",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-10-15",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-10-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-21",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-10-22",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-10-23",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-25",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-26",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-28",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-10-29",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-10-30",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-10-31",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-01",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-02",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-03",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-04",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-05",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-09",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-10",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-11",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-12",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-16",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-17",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-18",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-19",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-22",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-23",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-24",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-25",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-26",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-11-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-29",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-11-30",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-01",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-02",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-03",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-04",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-05",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-06",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-07",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-08",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-09",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-10",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-11",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-12",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-13",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-14",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-15",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-16",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-17",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-18",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-19",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-20",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-21",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-22",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-23",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-24",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-25",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-26",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-27",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-28",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-29",
        "remark": "",
        "type": 0
    },
    {
        "date": "2023-12-30",
        "remark": "",
        "type": 1
    },
    {
        "date": "2023-12-31",
        "remark": "",
        "type": 1
    }
]

灵感

2024年法定节假日JSON格式文件

你可能感兴趣的:(随便写写,json,java)