SHOW FULL COLUMNS FROM `tp_team_activity` [ RunTime:0.002414s ]
SELECT * FROM `tp_team_activity` WHERE `team_id` = 2 LIMIT 1 [ RunTime:0.000437s ]
SHOW FULL COLUMNS FROM `tp_goods` [ RunTime:0.004019s ]
SELECT * FROM `tp_goods` WHERE `goods_id` = 312 LIMIT 1 [ RunTime:0.000359s ]
SHOW FULL COLUMNS FROM `tp_goods_images` [ RunTime:0.002512s ]
SELECT * FROM `tp_goods_images` WHERE `goods_id` = 312 [ RunTime:0.000268s ]
SHOW FULL COLUMNS FROM `tp_team_goods_item` [ RunTime:0.003634s ]
SELECT * FROM `tp_team_goods_item` WHERE `team_id` = 2 [ RunTime:0.000197s ]
SHOW FULL COLUMNS FROM `tp_comment` [ RunTime:0.002386s ]
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.000300s ]
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.000270s ]
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.000265s ]
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.000259s ]
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.000259s ]
SHOW FULL COLUMNS FROM `tp_goods_attr` [ RunTime:0.000870s ]
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.000904s ]
SHOW FULL COLUMNS FROM `tp_goods_attribute` [ RunTime:0.002991s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 59 LIMIT 1 [ RunTime:0.000195s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 61 LIMIT 1 [ RunTime:0.000182s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 64 LIMIT 1 [ RunTime:0.000179s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 66 LIMIT 1 [ RunTime:0.000180s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 72 LIMIT 1 [ RunTime:0.000162s ]
SELECT * FROM `tp_goods_attribute` WHERE `attr_id` = 119 LIMIT 1 [ RunTime:0.000171s ]
SHOW FULL COLUMNS FROM `tp_spec_goods_price` [ RunTime:0.001179s ]
SELECT * FROM `tp_spec_goods_price` WHERE `goods_id` = 312 AND `goods_id` = 312 ORDER BY `item_id` [ RunTime:0.000336s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000269s ]
SHOW FULL COLUMNS FROM `tp_spec_item` [ RunTime:0.002962s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000242s ]
SHOW FULL COLUMNS FROM `tp_spec` [ RunTime:0.002941s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000200s ]
SELECT `key` FROM `tp_spec_goods_price` WHERE `goods_id` = 312 [ RunTime:0.000322s ]
SELECT * FROM `tp_spec_item` WHERE `id` IN (112,113,114,120) ORDER BY `order_index` ASC [ RunTime:0.000227s ]
SELECT * FROM `tp_spec` WHERE `id` = 37 ORDER BY `order` DESC,`id` ASC [ RunTime:0.000169s ]
SHOW FULL COLUMNS FROM `tp_spec_image` [ RunTime:0.003141s ]
SELECT * FROM `tp_spec_image` WHERE `goods_id` = 312 [ RunTime:0.000375s ]
1
1
0
0
1