|
|
@@ -6,6 +6,7 @@ import com.ejlchina.searcher.bean.SearchBean;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -15,8 +16,8 @@ import java.util.List;
|
|
|
@Data
|
|
|
@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 = "g.status = true and g.deleted = true and sku.status is true"
|
|
|
- , groupBy = "g.id,g.title,g.category,ysgs.status,ysgs.user_id")
|
|
|
+ where = "ysgs.deleted is true and g.status = true and g.deleted = true and sku.status is true"
|
|
|
+ , groupBy = "g.id,g.title,g.category,ysgs.status,ysgs.user_id,ysgs.created_time,ysgs.update_time")
|
|
|
public class YhShopGoodsView {
|
|
|
@DbField("g.id")
|
|
|
private Long goodsId;
|
|
|
@@ -36,6 +37,12 @@ public class YhShopGoodsView {
|
|
|
@DbField("group_concat(sku.spec_val,cast((ysgs.price/100) as decimal(10,2)),'元')")
|
|
|
private String skuDetail;
|
|
|
|
|
|
+ @DbField("ysgs.created_time")
|
|
|
+ private Date createdTime;
|
|
|
+
|
|
|
+ @DbField("ysgs.update_time")
|
|
|
+ private Date updateTime;
|
|
|
+
|
|
|
@DbIgnore
|
|
|
private List<YhShopGoodsSkuView> list;
|
|
|
|