mapper的一些标签用法

mapper的一些标签用法:

sql和include;
sql标签里面定义代码片段,include使用指定的代码片段。

点击查看代码
	<sql id="select">select * from</sql>
	<select> <include rdfid="select" user></include></select>

if的使用

<if text="userName != null and userNmae != '' ">
	user_name = #{userName}
</if>

whern和if

set和if

foreach标签的用法 和 @pama的用法:
image
image

posted @ 2022-01-11 12:54  风的指引  阅读(111)  评论(0)    收藏  举报