From f0b64b6b252d34983468688db2a2bc02585db2cb Mon Sep 17 00:00:00 2001 From: huangjinyan Date: Mon, 26 Feb 2024 18:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E5=BA=93/?= =?UTF-8?q?=E8=AF=BA=E5=94=AF=E8=B5=9ECRM=E9=A1=B9=E7=9B=AE/CRM=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8B=86=E8=A7=A3=E5=88=86=E6=9E=90/=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96=E7=BB=84=E4=BB=B6.md=20updated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CRM模块拆解分析/国际化组件.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md b/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md index c3f4ff5..3d2d119 100644 --- a/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md +++ b/项目管理库/诺唯赞CRM项目/CRM模块拆解分析/国际化组件.md @@ -101,11 +101,19 @@ ![输入图片说明](/imgs/2024-02-26/cnSNuRM7QVSsljxS.png) #### 后端接入: 输入图片说明 + ``` java -MessageSendUtil.send(receiveStaffCode, I18nUtils.getTitle(ProductI18nConstant.PRODUCT_GIFT_SEND_NOTICE), +MessageSendUtil.send(receiveStaffCode, I18nUtils.getTitle("product.gift_send_notice"), CommonConstant.MESSAGE_TYPE_QYWX, I18nUtils.getTitleFormat(ProductI18nConstant.PRODUCT_GIFT_AUDIT_MSG, stockingApply.getCreateName()), CommonConstant.MESSAGE_CREATEBY_CRM, UserUtils.getTenantId(), stockingApply.getApplyCode()); ``` +getTitle: +``` java +public static String getTitle(String code) { + International international = getByCode(code, "back"); + return ObjectUtil.isNull(international) ? code : international.getName(); +} +``` 请求前端接口:**GET** /crm-internation/international/findLangPackage header: tenantid:MID 参数: type:back ![输入图片说明](/imgs/2024-02-26/t5WiMJ7apx7JQy6B.png) @@ -117,8 +125,8 @@ MessageSendUtil.send(receiveStaffCode, I18nUtils.getTitle(ProductI18nConstant.PR ![输入图片说明](/imgs/2024-02-26/t5WiMJ7apx7JQy6B.png) \ No newline at end of file