Refactor: status to statuses using mybatis
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() >...
crazyrunsnail.hashnode.dev1 min read