finish the post query service logic.