rename queryOneByPrimary to queryByPrimary