首页 > 代码库 > 大商创搜索报错解决
大商创搜索报错解决
SELECT COUNT(*) FROM `dsc1`.`dsc_goods` AS g LEFT JOIN `dsc1`.`dsc_brand` AS b ON b.brand_id = g.brand_id LEFT JOIN `dsc1`.`dsc_link_brand` AS lb ON lb.bid = g.brand_id LEFT JOIN `dsc1`.`dsc_merchants_shop_brand` AS msb ON msb.bid = lb.bid left join `dsc1`.`dsc_warehouse_goods` as wg on g.goods_id = wg.goods_id and wg.region_id = ‘3‘ left join `dsc1`.`dsc_warehouse_area_goods` as wag on g.goods_id = wag.goods_id and wag.region_id = ‘32‘ WHERE g.is_delete = 0 AND g.is_on_sale = 1 AND g.is_alone_sale = 1 AND (( 1 AND ((goods_name LIKE ‘%米%‘ OR goods_sn LIKE ‘%米%‘ OR keywords LIKE ‘%米%‘ )) ) AND (b.audit_status = 1 OR msb.audit_status = 1) AND g.review_status > 2 )
bid对不上brand_id 结果为空
大商创搜索报错解决
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。