摘要: // 获取子节点,并更新子节点状态 $as = XXXX::query()->where()->get(); while (true) { $categoryCollection = new Collection(); foreach ($as as $a) { $c... 阅读全文
posted @ 2019-02-18 21:22 泥土里的绽放 阅读(138) 评论(0) 推荐(0) 编辑
摘要: alter table attributes modify column `type` tinyint(4) DEFAULT NULL COMMENT '0基本属性 1价格属性'; 阅读全文
posted @ 2019-02-18 18:02 泥土里的绽放 阅读(285) 评论(0) 推荐(0) 编辑
摘要: select `product_skus`.id as skuId, `wname` as sku名称, if(`sku_attributes`.`status`=1,'上架','下架') as 状态, (select name from brands where brands.id = product_skus.brand_id) as 品牌, `sku_attributes`.`attrib... 阅读全文
posted @ 2019-02-18 11:14 泥土里的绽放 阅读(161) 评论(0) 推荐(0) 编辑