mybatis 通过实体类进行查询

如果使用实体类进行查询, 不管会不会使用到 主键, 都必须设置主键, 才能查询

 

<select id="selectByAppidAndServerCode" resultMap="BaseResultMap" parameterType="com.ictpaas.pojo.AppidAppkey">
      select * from t_appid_appkey where server_code = #{serverCode} and appkey = #{appkey}
  </select>

 

posted @ 2018-09-23 17:27  huanggy  阅读(1003)  评论(0编辑  收藏  举报