瀏覽代碼

fix bug:查询语句当数据库名称有-时报错的bug

lijie 3 年之前
父節點
當前提交
a12483561a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dmp-cloud/dmp-file/src/main/resources/mapper/FileMapper.xml

+ 1 - 1
dmp-cloud/dmp-file/src/main/resources/mapper/FileMapper.xml

@@ -73,7 +73,7 @@
                 JSON_EXTRACT(JSON_ARRAYAGG(JSON_EXTRACT(infos, '$.*.key')),'$[*][*]')
             </otherwise>
         </choose> AS fileKeys
-        FROM ${schema}_${groupCode}.dt_object WHERE
+        FROM `${schema}_${groupCode}`.dt_object WHERE
         <choose>
             <when test="extractInfos!=null and extractInfos.size()>0">
                 <foreach collection="extractInfos" item="item" open="JSON_EXTRACT(infos, '$.*.key'," close=") IS NOT NULL" separator=",">