[ DB ] CONNECT:[ UseTime:0.026618s ] mysql:dbname=kfw_test;host=rm-8vbr0043pyk836f88ho.mysql.zhangbei.rds.aliyuncs.com;charset=utf8
[ SQL ] SHOW COLUMNS FROM `product_sales_attr` [ RunTime:0.017977s ]
[ SQL ] SHOW COLUMNS FROM `product` [ RunTime:0.017808s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `product` `p` INNER JOIN `product_category` `pc` ON `p`.`productcategoryid`=`pc`.`id` INNER JOIN (SELECT `pas`.`id`,`pas`.`productid`,`ps`.`city`,min(ps.saleprice) saleprice,COUNT(1) attrsum FROM `product_sales_attr` `pas` INNER JOIN `product_sku` `ps` ON `pas`.`id`=`ps`.`productsalesattrid` WHERE `pas`.`state` = 2 AND `ps`.`state` = 2 AND `isshow` = 2 AND `pas`.`iscustom` = 1 AND ( ps.city = 3302 or ps.province = 999999 ) GROUP BY pas.productid) pas ON `p`.`id`=`pas`.`productid` WHERE `p`.`state` = 2 AND `pc`.`parentid` = '5' LIMIT 1 [ RunTime:0.026038s ]
[ SQL ] SELECT `p`.`id`,`p`.`title`,`p`.`sketch`,`pas`.`saleprice`,`pas`.`city`,`pas`.`attrsum`,pas.id as productsalesattrid FROM `product` `p` INNER JOIN `product_category` `pc` ON `p`.`productcategoryid`=`pc`.`id` INNER JOIN (SELECT `pas`.`id`,`pas`.`productid`,`ps`.`city`,min(ps.saleprice) saleprice,COUNT(1) attrsum FROM `product_sales_attr` `pas` INNER JOIN `product_sku` `ps` ON `pas`.`id`=`ps`.`productsalesattrid` WHERE `pas`.`state` = 2 AND `ps`.`state` = 2 AND `isshow` = 2 AND `pas`.`iscustom` = 1 AND ( ps.city = 3302 or ps.province = 999999 ) GROUP BY pas.productid) pas ON `p`.`id`=`pas`.`productid` WHERE `p`.`state` = 2 AND `pc`.`parentid` = '5' [ RunTime:0.025790s ]
[ SQL ] SHOW COLUMNS FROM `product_headpic` [ RunTime:0.018297s ]
[ SQL ] SELECT * FROM `product_headpic` WHERE `state` = 2 AND `productid` IN (47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,63,64,86,87,88,89,90,101,102,103,113,153,154,158,160,168,175,176,178,210,215,216,217,220,226,228,229,230,231,232) ORDER BY sort asc [ RunTime:0.018766s ]
[ SQL ] SHOW COLUMNS FROM `article` [ RunTime:0.020070s ]
[ SQL ] SELECT * FROM `article` WHERE `keyword` LIKE '%知识产权%' AND `state` = 2 ORDER BY total desc LIMIT 0,10 [ RunTime:0.021760s ]