Commit 9fb5d900 by 仲光辉

feat: add sql.

parent 6450aeaf
### 到访人数据查询
### 到访人数据查询
SELECT cc.uuid opportunity_contact_uuid,
cc.NAME opportunity_contact_name,
o.uuid opportunity_uuid,
o.NAME opportunity_name,
cc.phone
FROM company_contacts cc
JOIN opportunity o ON cc.opportunity_uuid = o.uuid AND o.is_delete = 0
WHERE cc.is_delete = 0
AND cc.phone='18516698042'
ORDER BY cc.sort, cc.uuid
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment