MyBatis中mapper的if,where,set等标签的用法

if---- 基本都是用来判断值是否为空 <if test="userCustom != null"> <if test="userCustom.username != null and userCustom.username != ''"><!-- 注意and不能大写 --> and username = #{userCustom.username}
相关文章
相关标签/搜索