From ed95ce6cf2625ee8e9f2bb252d5137eb5b5203c4 Mon Sep 17 00:00:00 2001 From: "litao@lymsh.com" Date: Tue, 5 Sep 2017 17:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lyms/platform/operate/web/utils/MongoUtil.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java index 09c29df..566f76a 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java @@ -346,9 +346,17 @@ public class MongoUtil { if(StringUtils.isNotEmpty(id)) { Map tempMap = new HashedMap(); String[] values = id.split("\\[fuck\\]"); + if(values.length > 1) { + PlantformConfigModel plantformConfigModel = findPlatFormById(values[1]); + if(plantformConfigModel != null) { + tempMap.put("serchKey", plantformConfigModel.getSerchKey()); + } + } tempMap.put("id", values.length > 1 ? values[1] : ""); tempMap.put("typeName", ""); - tempMap.put("serchKey", values[0]); + if(!tempMap.containsKey("serchKey")) { + tempMap.put("serchKey", values[0]); + } tempMap.put("value", values[0]); rest.add(tempMap); } -- 1.8.3.1