RRRoger
2021-06-01 09:24:16 +08:00
帮楼下大佬格式化一下~~
```sql
SELECT r.uuid AS recruituuid,
r.project_name AS projectname,
r.work_type AS worktype,
r.user_name AS name,
r.certification_status AS certificationstatus,
r.team_status AS teamstatus,
r.user_phone AS userphone,
r.recruit_num AS invite,
r.price AS price,
r.description AS description,
r.detail_site AS projectaddress,
r.create_time AS createtime,
r.top_flag AS topflag,
r.release_type AS releasetype,
r.bind_phone AS bindphone,
r.is_help_wanted AS ishelpwanted,
r.modify_time AS modifytime
FROM recruit r
WHERE r.del_flag = 0
ORDER BY r.top_flag DESC ,
(CASE r.is_help_wanted
WHEN '1' THEN 0
ELSE 1
END) ASC,
locate('深圳市', detail_site) DESC,
locate('广东', detail_site) DESC,
r.create_time DESC LIMIT 100
```