Big problem on all 3 lines here.  You cannot set a Integer to string like this
Use
Integer.toString(ord.getId()) etc on all 3

And the bigger problem is, we don't have time created in order