SHOW FULL COLUMNS FROM `tp_team_activity` [ RunTime:0.000745s ]
SELECT * FROM `tp_team_activity` WHERE `team_id` = 2 LIMIT 1 [ RunTime:0.000418s ]
SHOW FULL COLUMNS FROM `tp_goods` [ RunTime:0.000664s ]
SELECT * FROM `tp_goods` WHERE `goods_id` = 312 LIMIT 1 [ RunTime:0.000444s ]
SHOW FULL COLUMNS FROM `tp_goods_images` [ RunTime:0.000495s ]
SELECT * FROM `tp_goods_images` WHERE `goods_id` = 312 [ RunTime:0.000272s ]
SHOW FULL COLUMNS FROM `tp_team_goods_item` [ RunTime:0.001303s ]
SELECT * FROM `tp_team_goods_item` WHERE `team_id` = 2 [ RunTime:0.000250s ]
SHOW FULL COLUMNS FROM `tp_comment` [ RunTime:0.000488s ]
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.000389s ]
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.000324s ]
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.000320s ]
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.000308s ]
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.000356s ]
SHOW FULL COLUMNS FROM `tp_goods_attr` [ RunTime:0.000513s ]
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.000543s ]
SHOW FULL COLUMNS FROM `tp_goods_attribute` [ RunTime:0.000397s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 59 LIMIT 1 [ RunTime:0.000237s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 61 LIMIT 1 [ RunTime:0.000218s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 64 LIMIT 1 [ RunTime:0.000203s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 66 LIMIT 1 [ RunTime:0.000222s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 72 LIMIT 1 [ RunTime:0.000210s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 119 LIMIT 1 [ RunTime:0.000239s ]
SHOW FULL COLUMNS FROM `tp_spec_goods_price` [ RunTime:0.000519s ]
SELECT * FROM `tp_spec_goods_price` WHERE `goods_id` = 312 AND `goods_id` = 312 ORDER BY `item_id` [ RunTime:0.000404s ]
SELECT `original_img` FROM `tp_goods` WHERE `goods_id` = 312 LIMIT 1 [ RunTime:0.000213s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000340s ]
SHOW FULL COLUMNS FROM `tp_spec_item` [ RunTime:0.000444s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000275s ]
SHOW FULL COLUMNS FROM `tp_spec` [ RunTime:0.000407s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000242s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000302s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000279s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000224s ]
SHOW FULL COLUMNS FROM `tp_spec_image` [ RunTime:0.000391s ]
SELECT * FROM `tp_spec_image` WHERE `goods_id` = 312 [ RunTime:0.000495s ]
1
1
0
0
1