|
|
@@ -17,7 +17,7 @@ import java.util.List;
|
|
|
@SearchBean(tables = "yh_shop_goods_sku ysgs left join goods_don g on g.id = ysgs.goods_id" +
|
|
|
" left join goods_don_sku sku on sku.id = ysgs.sku_id",
|
|
|
where = "ysgs.deleted is true and g.status is true and g.deleted is true and sku.status is true and g.is_distribute is true"
|
|
|
- , groupBy = "g.id,g.title,g.category,ysgs.status,ysgs.user_id,ysgs.created_time,ysgs.update_time")
|
|
|
+ , groupBy = "g.id,g.title,g.category,ysgs.status,ysgs.user_id")
|
|
|
public class YhShopGoodsView {
|
|
|
@DbField("g.id")
|
|
|
private Long goodsId;
|
|
|
@@ -37,17 +37,17 @@ public class YhShopGoodsView {
|
|
|
@DbField("group_concat(sku.spec_val,cast((ysgs.price/100) as decimal(10,2)),'元')")
|
|
|
private String skuDetail;
|
|
|
|
|
|
- @DbField("ysgs.created_time")
|
|
|
+ @DbField("any_value(ysgs.created_time)")
|
|
|
private Date createdTime;
|
|
|
|
|
|
- @DbField("ysgs.update_time")
|
|
|
+ @DbField("any_value(ysgs.update_time)")
|
|
|
private Date updateTime;
|
|
|
|
|
|
@DbIgnore
|
|
|
private List<YhShopGoodsSkuView> list;
|
|
|
|
|
|
@Data
|
|
|
- @SearchBean(tables = "goods_don_sku gs left join yh_shop_goods_rate ysgr on gs.id = ysgr.sku_id left join yh_shop_goods_sku ysgs on gs.id = ysgs.sku_id and ysgs.deleted is true :uid:",
|
|
|
+ @SearchBean(tables = "goods_don_sku gs inner join yh_shop_goods_rate ysgr on gs.id = ysgr.sku_id left join yh_shop_goods_sku ysgs on gs.id = ysgs.sku_id and ysgs.deleted is true :uid:",
|
|
|
where = "gs.status = true",
|
|
|
orderBy = "gs.months")
|
|
|
public static class YhShopGoodsSkuView{
|