[测评系统]--测评系统核心代码库
zhijie
2021-06-15 93ad816412d96639a27228d629f1771757189e82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.ots.project.tool.report.RuilinMAQ.condition;
import com.ots.common.enums.LangTypeEnum;
import com.ots.common.utils.StringUtils;
import com.ots.project.exam.domain.TLibraryCode;
import com.ots.project.tool.report.MAQ.base.BaseCondition;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import java.util.Map;
import java.util.Objects;
@Slf4j
@Getter
@Setter
public class SimpleMessageDefine extends BaseCondition {
    private String name;
    public SimpleMessageDefine(String codeId) {
        this.name = codeId;
    }
    @Override
    public TLibraryCode calculate(Map<String, String> map, LangTypeEnum langType) {
        TLibraryCode library = getMaqReportLibrary(map, name, langType);
        if (Objects.nonNull(library)) {
            String langTypeContext = library.getLangTypeContext(langType);
            if (StringUtils.isNotBlank(langTypeContext)) {
                library.setLangTypeContext("●  " + langTypeContext, langType);
            }
        }
        return library;
    }
    @Override
    public Map<String, String> getMAQwaterDropsImages() {
        return null;
    }
}