add getById, fix getIdByParams in PendingActionUtils