From 631dbc2c329e11c97d30ad668b124ca88f9f9570 Mon Sep 17 00:00:00 2001 From: Qiuyi LI Date: Thu, 7 Dec 2023 12:25:55 +0100 Subject: [PATCH] Add method getMabangName to return special name or zh name if no special name --- .../java/org/jeecg/modules/business/entity/Country.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/Country.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/Country.java index 13bd677bc..d2ec108c5 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/Country.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/Country.java @@ -17,4 +17,11 @@ public class Country { this.code = code; this.specialName = specialName; } + + public String getMabangName() { + if (specialName == null || specialName.isEmpty()) { + return nameEn; + } + return specialName; + } }