2022-03-01 16:45:57 +08:00
|
|
|
package com.engine.salary.util;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @description: 多语言工具类
|
|
|
|
|
* @author: xiajun
|
|
|
|
|
* @modified By: xiajun
|
|
|
|
|
* @date: Created in 10/19/21 4:18 PM
|
|
|
|
|
* @version:v1.0
|
|
|
|
|
*/
|
|
|
|
|
public class SalaryI18nUtil {
|
|
|
|
|
|
2022-03-16 14:29:02 +08:00
|
|
|
/**
|
|
|
|
|
* 获取多语言信息
|
|
|
|
|
*
|
|
|
|
|
* @param labelId 多语言对应的labelId
|
|
|
|
|
* @param defaultLabel 默认中文
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static String getI18nLabel(int labelId, String defaultLabel) {
|
|
|
|
|
return defaultLabel;
|
|
|
|
|
}
|
2022-03-01 16:45:57 +08:00
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * 获取多语言信息
|
|
|
|
|
// *
|
|
|
|
|
// * @param tenantKey 租户key
|
|
|
|
|
// * @param employeeId 人员id
|
|
|
|
|
// * @param labelId 多语言对应的labelId
|
|
|
|
|
// * @param defaultLabel 默认中文
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// public static String getI18nLabel(String tenantKey, Long employeeId, int labelId, String defaultLabel) {
|
|
|
|
|
// int languageId = I18nLanguageUtil.getLangId(employeeId);
|
|
|
|
|
// return SystemEnv.getHtmlLabelName(labelId, languageId, tenantKey, defaultLabel);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * 获取多语言信息
|
|
|
|
|
// *
|
|
|
|
|
// * @param simpleEmployee 租户信息
|
|
|
|
|
// * @param labelId 多语言对应的labelId
|
|
|
|
|
// * @param defaultLabel 默认中文
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// public static String getI18nLabel(SimpleEmployee simpleEmployee, int labelId, String defaultLabel) {
|
|
|
|
|
// int languageId = I18nLanguageUtil.getLangId(simpleEmployee.getEmployeeId());
|
|
|
|
|
// return SystemEnv.getHtmlLabelName(labelId, languageId, simpleEmployee.getTenantKey(), defaultLabel);
|
|
|
|
|
// }
|
|
|
|
|
}
|