VersionUtil.java 2.48 KB
package cn.bxe.updatevideo.util;

import cn.bxe.updatevideo.model.TbxXrBook;

import java.util.ArrayList;
import java.util.HashMap;

public class VersionUtil {
    public static HashMap<String,String> SUBJECT_MAP = new HashMap<>();
    public static HashMap<String,String> GRADE_MAP = new HashMap<>();
    public static HashMap<String,String> VERSION_MAP = new HashMap<>();
    public static HashMap<String,Integer> SCHOOL_YEAR_MAP = new HashMap<>();

    static{
        //科目
        SUBJECT_MAP.put("GEOGRAPHY","dili");
        SUBJECT_MAP.put("CHEMISTRY","huaxue");
        SUBJECT_MAP.put("PHYSICS","wuli");
        SUBJECT_MAP.put("BIOLOGY","shengwu");
        SUBJECT_MAP.put("HISTORY","lishi");
        SUBJECT_MAP.put("MORALITY","daode");
        SUBJECT_MAP.put("MATHEMATICS","shuxue");
        SUBJECT_MAP.put("CHINESE","yuwen");
        SUBJECT_MAP.put("ENGLISH","yingyu");

        //年级
        GRADE_MAP.put("FIRST_GRADE","1");
        GRADE_MAP.put("SECOND_GRADE","2");
        GRADE_MAP.put("THIRD_GRADE","3");
        GRADE_MAP.put("FOURTH_GRADE","4");
        GRADE_MAP.put("FIFTH_GRADE","5");
        GRADE_MAP.put("SIXTH_GRADE","6");
        GRADE_MAP.put("GRADE_ONE","7");
        GRADE_MAP.put("GRADE_TWO","8");
        GRADE_MAP.put("GRADE_THREE","9");
        GRADE_MAP.put("SENIOR_ONE","10");

        //书籍版本
        VERSION_MAP.put("CHINA","zhongtu");
        VERSION_MAP.put("LUKE","luke");
        VERSION_MAP.put("BEISHIDA","beishida");
        VERSION_MAP.put("PEP","renjiao");
        VERSION_MAP.put("YUEJIAOHUKE","yuejiaohuke");
        VERSION_MAP.put("YUE_RENMIN","yuerenmin");
        VERSION_MAP.put("XIANG_JIAO","xiangjiao");
        VERSION_MAP.put("YUEJIAOKEXUE","yuejiaokexue");
        VERSION_MAP.put("JIANGSU_EDUCATION_PRESS","sujiaoban");
        VERSION_MAP.put("YUE_JIAO","yuejiao");
        VERSION_MAP.put("JIJIAO_EDITION","jijiao");
        VERSION_MAP.put("XINAN_SHIDA","xishida");
        VERSION_MAP.put("BUBIAN","bubian");
        VERSION_MAP.put("HUJIAOBAN","hujiao");
        VERSION_MAP.put("RENJIAO_PEP","renjiaopep");
        VERSION_MAP.put("RENJIAO_XINQIDIAN","renjiaoxinqidian");
        VERSION_MAP.put("WAI_YAN","waiyan");
        VERSION_MAP.put("XIANG_SHAO","xiangshao");
        VERSION_MAP.put("RENJIAOJINGTONG","renjiaojingtong");
        VERSION_MAP.put("WAI_YAN_TOGETHER","waiyanyiqi");

        //学年
        SCHOOL_YEAR_MAP.put("ALL_BOOKS",5);
        SCHOOL_YEAR_MAP.put("LAST_SEMESTER",1);
        SCHOOL_YEAR_MAP.put("NEXT_SEMESTER",2);
    }
}