Gaosheng 2 napja
szülő
commit
e3850bb849

+ 4 - 1
xinkeaboard-server/b2b2c-web/src/main/resources/mapper/read/seller/StoreBindCategoryReadMapper.xml

@@ -88,9 +88,12 @@
         <if test="example.goodsCategoryId3 != null">
           AND `goods_category_id3` = #{example.goodsCategoryId3}
         </if>
-        <if test="example.storeNameLike != null">
+        <if test="example.storeNameLike != null and example.webSite=='1'">
           AND `store_id` in (select `store_id` from `store` where `store_name` like concat('%',#{example.storeNameLike},'%'))
         </if>
+        <if test="example.storeNameLike != null and example.webSite=='2'">
+          AND `store_id` in (select `store_id` from `store_name` where `store_name` like concat('%',#{example.storeNameLike},'%') and `web_site` = #{example.webSite})
+        </if>
       </trim>
     </if>
   </sql>