SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001374s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND ( (s.platform = 1) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.032652s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001466s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 19022351 LIMIT 5 [ RunTime:0.017787s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.020780s ]
SELECT * FROM `stock_price` WHERE `stockid` = 19022351 ORDER BY `minOrder` ASC [ RunTime:0.027437s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003424s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 19022351 ORDER BY `unit` DESC [ RunTime:0.008825s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002142s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 19022351 LIMIT 2 [ RunTime:0.041294s ]
SELECT * FROM `stock_price` WHERE `stockid` = 19022351 ORDER BY `minOrder` ASC [ RunTime:0.009750s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '2' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.045767s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '3' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.033676s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 56513981 LIMIT 5 [ RunTime:0.027768s ]
SELECT * FROM `stock_price` WHERE `stockid` = 56513981 ORDER BY `minOrder` ASC [ RunTime:0.009994s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 56513981 ORDER BY `unit` DESC [ RunTime:0.011725s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 56513981 LIMIT 2 [ RunTime:0.023330s ]
SELECT * FROM `stock_price` WHERE `stockid` = 56513981 ORDER BY `minOrder` ASC [ RunTime:0.007159s ]
select * from pdf where partno='SCMD-MIDC5F' and brandshort='DATAFORTH' limit 1 [ RunTime:0.039502s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002506s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'SCMD-MIDC5F' OR `brand` LIKE 'DATAFORTH%' ) ) LIMIT 1 [ RunTime:0.066950s ]
SELECT `id` FROM `stock` WHERE `id` <> 56513981 AND `partno` = 'SCMD-MIDC5F' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%dataforth%' ) [ RunTime:0.090799s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 19022351 [ RunTime:0.016198s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '4' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.096272s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '5' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.074020s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '6' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.094758s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '7' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.046056s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '8' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.036233s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '9' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.116580s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND `s`.`platform` = '10' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.081085s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'SCMD-MIDC5F%' OR `brand` LIKE 'SCMD-MIDC5F%' ) ) AND ( (s.platform = 1) ) [ RunTime:0.071790s ]