Commit ed95ce6cf2625ee8e9f2bb252d5137eb5b5203c4
1 parent
4d0e9b963f
Exists in
master
and in
6 other branches
改字段
Showing 1 changed file with 9 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java
View file @
ed95ce6
... | ... | @@ -346,9 +346,17 @@ |
346 | 346 | if(StringUtils.isNotEmpty(id)) { |
347 | 347 | Map<String, Object> tempMap = new HashedMap(); |
348 | 348 | String[] values = id.split("\\[fuck\\]"); |
349 | + if(values.length > 1) { | |
350 | + PlantformConfigModel plantformConfigModel = findPlatFormById(values[1]); | |
351 | + if(plantformConfigModel != null) { | |
352 | + tempMap.put("serchKey", plantformConfigModel.getSerchKey()); | |
353 | + } | |
354 | + } | |
349 | 355 | tempMap.put("id", values.length > 1 ? values[1] : ""); |
350 | 356 | tempMap.put("typeName", ""); |
351 | - tempMap.put("serchKey", values[0]); | |
357 | + if(!tempMap.containsKey("serchKey")) { | |
358 | + tempMap.put("serchKey", values[0]); | |
359 | + } | |
352 | 360 | tempMap.put("value", values[0]); |
353 | 361 | rest.add(tempMap); |
354 | 362 | } |