综合管理模块完成
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
15683799673
2025-06-28 22:48:11 +08:00
parent 873cf303c2
commit 6b1e9253af
30 changed files with 193 additions and 145 deletions

View File

@@ -1,11 +1,11 @@
package org.dromara.common.translation.core.impl;
import lombok.AllArgsConstructor;
import org.dromara.common.core.service.DictService;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.translation.annotation.TranslationType;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.common.translation.core.TranslationInterface;
import lombok.AllArgsConstructor;
/**
* 字典翻译实现
@@ -20,7 +20,7 @@ public class DictTypeTranslationImpl implements TranslationInterface<String> {
@Override
public String translation(Object key, String other) {
if (key instanceof String && StringUtils.isNotBlank(other)) {
if (key != null && StringUtils.isNotBlank(other)) {
return dictService.getDictLabel(other, key.toString());
}
return null;