MyBatis中的标签和where子句的区别 <select id="selectAll" resultMap="BaseResultMap" parameterType="***"> select <include refid="Base_Column_List"></include> from sys_log <where> <if test="username!=null and username!=''"> and username like concat ('%',#{ username}