write as follows:
select * from t_user t
where 1 = 1
<if test="id != null and id != """>
and t.id = -sharp{id}
</if>
if id is empty, all users will be found. What should I do?
if the id non-null judgment is made before the call, then the judgment in the mapper file is meaningless, can it be removed?
sincerely ask for advice, thank you ~