<select id="getIsExistTime" resultType="java.util.Map" statementType="STATEMENT">
select * from ${tableName} where data_tm like concat(concat('%', '${time}'),'%') limit 1
</select>
参考网址:select、from关键字后使用动态的字段与表名实现动态查询_mysql from 后面动态表名_多余丿的博客-CSDN博客