[测评系统]--测评系统核心代码库
linzhijie
2021-04-12 60eb4935e7e1395d8fdfd38bff4c44ef98a34177
优化
2个文件已添加
1个文件已修改
51 ■■■■■ 已修改文件
README.md 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/common/enums/ReportTitle.java 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
tai-ots-framework.iml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
New file
@@ -0,0 +1,4 @@
## TAI_OTS_FRAMEWORK
测评系统核心代码
src/main/java/com/ots/common/enums/ReportTitle.java
New file
@@ -0,0 +1,44 @@
package com.ots.common.enums;
/**
 * @author zhijie
 * @date 2021/03/19
 * @Description: 报告邮件标题类
 */
public enum ReportTitle {
    ZH("姓名","Chinese", "%s的%s测评报告"),
    US("Name","English", "%s's %s Report"),
    TAI("ชื่อ","Thai", "รายงานการประเมิน %s ของ %s"),
    ;
    public final String field;
    public final String langType;
    public final String reportTitle;
    ReportTitle(String field,String langType, String reportTitle) {
        this.field = field;
        this.langType = langType;
        this.reportTitle = reportTitle;
    }
    public static String getReportTitle(String langType) {
        ReportTitle[] types = ReportTitle.values();
        for (ReportTitle type : types) {
            if (type.langType.equals(langType)) {
                return type.reportTitle;
            }
        }
        return "";
    }
    public static String getField(String langType) {
        ReportTitle[] types = ReportTitle.values();
        for (ReportTitle type : types) {
            if (type.langType.equals(langType)) {
                return type.field;
            }
        }
        return "";
    }
}
tai-ots-framework.iml
@@ -20,6 +20,9 @@
    </content>
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
    <orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
    <orderEntry type="library" name="Maven: xml-apis:xml-apis:1.4.01" level="project" />
    <orderEntry type="library" name="Maven: jaxen:jaxen:1.1.6" level="project" />
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.1.1.RELEASE" level="project" />
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.1.1.RELEASE" level="project" />
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.1.1.RELEASE" level="project" />