浏览代码

更改查询bug

gaoyu 2 年之前
父节点
当前提交
ad22e5ca4e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/persagy/apm/dmpalarm/service/impl/AlarmRecordServiceImpl.java

+ 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()+"'))") ;
                 }
             }