Green’s Dictionary of Slang

greengrocer n.

[play on legit. bumboating, selling provisions to ships and bum n.1 (2)]

a prostitute.

[UK]Harris’s List of Covent-Garden Ladies 51: She has been at Portsmouth in the laudable calling of bum-boating, more politely stiled a green-grocer.
[UK]Morn. Post (London) 30 Oct. 4/1: The ‘Ladies’ [...] consisted of [...] some dozen bakers’ qwives (reckoning thirteen to the dozen — but no reflections!) green ‘grocers’ and publicans’ wives.