[ SQL ] SHOW COLUMNS FROM `zitu_mall_category_product` [ RunTime:0.000821s ]
[ SQL ] SHOW COLUMNS FROM `zitu_mall_category` [ RunTime:0.000627s ]
[ SQL ] SELECT `zitu_mall_category`.*,`pivot`.`id` AS `pivot__id`,`pivot`.`product_id` AS `pivot__product_id`,`pivot`.`category_id` AS `pivot__category_id`,`pivot`.`list_order` AS `pivot__list_order`,`pivot`.`status` AS `pivot__status` FROM `zitu_mall_category` INNER JOIN `zitu_mall_category_product` `pivot` ON `pivot`.`category_id`=`zitu_mall_category`.`id` WHERE `pivot`.`product_id` IN (6,1,2,4,3) [ RunTime:0.000479s ]
[ SQL ] SELECT `a`.`id`,`a`.`goods_id`,`a`.`sku_unique_code`,`a`.`price`,`a`.`quantity`,`a`.`sales_price`,`a`.`sold_num`,`s`.`all_quantity` FROM `zitu_goods_sku` `a` LEFT JOIN ( SELECT goods_id,sum(quantity) as all_quantity FROM `zitu_goods_sku` WHERE `delete_time` = 0 GROUP BY `goods_id` ) s ON `s`.`goods_id`=`a`.`goods_id` WHERE `a`.`goods_id` = 6 AND `a`.`delete_time` = 0 [ RunTime:0.000469s ]
[ SQL ] SELECT `a`.`id`,`a`.`goods_id`,`a`.`sku_unique_code`,`a`.`price`,`a`.`quantity`,`a`.`sales_price`,`a`.`sold_num`,`s`.`all_quantity` FROM `zitu_goods_sku` `a` LEFT JOIN ( SELECT goods_id,sum(quantity) as all_quantity FROM `zitu_goods_sku` WHERE `delete_time` = 0 GROUP BY `goods_id` ) s ON `s`.`goods_id`=`a`.`goods_id` WHERE `a`.`goods_id` = 1 AND `a`.`delete_time` = 0 [ RunTime:0.000358s ]
[ SQL ] SELECT `a`.`id`,`a`.`goods_id`,`a`.`sku_unique_code`,`a`.`price`,`a`.`quantity`,`a`.`sales_price`,`a`.`sold_num`,`s`.`all_quantity` FROM `zitu_goods_sku` `a` LEFT JOIN ( SELECT goods_id,sum(quantity) as all_quantity FROM `zitu_goods_sku` WHERE `delete_time` = 0 GROUP BY `goods_id` ) s ON `s`.`goods_id`=`a`.`goods_id` WHERE `a`.`goods_id` = 2 AND `a`.`delete_time` = 0 [ RunTime:0.000497s ]
[ SQL ] SELECT `a`.`id`,`a`.`goods_id`,`a`.`sku_unique_code`,`a`.`price`,`a`.`quantity`,`a`.`sales_price`,`a`.`sold_num`,`s`.`all_quantity` FROM `zitu_goods_sku` `a` LEFT JOIN ( SELECT goods_id,sum(quantity) as all_quantity FROM `zitu_goods_sku` WHERE `delete_time` = 0 GROUP BY `goods_id` ) s ON `s`.`goods_id`=`a`.`goods_id` WHERE `a`.`goods_id` = 4 AND `a`.`delete_time` = 0 [ RunTime:0.000334s ]
[ SQL ] SELECT `a`.`id`,`a`.`goods_id`,`a`.`sku_unique_code`,`a`.`price`,`a`.`quantity`,`a`.`sales_price`,`a`.`sold_num`,`s`.`all_quantity` FROM `zitu_goods_sku` `a` LEFT JOIN ( SELECT goods_id,sum(quantity) as all_quantity FROM `zitu_goods_sku` WHERE `delete_time` = 0 GROUP BY `goods_id` ) s ON `s`.`goods_id`=`a`.`goods_id` WHERE `a`.`goods_id` = 3 AND `a`.`delete_time` = 0 [ RunTime:0.000401s ]