多语言支持

pull/260/head
dxfeng 12 months ago
parent c6d82e66ff
commit 165cdfadd3

@ -8,6 +8,7 @@ import com.cloudstore.dev.api.service.Service_DevTable;
import com.cloudstore.eccom.constant.WeaBoolAttr; import com.cloudstore.eccom.constant.WeaBoolAttr;
import com.cloudstore.eccom.pc.table.WeaTableColumn; import com.cloudstore.eccom.pc.table.WeaTableColumn;
import com.cloudstore.eccom.result.WeaResultMsg; import com.cloudstore.eccom.result.WeaResultMsg;
import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service; import com.engine.core.impl.Service;
import com.engine.organization.component.OrganizationWeaTable; import com.engine.organization.component.OrganizationWeaTable;
import com.engine.organization.entity.department.bo.DepartmentBO; import com.engine.organization.entity.department.bo.DepartmentBO;
@ -121,7 +122,7 @@ public class ExportCommonServiceImpl extends Service implements ExportCommonServ
table.setSqlwhere(sqlWhere); table.setSqlwhere(sqlWhere);
List<WeaTableColumn> weaTableColumnList = new ArrayList<>(); List<WeaTableColumn> weaTableColumnList = new ArrayList<>();
List<String> fields = new ArrayList<>(); List<String> fields = new ArrayList<>();
HrmResourceServiceImpl hrmResourceService = new HrmResourceServiceImpl(); HrmResourceServiceImpl hrmResourceService = ServiceUtil.getService(HrmResourceServiceImpl.class,user);
List<SearchConditionGroup> allConditions = hrmResourceService.getAllConditions(); List<SearchConditionGroup> allConditions = hrmResourceService.getAllConditions();
List<String> columnList; List<String> columnList;

@ -26,7 +26,7 @@ public class HrmI18nUtil {
if (labelId < 0) { if (labelId < 0) {
return defaultLabel; return defaultLabel;
} }
String htmlLabelName = SystemEnv.getHtmlLabelName(labelId, labelId); String htmlLabelName = SystemEnv.getHtmlLabelName(labelId, language);
return StringUtils.isNotBlank(htmlLabelName) ? htmlLabelName : defaultLabel; return StringUtils.isNotBlank(htmlLabelName) ? htmlLabelName : defaultLabel;
} }
// //

Loading…
Cancel
Save