List<LogBO> listUserTenantLogs(LogQuery logQuery);
<select id="listUserTenantLogs">
SELECT * FROM t_user
<where>
<if test="code != null and code != ''">
AND code = #{code}
</if>
</where>
</select>
List<LogBO> listUserTenantLogs(@Param("logQuery") LogQuery logQuery);
<select id="listUserTenantLogs">
SELECT * FROM t_user
<where>
<if test="logQuery.code != null and logQuery.code != ''">
AND code = #{logQuery.code}
</if>
</where>
</select>
使用注解时,XML 必须添加对应的注解 value.xxx 才行?