mybatis 动态sql

  发布时间:2025-11-04 04:12:43   作者:玩站小弟   我要评论
复制<selectid="dynamicIfTest"parameterType="Blog"resultType="Blog"> select*fromt_blog 。
mybatis 动态sql
复制<select id="dynamicIfTest" parameterType="Blog" resultType="Blog">          select * from t_blog where 1 = 1          <if test="title != null">              and title = #{title}          </if>          <if test="content != null">              and content = #{content}          </if>          <if test="owner != null">              and owner = #{owner}          </if>      </select>  1.2.3.4.5.6.7.8.9.10.11.12.
  • Tag:

相关文章

最新评论