SHOW FULL COLUMNS FROM `ds_cart` [ RunTime:0.002423s ]
SELECT * FROM `ds_cart` WHERE `buyer_id` IS NULL [ RunTime:0.000767s ]
SHOW FULL COLUMNS FROM `ds_adv` [ RunTime:0.002376s ]
SELECT * FROM `ds_adv` WHERE `ap_id` = 21 AND `adv_enabled` = 1 AND `adv_startdate` < 1728694800 AND `adv_enddate` > 1728694800 ORDER BY `adv_sort` ASC,`adv_id` ASC [ RunTime:0.002233s ]
SHOW FULL COLUMNS FROM `ds_v_goodsclass_forselect` [ RunTime:0.001115s ]
SELECT * FROM `ds_v_goodsclass_forselect` WHERE ( gc_idthree =2002 ) LIMIT 1 [ RunTime:0.002332s ]
SHOW FULL COLUMNS FROM `ds_company_introduction` [ RunTime:0.001059s ]
SELECT COUNT(*) AS think_count FROM ( SELECT count(*) AS think_count FROM `ds_company_introduction` `company` LEFT JOIN `ds_store` `store` ON `store`.`store_id`=`company`.`store_id` LEFT JOIN `ds_goods_global_search` `v` ON `company`.`store_id`=`v`.`store_id` WHERE `v`.`gc_id_3` = '2002' AND `store`.`store_state` = '0' GROUP BY `company`.`store_id` ) `_group_count_` [ RunTime:0.012197s ]
SELECT company.store_id AS store_id,company.shopname AS shopname,company.companytype AS companytype,company.yearmoney AS yearmoney,company.shoplimit AS shoplimit FROM `ds_company_introduction` `company` LEFT JOIN `ds_store` `store` ON `store`.`store_id`=`company`.`store_id` LEFT JOIN `ds_goods_global_search` `v` ON `company`.`store_id`=`v`.`store_id` WHERE `v`.`gc_id_3` = '2002' AND `store`.`store_state` = '0' GROUP BY `company`.`store_id` LIMIT 0,10 [ RunTime:0.011178s ]
SELECT
`goods`.`goods_id` AS `goods_id`,
`goods`.`store_id` AS `store_id`,
`goods`.`goods_name` AS `goods_name`,
`goods`.`goods_image` AS `goods_image`,
`goods`.`goods_price` AS `goods_price`,
`goods`.`goods_salenum` AS `goods_salenum`,
`company`.`shopname` AS `shopname`,
(CASE
WHEN ( `gtag`.`gtag_name` = '推荐' ) THEN
1 ELSE 0
END
) AS `recommend`
FROM
(
`ds_goods` `goods`
LEFT JOIN (
SELECT
`sns`.`goods_id` AS `goods_id`,
`sns`.`gtag_id` AS `gtag_id`,
tag.gtag_name
FROM
(
`ds_snsgtaggoods` `sns`
LEFT JOIN `ds_snsgoodstag` `tag` ON ((
`tag`.`gtag_id` = `sns`.`gtag_id`
)))
WHERE
((
`tag`.`isplatform` = '1'
)) ) gtag
ON goods.goods_id = gtag.goods_id
LEFT JOIN `ds_company_introduction` `company` ON ((
`goods`.`store_id` = `company`.`store_id`
)))
WHERE
(( `goods`.`state` <> '2' )
AND ( `goods`.`goods_state` = '1' )
AND ( `goods`.`goods_verify` = '1' )
AND goods.store_id = '119644')
ORDER BY
recommend DESC,
`goods`.`on_shelf_time` DESC,
`goods`.`goods_sort` ASC
LIMIT '0' [ RunTime:0.000989s ]
SELECT company.ty_name,company.store_id,company.shopname,mastertype.name companytype,
company.ptype, company.year, masterusd.name yearmoney,
company.introduce,company.company_address,company.company_address_detail,
company.num,company.register_no,company.legal_person,
date_format( from_unixtime( company.year ), "%Y-%m-%d" ) AS year,
company.registration_authority,company.registration_status,
company.business_scope,store.grade_id,company.tel,
area.area_name,area1.area_name as area_name1,area2.area_name as area_name2,company.company_province_id,sj.auth_verify FROM `ds_company_introduction` `company` LEFT JOIN `ds_store` `store` ON `store`.`store_id`=`company`.`store_id` LEFT JOIN `ds_goodsclass` `class` ON FIND_IN_SET( class.gc_id, company.ptype ) LEFT JOIN `ds_master` `masterusd` ON `masterusd`.`status`=0 and masterusd.id=company.yearmoney and masterusd.type = "zczj" LEFT JOIN `ds_master` `mastertype` ON `mastertype`.`status`=0 and mastertype.id=company.companytype and mastertype.type = "QYLX" LEFT JOIN `ds_area` `area` ON `area`.`area_id`=`company`.`company_province_id` LEFT JOIN `ds_area` `area1` ON `area1`.`area_id`=`company`.`company_city_id` LEFT JOIN `ds_area` `area2` ON `area2`.`area_id`=`company`.`company_area_id` LEFT JOIN `ds_storejoinin` `sj` ON `company`.`userid`=`sj`.`member_id` WHERE `company`.`store_id` IN ('110115','119644') GROUP BY `company`.`store_id` [ RunTime:0.003741s ]
SHOW FULL COLUMNS FROM `ds_goods` [ RunTime:0.001219s ]
SELECT COUNT(*) AS think_count FROM `ds_goods` WHERE ( store_id=110115 ) [ RunTime:0.002025s ]
SELECT COUNT(*) AS think_count FROM `ds_goods` WHERE ( store_id=119644 ) [ RunTime:0.000610s ]