[haiyang] change the find parameter to class and remove a = in sql