SHOW FULL COLUMNS FROM `tp_team_activity` [ RunTime:0.004291s ]
SELECT * FROM `tp_team_activity` WHERE `team_id` = 2 LIMIT 1 [ RunTime:0.000297s ]
SHOW FULL COLUMNS FROM `tp_goods` [ RunTime:0.003371s ]
SELECT * FROM `tp_goods` WHERE `goods_id` = 312 LIMIT 1 [ RunTime:0.000363s ]
SHOW FULL COLUMNS FROM `tp_goods_images` [ RunTime:0.003527s ]
SELECT * FROM `tp_goods_images` WHERE `goods_id` = 312 [ RunTime:0.000253s ]
SHOW FULL COLUMNS FROM `tp_team_goods_item` [ RunTime:0.004285s ]
SELECT * FROM `tp_team_goods_item` WHERE `team_id` = 2 [ RunTime:0.000990s ]
SHOW FULL COLUMNS FROM `tp_comment` [ RunTime:0.003115s ]
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.000349s ]
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.000407s ]
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.000251s ]
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.000264s ]
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.000220s ]
SHOW FULL COLUMNS FROM `tp_goods_attr` [ RunTime:0.003078s ]
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.001841s ]
SHOW FULL COLUMNS FROM `tp_goods_attribute` [ RunTime:0.002977s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 59 LIMIT 1 [ RunTime:0.000192s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 61 LIMIT 1 [ RunTime:0.000140s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 64 LIMIT 1 [ RunTime:0.000136s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 66 LIMIT 1 [ RunTime:0.000161s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 72 LIMIT 1 [ RunTime:0.000205s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 119 LIMIT 1 [ RunTime:0.000201s ]
SHOW FULL COLUMNS FROM `tp_spec_goods_price` [ RunTime:0.003120s ]
SELECT * FROM `tp_spec_goods_price` WHERE `goods_id` = 312 AND `goods_id` = 312 ORDER BY `item_id` [ RunTime:0.000425s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000287s ]
SHOW FULL COLUMNS FROM `tp_spec_item` [ RunTime:0.002941s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000270s ]
SHOW FULL COLUMNS FROM `tp_spec` [ RunTime:0.002928s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000199s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000295s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000238s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000175s ]
SHOW FULL COLUMNS FROM `tp_spec_image` [ RunTime:0.002965s ]
SELECT * FROM `tp_spec_image` WHERE `goods_id` = 312 [ RunTime:0.000370s ]
1
1
0
0
1