From 7666113e060747cce6be99e0deb68485b4283161 Mon Sep 17 00:00:00 2001 From: rk <94314517@qq.com> Date: 星期一, 20 十月 2025 10:38:41 +0800 Subject: [PATCH] 钥匙柜 电信大屏 配置文件 --- server/system_service/src/main/java/com/doumee/core/utils/Constants.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java index 05b8303..e0e5778 100644 --- a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java +++ b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java @@ -1,6 +1,7 @@ package com.doumee.core.utils; +import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; @@ -1461,8 +1462,12 @@ public String getNoteinfo() { return noteinfo; } + } - + public static String strToJson(String key,String val){ + Map<String,Object> map = new HashMap<>(); + map.put(key,val); + return JSONObject.toJSONString(map); } } -- Gitblit v1.9.3