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>

 

posted on 2018-03-26 17:46  --LP--  阅读(1333)  评论(0编辑  收藏  举报

导航