Mybatis 表名是变量时

写语句时这样就可以了

  <select id="selectTotal"  resultType="java.util.Map" parameterType="java.util.Map" statementType="STATEMENT">
    select SUM(money_amount) as sumM,count(*) as countO  from ${tableName} where the_super_id = '${the_super_id}';
  </select>
原文地址:https://www.cnblogs.com/LiuPan2016/p/8652490.html