add getWhereString function
Merge pull request #1 from yangruixuan/master

add getWhereString function