时间:2021-07-01 10:21:17 帮助过:3人阅读
<select id="selectByName" resultMap="ResultMap" parameterType="java.lang.String" >
select * from table1
<if test="_parameter != null">
where _name = #{name}
</if>
</select>
Mybatis动态SQL单一基础类型参数用if标签
标签:sql select highlight style str gpo parameter color where