Refactor: status to statuses using mybatis
Dec 22, 2024 · 1 min read · Before: <if test="status == 0"> and t.status = 0 and t.status1 = 1 </if> <if test="status == 1"> and t.status = 0 and t.status2 = 2 </if> <if test ="status != 2"> and t.status2 != 2 </if> After: <if test="statuses != null and statuses.size() >...
Join discussion