From 47a6e6f2c095ca6c964debdc59d11cca5c5f80bb Mon Sep 17 00:00:00 2001 From: wangli <274027703@qq.com> Date: Thu, 20 Feb 2025 10:34:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(REQ-3300)=20-=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=A4=84=E7=90=86=E6=B7=BB=E5=8A=A0=E7=BE=A4=E6=88=90=E5=91=98?= =?UTF-8?q?=E7=9A=84=E4=BA=8B=E4=BB=B6=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/mq/listener/im/ImGroupsCreatedEventHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/mq/listener/im/ImGroupsCreatedEventHandler.java b/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/mq/listener/im/ImGroupsCreatedEventHandler.java index 7bfc6075..9c854122 100644 --- a/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/mq/listener/im/ImGroupsCreatedEventHandler.java +++ b/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/mq/listener/im/ImGroupsCreatedEventHandler.java @@ -32,6 +32,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.google.common.collect.Sets; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.groovy.util.Maps; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; @@ -132,7 +133,7 @@ public class ImGroupsCreatedEventHandler implements EventHandler, InitializingBe "reason", visa.getReason(), "initiatorName", profile.getRealName(), "initiatorUnitName", unitInfo.getName(), - "visaType", VisaTypeEnum.valueOf(visaType).getDesc(), + "visaType", StringUtils.isNotBlank(visaType) ? VisaTypeEnum.valueOfCode(visaType).getDesc() : "", "amountChange", VisaHelper.buildChangeAmount(visa.getAmountChange()) ))); msgCenterGateway.sendCardToCroup(cardRequest);