SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001481s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND ( (s.platform = 1) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.005174s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.008651s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12513278 LIMIT 5 [ RunTime:0.012951s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.003005s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12513278 ORDER BY `minOrder` ASC [ RunTime:0.005426s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002762s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 12513278 ORDER BY `unit` DESC [ RunTime:0.002820s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.003402s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 12513278 LIMIT 2 [ RunTime:0.009310s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12513278 ORDER BY `minOrder` ASC [ RunTime:0.005744s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12513637 LIMIT 5 [ RunTime:0.012778s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12513637 ORDER BY `minOrder` ASC [ RunTime:0.010329s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 12513637 ORDER BY `unit` DESC [ RunTime:0.037526s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 12513637 LIMIT 2 [ RunTime:0.029557s ]
SELECT * FROM `stock_price` WHERE `stockid` = 12513637 ORDER BY `minOrder` ASC [ RunTime:0.037352s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18901364 LIMIT 5 [ RunTime:0.047611s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18901364 ORDER BY `minOrder` ASC [ RunTime:0.013219s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 18901364 ORDER BY `unit` DESC [ RunTime:0.017048s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 18901364 LIMIT 2 [ RunTime:0.036342s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18901364 ORDER BY `minOrder` ASC [ RunTime:0.032139s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '2' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.012846s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '3' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.040152s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 60646587 LIMIT 5 [ RunTime:0.017162s ]
SELECT * FROM `stock_price` WHERE `stockid` = 60646587 ORDER BY `minOrder` ASC [ RunTime:0.003177s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 60646587 ORDER BY `unit` DESC [ RunTime:0.005750s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 60646587 LIMIT 2 [ RunTime:0.006476s ]
SELECT * FROM `stock_price` WHERE `stockid` = 60646587 ORDER BY `minOrder` ASC [ RunTime:0.010884s ]
select * from pdf where partno='A2510R' and brandshort='Elpress Inc.' limit 1 [ RunTime:0.026704s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001281s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'A2510R' OR `brand` LIKE 'Elpress Inc.%' ) ) LIMIT 1 [ RunTime:0.025594s ]
SELECT `id` FROM `stock` WHERE `id` <> 60646587 AND `partno` = 'A2510R' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%elpress inc.%' ) [ RunTime:0.031999s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12513278 [ RunTime:0.008297s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 60647227 LIMIT 5 [ RunTime:0.013890s ]
SELECT * FROM `stock_price` WHERE `stockid` = 60647227 ORDER BY `minOrder` ASC [ RunTime:0.015727s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 60647227 ORDER BY `unit` DESC [ RunTime:0.014569s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 60647227 LIMIT 2 [ RunTime:0.006621s ]
SELECT * FROM `stock_price` WHERE `stockid` = 60647227 ORDER BY `minOrder` ASC [ RunTime:0.009633s ]
select * from pdf where partno='A2513R' and brandshort='Elpress Inc.' limit 1 [ RunTime:0.037514s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'A2513R' OR `brand` LIKE 'Elpress Inc.%' ) ) LIMIT 1 [ RunTime:0.024389s ]
SELECT `id` FROM `stock` WHERE `id` <> 60647227 AND `partno` = 'A2513R' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%elpress inc.%' ) [ RunTime:0.022680s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 12513637 [ RunTime:0.012155s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 39250943 LIMIT 5 [ RunTime:0.034155s ]
SELECT * FROM `stock_price` WHERE `stockid` = 39250943 ORDER BY `minOrder` ASC [ RunTime:0.008056s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 39250943 ORDER BY `unit` DESC [ RunTime:0.003456s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 39250943 LIMIT 2 [ RunTime:0.000453s ]
SELECT * FROM `stock_price` WHERE `stockid` = 39250943 ORDER BY `minOrder` ASC [ RunTime:0.002623s ]
select * from pdf where partno='A251MP482Q025A' and brandshort='WEC' limit 1 [ RunTime:0.010211s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'A251MP482Q025A' OR `brand` LIKE 'WEC%' ) ) LIMIT 1 [ RunTime:0.004954s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 63499643 LIMIT 5 [ RunTime:0.015581s ]
SELECT * FROM `stock_price` WHERE `stockid` = 63499643 ORDER BY `minOrder` ASC [ RunTime:0.007191s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 63499643 ORDER BY `unit` DESC [ RunTime:0.000650s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 63499643 LIMIT 2 [ RunTime:0.003808s ]
SELECT * FROM `stock_price` WHERE `stockid` = 63499643 ORDER BY `minOrder` ASC [ RunTime:0.002265s ]
select * from pdf where partno='A251' and brandshort='TPI Test Products Int' limit 1 [ RunTime:0.007689s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'A251' OR `brand` LIKE 'TPI (Test Products Int)%' ) ) LIMIT 1 [ RunTime:0.000555s ]
SELECT `id` FROM `stock` WHERE `id` <> 63499643 AND `partno` = 'A251' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%tpi%' ) [ RunTime:0.002022s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18901364 [ RunTime:0.000538s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '4' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001283s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '5' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.035818s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '6' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.039377s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '7' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.013615s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '8' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.020751s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '9' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.054013s ]
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 'A251%' OR `brand` LIKE 'A251%' ) ) AND `s`.`platform` = '10' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.032099s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'A251%' OR `brand` LIKE 'A251%' ) ) AND ( (s.platform = 1) ) [ RunTime:0.036950s ]