Explorar el Código

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

lijie hace 3 años
padre
commit
a12483561a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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=",">