zhijiezhao пре 3 година
родитељ
комит
e9c1c3aa10
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/mapper/SearchMapper.xml

+ 1 - 1
src/main/resources/mapper/SearchMapper.xml

@@ -38,7 +38,7 @@
         left join smalltype as s on p.smallTypeID = s.smallTypeID
         left join bigtype as b on p.bigTypeID = b.bigTypeID
         left join cm_products_classify as c on p.classifyId = c.id
-        right join cm_brand as br on p.brandID = br.id
+        left join cm_brand as br on p.brandID = br.id
         left join shop as sh on p.shopID = sh.shopID
     </sql>
     <select id="searchProductById" resultType="com.caimei365.commodity.model.search.ProductDO">