惠享云菜窖
家庭菜窖70001856
70001856
提货编码:20240110163815340236


惠享云菜窖
家庭菜窖70001457
70001457
提货码20240109155151547430
提货密码: 825239
曹路颖

SELECT 
  * 
FROM lpk_giftcard lg 
WHERE lg.code='20240110163815340236'
;
-- 05d52aa8-e9f1-424d-8b86-f4b79a26d19c
SELECT 
  lg.name ,
  lgg.goodsNumber
FROM lpk_giftbag_goods lgg 
LEFT JOIN lpk_goods lg ON lg.sid=lgg.goodsSid
WHERE lgg.giftbagSid='786df8d0-c227-436f-8a6f-7a9b3f08ffe2'
;



select * FROM lpk_customer lc WHERE lc.sid='05d52aa8-e9f1-424d-8b86-f4b79a26d19c'
-- o81zC65-HevUo6HuN2sB7nSBCkDs

select * FROM lpk_customer lc WHERE lc.wxMpOpenid='o81zC65-HevUo6HuN2sB7nSBCkDs'


select * from vegetable_cellar where customerSid='05d52aa8-e9f1-424d-8b86-f4b79a26d19c'



SELECT 
  lc.wxMpOpenid,
  lc.nick,
  lc.mobile,
  lg.name,
  vc.goodsNumber 
from vegetable_cellar vc
LEFT JOIN lpk_customer lc ON lc.sid=vc.customerSid 
LEFT JOIN lpk_goods lg ON lg.sid=vc.goodsSid
WHERE 
 vc.customerSid='05d52aa8-e9f1-424d-8b86-f4b79a26d19c'