VersionUtil.java 3.21 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");

        //必修  一般高一
        GRADE_MAP.put("REQUIRED_ONE","10");
        GRADE_MAP.put("REQUIRED_TWO","10");
        GRADE_MAP.put("REQUIRED_THREE","10");

        //选修
        GRADE_MAP.put("TAKE_ONE","11");

        //选择性必修   一般高二
        //选择性必修1
        GRADE_MAP.put("TAKE_REQUIRED_ONE","11");
        //选择性必修二
        GRADE_MAP.put("TAKE_REQUIRED_TWO","11");
        //选择性必修三
        GRADE_MAP.put("TAKE_REQUIRED_THREE","11");


        //书籍版本
        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");
        VERSION_MAP.put("POPULARIZE_SCIENCE","kepu");
        VERSION_MAP.put("PEP_A","pep_a");
        VERSION_MAP.put("PEP_B","pep_b");
        VERSION_MAP.put("QINGDAO","QINGDAO");

        //学期
        //全一册
        SCHOOL_YEAR_MAP.put("ALL_BOOKS",5);
        //上学期
        SCHOOL_YEAR_MAP.put("LAST_SEMESTER",1);
        //下学期
        SCHOOL_YEAR_MAP.put("NEXT_SEMESTER",2);
    }
}