修正收藏sql,防止关联返回null数据

This commit is contained in:
hupeng
2020-07-15 16:13:47 +08:00
parent ff162d34c0
commit 6ef5f28d30

View File

@ -33,7 +33,7 @@ public interface YxStoreProductRelationMapper extends CoreMapper<YxStoreProductR
@Select("select B.id pid,A.category,B.store_name as storeName,B.price," +
"B.ot_price as otPrice,B.sales,B.image,B.is_show as isShow" +
" from yx_store_product_relation A left join yx_store_product B " +
"on A.product_id = B.id where A.uid=#{uid} and A.is_del = 0")
"on A.product_id = B.id where A.uid=#{uid} and A.is_del = 0 and B.is_del = 0")
List<YxStoreProductRelationQueryVo> selectList(Page page, @Param("uid") Long uid);