hoge66的专栏

-----------------------看到专栏,偷着笑!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

mybatis 中sql语句传递多个参数

Posted on 2017-01-06 00:31  hehoge  阅读(712)  评论(0编辑  收藏  举报

Available parameters are [2, 1, 0, param1, param2, param3]

<select id="loginByTeacher" parameterType="String" resultType="User">

    SELECT * FROM `user` WHERE LoginID=#{0} and LoginPwd=#{1} AND Role=2
 </select>