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 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 getMAQwaterDropsImages() { return null; } }