whycxzp
2021-05-20 f2e25328e074c47fcad8aca252805380ddcee143
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.whyc.mapper;
 
import com.whyc.pojo.ExperimentPrecondition;
import net.sf.jsqlparser.expression.JdbcNamedParameter;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
public interface CommonMapper {
 
    @Select("select TABLE_NAME FROM information_schema.TABLES where TABLE_SCHEMA= #{dBName} and TABLE_NAME like concat(#{tableLike},'%')")
    List<String> getTableName(String dBName, String tableLike);
 
    @Select("select ${field} as actualValue from ${tableName} where dev_id = #{deviceId}")
    Object getPreconditionStatus(ExperimentPrecondition precondition);
}