ibatis3 动态查询

mapper代码

  <select id="selectRole" parameterType="simpleQuery" resultType="com.cwfan.pojo.TRole"> 
    select ${cols} from ${table} where ${conditions} order by ${cols} 
  </select> 

 参数BEAN及调用方式,参考上一篇文章

 

 

你可能感兴趣的:(bean)