手动加上 手动加上<if test="limit != null"> <if test="offset != null"> limit ${offset} , ${limit} </if> <if test="offset == null"> limit ${limit} </if></if>