<if test="startTime != null and startTime !=''"> AND lTime >= #{startTime} </if> <if test="endTime != null and endTime !=''"> AND lTime <= #{endTime} </if>