|
|
@@ -19,7 +19,7 @@ import java.util.List;
|
|
|
*/
|
|
|
@Getter
|
|
|
@Setter
|
|
|
-@SearchBean(tables = "(select ys.goods_id,min(ys.price) as price from yh_shop_goods_sku ys where ys.status is true and ys.deleted is true :condition: group by ys.goods_id) yg" +
|
|
|
+@SearchBean(tables = "(select ys.goods_id,min(ys.price) as price from yh_shop_goods_sku ys left join goods_don_sku sku on sku.id = ys.sku_id where sku.status is true and ys.status is true and ys.deleted is true :condition: group by ys.goods_id) yg" +
|
|
|
" inner join goods_don g on g.id = yg.goods_id",
|
|
|
where = "g.deleted is true and g.status is true",
|
|
|
orderBy = "g.sort_by asc, g.id")
|