[ DB ] CONNECT:[ UseTime:0.029251s ] mysql:dbname=kfw_test;host=rm-8vbr0043pyk836f88ho.mysql.zhangbei.rds.aliyuncs.com;charset=utf8
[ SQL ] SHOW COLUMNS FROM `product_sales_attr` [ RunTime:0.017333s ]
[ SQL ] SELECT * FROM `product_sales_attr` WHERE `id` = 1896 [ RunTime:0.016868s ]
[ SQL ] SHOW COLUMNS FROM `product_virtual_category_attr` [ RunTime:0.017017s ]
[ SQL ] SELECT `c`.`id`,`productid`,title virtualtitle,`productsalesattrid` FROM `product_virtual_category_attr` `a` INNER JOIN `product_virtual_category` `c` ON `a`.`productvirtualcategoryid`=`c`.`id` WHERE `productsalesattrid` IN (1896) AND `deleted` = 1 [ RunTime:0.021725s ]
[ SQL ] SHOW COLUMNS FROM `product` [ RunTime:0.021731s ]
[ SQL ] SELECT `id`,`title` FROM `product` WHERE `id` IN (18) [ RunTime:0.021865s ]
[ SQL ] SHOW COLUMNS FROM `product_sales_attr_desc` [ RunTime:0.019964s ]
[ SQL ] SELECT * FROM `product_sales_attr_desc` WHERE `productsalesattrid` = 1896 [ RunTime:0.021921s ]
[ SQL ] SELECT `c`.`id`,`productid`,title virtualtitle,`productsalesattrid` FROM `product_virtual_category_attr` `a` INNER JOIN `product_virtual_category` `c` ON `a`.`productvirtualcategoryid`=`c`.`id` WHERE `productsalesattrid` IN (1896) AND `deleted` = 1 [ RunTime:0.020720s ]
[ SQL ] SELECT * FROM `product_sales_attr` WHERE `productid` = 18 ORDER BY sort asc [ RunTime:0.020977s ]
[ SQL ] SELECT * FROM `product_sales_attr_desc` WHERE `productsalesattrid` IN (68,69,1895,1896,1694,1443,1444,1451) [ RunTime:0.018473s ]
[ SQL ] SELECT `c`.`id`,`productid`,title virtualtitle,`productsalesattrid` FROM `product_virtual_category_attr` `a` INNER JOIN `product_virtual_category` `c` ON `a`.`productvirtualcategoryid`=`c`.`id` WHERE `productsalesattrid` IN (1895,1896) AND `deleted` = 1 [ RunTime:0.018603s ]
[ SQL ] SHOW COLUMNS FROM `area` [ RunTime:0.019570s ]
[ SQL ] SELECT * FROM `area` WHERE `deleted` = 1 ORDER BY sort ASC [ RunTime:0.047892s ]
[ SQL ] SHOW COLUMNS FROM `product_sku` [ RunTime:0.026421s ]
[ SQL ] SELECT * FROM `product_sku` WHERE `productsalesattrid` = 1896 AND `state` = 2 [ RunTime:0.017855s ]
[ SQL ] SHOW COLUMNS FROM `provider_sku` [ RunTime:0.017128s ]
[ SQL ] SELECT COUNT(*) AS tp_count FROM `provider_sku` `ps` INNER JOIN `provider` `p` ON `p`.`id`=`ps`.`providerid` LEFT JOIN `khcs_customer` `khcus` ON `p`.`id`=`khcus`.`providerid` WHERE `p`.`authentication` = 4 AND `p`.`canreceiveorders` = 2 AND `ps`.`productsalesattrid` = 1896 AND `ps`.`state` = 2 AND `ps`.`kfwstate` = 2 AND `ps`.`skustate` = 2 AND `ps`.`area` = '39' AND ( ( `p`.`type` = 5 AND `p`.`kfwzxstate` = 2 AND `p`.`zxstate` = 2 AND `ps`.`isopenzx` = 2 ) OR `p`.`type` <> 5 ) LIMIT 1 [ RunTime:0.017435s ]