From ab33c86571fb15516aab7960d123bfc34c291bc9 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期二, 12 十一月 2024 15:13:54 +0800 Subject: [PATCH] 调整语法不兼容 --- src/main/resources/mapper/PwrdevDataHistoryMapper.xml | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/PwrdevDataHistoryMapper.xml b/src/main/resources/mapper/PwrdevDataHistoryMapper.xml index 65b53a7..62f5722 100644 --- a/src/main/resources/mapper/PwrdevDataHistoryMapper.xml +++ b/src/main/resources/mapper/PwrdevDataHistoryMapper.xml @@ -4,7 +4,11 @@ <select id="getTableNameList" resultType="java.lang.String"> - select TABLE_NAME from information_schema.TABLES t where t.TABLE_SCHEMA ='db_pwrdev_data_history' and t.TABLE_NAME like CONCAT('%',#{deviceIdEnd},'%') +<!-- select TABLE_NAME from information_schema.TABLES t where t.TABLE_SCHEMA ='db_pwrdev_data_history' and t.TABLE_NAME like CONCAT('%',#{deviceIdEnd},'%')--> + select + table_name + from SYS.USER_TABLES + where TABLE_NAME like #{deviceIdEnd} limit 1 </select> <!--<select id="getGtStartTime" resultType="com.whyc.pojo.PwrdevDataHistory"> select * from db_pwrdev_data_history.${tableName} where record_time>=#{startTime} -- Gitblit v1.9.1