add getById in BaseMapper

Change-Id: Ib32b0842911753a4de91c27dc66c36547f45905b