SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002407s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000568s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002184s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.121' ) [ RunTime:0.000367s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001867s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000308s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 138 LIMIT 1 [ RunTime:0.000517s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 138 [ RunTime:0.000409s ]
SELECT `id`,`name` FROM `product_type` WHERE `typeid` = 22 [ RunTime:0.000225s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001943s ]
SELECT `s`.`id`,`s`.*,`u`.`company`,`t`.`name` FROM `stock` `s` LEFT JOIN `user` `u` ON `u`.`id`=`s`.`userid` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( ( `status` = 1 OR `status` = 3 OR `status` = 4 OR ( `status` = 2 AND `expiretime` > '2025-09-26 16:26:46' ) ) AND `categoryid` = 138 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,10 [ RunTime:0.026263s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002096s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 387 LIMIT 4 [ RunTime:0.000515s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001798s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.000460s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001755s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 387 ORDER BY `unit` DESC [ RunTime:0.000437s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001696s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 387 LIMIT 2 [ RunTime:0.000417s ]
SELECT * FROM `stock_price` WHERE `stockid` = 387 ORDER BY `minOrder` ASC [ RunTime:0.000240s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001742s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2803A' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000667s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 386 LIMIT 4 [ RunTime:0.000370s ]
SELECT * FROM `stock_price` WHERE `stockid` = 386 ORDER BY `minOrder` ASC [ RunTime:0.000402s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 386 ORDER BY `unit` DESC [ RunTime:0.000389s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 386 LIMIT 2 [ RunTime:0.000392s ]
SELECT * FROM `stock_price` WHERE `stockid` = 386 ORDER BY `minOrder` ASC [ RunTime:0.000234s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2003A' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000526s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2253 LIMIT 4 [ RunTime:0.000364s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2253 ORDER BY `minOrder` ASC [ RunTime:0.000411s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2253 ORDER BY `unit` DESC [ RunTime:0.000392s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2253 LIMIT 2 [ RunTime:0.000425s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2253 ORDER BY `minOrder` ASC [ RunTime:0.000232s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2003D1013TR' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000504s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 385 LIMIT 4 [ RunTime:0.000360s ]
SELECT * FROM `stock_price` WHERE `stockid` = 385 ORDER BY `minOrder` ASC [ RunTime:0.000399s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 385 ORDER BY `unit` DESC [ RunTime:0.000382s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 385 LIMIT 2 [ RunTime:0.000384s ]
SELECT * FROM `stock_price` WHERE `stockid` = 385 ORDER BY `minOrder` ASC [ RunTime:0.000230s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2002A' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000499s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 388 LIMIT 4 [ RunTime:0.000374s ]
SELECT * FROM `stock_price` WHERE `stockid` = 388 ORDER BY `minOrder` ASC [ RunTime:0.000403s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 388 ORDER BY `unit` DESC [ RunTime:0.000382s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 388 LIMIT 2 [ RunTime:0.000435s ]
SELECT * FROM `stock_price` WHERE `stockid` = 388 ORDER BY `minOrder` ASC [ RunTime:0.000234s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ULN2804A' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000525s ]
SELECT `id`,`brand`,`package` FROM `stock` WHERE ( ( `status` = 1 OR `status` = 3 OR `status` = 4 OR ( `status` = 2 AND `expiretime` > '2025-09-26 16:26:46' ) ) AND `categoryid` = 138 ) ORDER BY `id` DESC LIMIT 10000 [ RunTime:0.033662s ]
SELECT COUNT(*) AS think_count FROM `stock` WHERE ( ( `status` = 1 OR `status` = 3 OR `status` = 4 OR ( `status` = 2 AND `expiretime` > '2025-09-26 16:26:46' ) ) AND `categoryid` = 138 ) [ RunTime:0.018443s ]