SHOW FULL COLUMNS FROM `tp_config` [ RunTime:0.000608s ]
SELECT * FROM `tp_config` [ RunTime:0.000302s ]
SHOW FULL COLUMNS FROM `tp_goods_category` [ RunTime:0.000559s ]
SELECT * FROM `tp_goods_category` WHERE `is_show` = 1 ORDER BY `sort_order` [ RunTime:0.002034s ]
SHOW FULL COLUMNS FROM `tp_brand` [ RunTime:0.000753s ]
SELECT `id`,`cat_id`,`logo`,`is_hot` FROM `tp_brand` WHERE ( cat_id > 0 ) [ RunTime:0.000263s ]
SHOW FULL COLUMNS FROM `tp_team_activity` [ RunTime:0.000609s ]
SELECT * FROM `tp_team_activity` WHERE `team_id` = 2 LIMIT 1 [ RunTime:0.000322s ]
SHOW FULL COLUMNS FROM `tp_goods` [ RunTime:0.000591s ]
SELECT * FROM `tp_goods` WHERE `goods_id` = 312 LIMIT 1 [ RunTime:0.000424s ]
SHOW FULL COLUMNS FROM `tp_goods_images` [ RunTime:0.000667s ]
SELECT * FROM `tp_goods_images` WHERE `goods_id` = 312 [ RunTime:0.000298s ]
SHOW FULL COLUMNS FROM `tp_team_goods_item` [ RunTime:0.000489s ]
SELECT * FROM `tp_team_goods_item` WHERE `team_id` = 2 [ RunTime:0.000229s ]
SHOW FULL COLUMNS FROM `tp_comment` [ RunTime:0.000571s ]
SELECT sum(case when img !='' and img not like 'N;%' then 1 else 0 end) as img_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 4 or ceil((deliver_rank+goods_rank+service_rank)/3)= 5 then 1 else 0 end) as high_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 3 then 1 else 0 end) as center_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)<=2 then 1 else 0 end) as low_sum,count(comment_id) as total_sum FROM `tp_comment` WHERE `is_show` = 1 AND `goods_id` = 312 AND `username` <> 'admin' GROUP BY `goods_id` LIMIT 1 [ RunTime:0.000432s ]
SELECT sum(case when img !='' and img not like 'N;%' then 1 else 0 end) as img_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 4 or ceil((deliver_rank+goods_rank+service_rank)/3)= 5 then 1 else 0 end) as high_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 3 then 1 else 0 end) as center_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)<=2 then 1 else 0 end) as low_sum,count(comment_id) as total_sum FROM `tp_comment` WHERE `is_show` = 1 AND `goods_id` = 312 AND `username` <> 'admin' GROUP BY `goods_id` LIMIT 1 [ RunTime:0.000355s ]
SELECT sum(case when img !='' and img not like 'N;%' then 1 else 0 end) as img_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 4 or ceil((deliver_rank+goods_rank+service_rank)/3)= 5 then 1 else 0 end) as high_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 3 then 1 else 0 end) as center_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)<=2 then 1 else 0 end) as low_sum,count(comment_id) as total_sum FROM `tp_comment` WHERE `is_show` = 1 AND `goods_id` = 312 AND `username` <> 'admin' GROUP BY `goods_id` LIMIT 1 [ RunTime:0.000312s ]
SELECT sum(case when img !='' and img not like 'N;%' then 1 else 0 end) as img_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 4 or ceil((deliver_rank+goods_rank+service_rank)/3)= 5 then 1 else 0 end) as high_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 3 then 1 else 0 end) as center_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)<=2 then 1 else 0 end) as low_sum,count(comment_id) as total_sum FROM `tp_comment` WHERE `is_show` = 1 AND `goods_id` = 312 AND `username` <> 'admin' GROUP BY `goods_id` LIMIT 1 [ RunTime:0.000285s ]
SELECT sum(case when img !='' and img not like 'N;%' then 1 else 0 end) as img_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 4 or ceil((deliver_rank+goods_rank+service_rank)/3)= 5 then 1 else 0 end) as high_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)= 3 then 1 else 0 end) as center_sum,sum(case when ceil((deliver_rank+goods_rank+service_rank)/3)<=2 then 1 else 0 end) as low_sum,count(comment_id) as total_sum FROM `tp_comment` WHERE `is_show` = 1 AND `goods_id` = 312 AND `username` <> 'admin' GROUP BY `goods_id` LIMIT 1 [ RunTime:0.000278s ]
SHOW FULL COLUMNS FROM `tp_goods_attr` [ RunTime:0.000496s ]
SELECT * FROM `tp_goods_attr` INNER JOIN `tp_goods_attribute` `b` ON `tp_goods_attr`.`attr_id`=`b`.`attr_id` WHERE `goods_id` = 312 AND `goods_id` = 312 ORDER BY `b`.`order` DESC [ RunTime:0.000577s ]
SHOW FULL COLUMNS FROM `tp_goods_attribute` [ RunTime:0.000397s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 59 LIMIT 1 [ RunTime:0.000245s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 61 LIMIT 1 [ RunTime:0.000221s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 64 LIMIT 1 [ RunTime:0.000247s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 66 LIMIT 1 [ RunTime:0.000231s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 72 LIMIT 1 [ RunTime:0.000204s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 119 LIMIT 1 [ RunTime:0.000219s ]
SHOW FULL COLUMNS FROM `tp_spec_goods_price` [ RunTime:0.000516s ]
SELECT * FROM `tp_spec_goods_price` WHERE `goods_id` = 312 AND `goods_id` = 312 ORDER BY `item_id` [ RunTime:0.000402s ]
SELECT `original_img` FROM `tp_goods` WHERE `goods_id` = 312 LIMIT 1 [ RunTime:0.000224s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000299s ]
SHOW FULL COLUMNS FROM `tp_spec_item` [ RunTime:0.000420s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000281s ]
SHOW FULL COLUMNS FROM `tp_spec` [ RunTime:0.000420s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000236s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000293s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000253s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000192s ]
SHOW FULL COLUMNS FROM `tp_spec_image` [ RunTime:0.000411s ]
SELECT * FROM `tp_spec_image` WHERE `goods_id` = 312 [ RunTime:0.000473s ]
1
1
0
0
1