Mybatis bind标签的使用
以一个分页接口来讲解
dao层
public page(@Param("index")int index, @Param("size")int size,
@Param("size")int typeId);
<select id="page " resultMap="要返回的类型 ">
select * from goods
<where>
<if requred="typeId > 0">
and ty
原创
2022-02-23 10:35:00 ·
388 阅读 ·
0 评论