MyBatis 常用写法:Mapper XML 传入多个参数
先看 Mapper XML 中的写法:
1 | <resultMap id="XxxResultMap" type="com.xxx.xxxx"> |
mapper接口中:
1 | xxx selectXXXX(@Param(value = "id") String id,@Param(value = "type") String type); |
先看 Mapper XML 中的写法:
1 | <resultMap id="XxxResultMap" type="com.xxx.xxxx"> |
mapper接口中:
1 | xxx selectXXXX(@Param(value = "id") String id,@Param(value = "type") String type); |