MyBatis中mapper的if,where,set等標籤的用法

if---- 基本都是用來判斷值是否爲空 <if test="userCustom != null"> <if test="userCustom.username != null and userCustom.username != ''"><!-- 注意and不能大寫 --> and username = #{userCustom.username}
相關文章
相關標籤/搜索