|
|
@@ -0,0 +1,121 @@
|
|
|
+package zs.payment.entity.mongodb.yunmall;
|
|
|
+
|
|
|
+import lombok.Getter;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import lombok.Setter;
|
|
|
+import org.bson.types.ObjectId;
|
|
|
+import org.springframework.data.annotation.Id;
|
|
|
+import org.springframework.data.mongodb.core.mapping.Document;
|
|
|
+import org.springframework.data.mongodb.core.mapping.Field;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 云商城-生态商品
|
|
|
+ */
|
|
|
+@Setter
|
|
|
+@Getter
|
|
|
+@NoArgsConstructor
|
|
|
+@Document(collection = "goods")
|
|
|
+public class Goods {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Goods.java 根据以下数据结构,补全字段和属性。数据结构如下:
|
|
|
+ * ```
|
|
|
+ * {
|
|
|
+ * "_id": "ObjectId(\"66b1c4bba9788a0732156193\")",
|
|
|
+ * "gd_id": "NumberLong(\"224737\")",
|
|
|
+ * "commission": 20.97,
|
|
|
+ * "commission_ratio": 2.1,
|
|
|
+ * "default_img": "http://qiyun.zhongsou.com/attachment/images/415/2024/07/mwT2tHNW2AnL5L52LPtA9FvPL9nNwt.jpg",
|
|
|
+ * "distribution_num": "NumberLong(\"0\")",
|
|
|
+ * "gd_color": "#000000",
|
|
|
+ * "gd_imgs": [
|
|
|
+ * "http://qiyun.zhongsou.com/attachment/images/415/2024/07/mwT2tHNW2AnL5L52LPtA9FvPL9nNwt.jpg",
|
|
|
+ * "http://qiyun.zhongsou.com/attachment/images/415/2024/03/ZNgKgK9nNWbR1iBpInr99wnknkko12.jpg",
|
|
|
+ * "http://qiyun.zhongsou.com/attachment/images/415/2024/03/y744H1jZRow2v28S42VO8827YaWX2s.jpg",
|
|
|
+ * "http://qiyun.zhongsou.com/attachment/images/415/2024/03/Q3vOtgvoq6On2xQvs7soGpPo267Xto.png",
|
|
|
+ * "http://qiyun.zhongsou.com/attachment/images/415/2024/03/g555A4MqXTZzAaQA80m9QUOBwctHAr.png",
|
|
|
+ * "http://qiyun.zhongsou.com/attachment/images/415/2024/03/UT3633UEAcjf3ZAA3FAe3WftWT8jjA.png"
|
|
|
+ * ],
|
|
|
+ * "gd_name": "荣事达(Royalstar)工美文创’景泰蓝铜火锅电炭两用加厚纯铜老北京涮肉木碳可水国潮火锅HG1890",
|
|
|
+ * "gd_price": 999,
|
|
|
+ * "gd_weight": 0,
|
|
|
+ * "max_price": 999,
|
|
|
+ * "pt_id": "NumberLong(\"1200158\")",
|
|
|
+ * "public_time": "NumberLong(\"1722926267423\")",
|
|
|
+ * "sales_volume": "NumberLong(\"0\")",
|
|
|
+ * "shop": {
|
|
|
+ * "shop_id": "NumberLong(\"13528\")",
|
|
|
+ * "shop_name": "荣事达",
|
|
|
+ * "telephone": "18601068213",
|
|
|
+ * "publicit_language": "荣事达",
|
|
|
+ * "shop_type": 1
|
|
|
+ * },
|
|
|
+ * "skus": [
|
|
|
+ * {
|
|
|
+ * "sku_id": "NumberLong(\"385249\")",
|
|
|
+ * "sku_img": "http://qiyun.zhongsou.com/attachment/images/415/2024/07/mwT2tHNW2AnL5L52LPtA9FvPL9nNwt.jpg"
|
|
|
+ * }
|
|
|
+ * ],
|
|
|
+ * "top_time": "NumberLong(\"0\")",
|
|
|
+ * "update_time": "NumberLong(\"1722926267423\")"
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ */
|
|
|
+ @Id
|
|
|
+ private ObjectId id;
|
|
|
+ @Field("gd_id")
|
|
|
+ private long gdId;
|
|
|
+ //佣金
|
|
|
+ @Field("commission")
|
|
|
+ private Double commission;
|
|
|
+ //佣金比例 , 默认带了%,计算时需要/100, 示例 2.1,默认为2.1%
|
|
|
+ @Field("commission_ratio")
|
|
|
+ private BigDecimal commissionRatio;
|
|
|
+ @Field("default_img")
|
|
|
+ private String defaultImg;
|
|
|
+ //分销数量
|
|
|
+ @Field("distribution_num")
|
|
|
+ private long distributionNum;
|
|
|
+ //商品颜色
|
|
|
+ @Field("gd_color")
|
|
|
+ private String gdColor;
|
|
|
+ //商品图片列表
|
|
|
+ @Field("gd_imgs")
|
|
|
+ private List<String> gdImgs;
|
|
|
+ //商品名称
|
|
|
+ @Field("gd_name")
|
|
|
+ private String gdName;
|
|
|
+ //商品价格
|
|
|
+ @Field("gd_price")
|
|
|
+ private BigDecimal gdPrice;
|
|
|
+ //商品重量
|
|
|
+ @Field("gd_weight")
|
|
|
+ private Double gdWeight;
|
|
|
+ //最大价格 , 目前来看=gd_price
|
|
|
+ @Field("max_price")
|
|
|
+ private BigDecimal maxPrice;
|
|
|
+ //品类id。 即b2c_product_type.pt_id
|
|
|
+ @Field("pt_id")
|
|
|
+ private long ptId;
|
|
|
+ //发布时间 时间戳(毫秒)
|
|
|
+ @Field("public_time")
|
|
|
+ private long publicTime;
|
|
|
+ //销售数量
|
|
|
+ @Field("sales_volume")
|
|
|
+ private long salesVolume;
|
|
|
+ //店铺信息
|
|
|
+ private Shop shop;
|
|
|
+ //商品信息
|
|
|
+ private List<Sku> skus;
|
|
|
+ @Field("top_time")
|
|
|
+ private long topTime;
|
|
|
+ //时间戳(毫秒)
|
|
|
+ @Field("update_time")
|
|
|
+ private long updateTime;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|