Browse Source

更改查询bug

gaoyu 2 years ago
parent
commit
ad22e5ca4e

+ 1 - 1
src/main/java/com/persagy/apm/dmpalarm/service/impl/AlarmRecordServiceImpl.java

@@ -90,7 +90,7 @@ public class AlarmRecordServiceImpl extends BaseServiceImpl<BaseMapper<AlarmReco
     				}else {
     					param.add(entry.getValue());
     				}
-    				String strArray =CharSequenceUtil.join(" \",\"", param);
+    				String strArray =CharSequenceUtil.join("\",\"", param);
                     queryWrapper.apply("JSON_CONTAINS( JSON_ARRAY(\""+strArray+"\"), JSON_ARRAY(supplement->'$."+entry.getKey()+"'))") ;
                 }
             }