add getById, fix getIdByParams and fix MaintenanceHandler
add fields in where
Merge pull request #19 from AmandaAccalai/pending-actions

add getById, fix getIdByParams in PendingActionUtils