@zengxiankui
2017-08-04T13:57:14.000000Z
字数 2406
阅读 958
回收宝
1、分组信息表:group
> db.getCollection('group').find({})
> db.group.find({})
{
"_id": ObjectId("58f19b03e4d20456a7a6ff0e"), #分组ID-主键,ObjectId类型;
"name": "iPhone" #分组名称;
}
2、成色信息表: quality
> db.getCollection('quality').find({})
> db.quality.find({})
{
"_id" : ObjectId("58f19b3ce4d20456a7a6ff19"), #成色ID-主键,ObjectId类型;
"name" : "89成新" #成色名称;
}
3、产品选项表: ProductOptions
> db.getCollection('ProductsOptions').find({})
> db.ProductsOptions.find({})
{
"_id" : ObjectId("58c917453d6c3d55b5f5ffc5"), #记录ID-主键,ObjectId类型;
"pid" : "11572", #比价产品ID(PID);
"time" : "2017-03-15 18:28:21", #更新时间;
"data" : { #选项数据;
"itemid" : 11572, #同pid;
"standardprice" : "", #标准价/基准价;
"maxprice" : 0, #最高价;
"productname" : "尼康DX 18-300mm", #产品名;
"picurl" : "",
"items" : [ #比价选项分组列表;
{
"type" : "radio", #比价选项分组类型;
"name" : "1. 拆机维修史", #比价选项分组名称;
"desc" : "单选", #比价选项分组描述;
"optionList" : [ #比价选项列表;
{
"id" : "2311", #比价选项ID;
"name" : "无拆修" #比价选项名称;
},
{
"id" : "2312",
"name" : "有拆修"
},
{},
......
] ### optionList END
},
{},
......
] ### items END
} ### data END
}
4、比价数据表: data
> db.getCollection('data').find({})
> db.data.find({})
{
"_id" : ObjectId("58f1d114e4d20456a7a70519"), #比价ID-主键,ObjectId类型;
"group" : "58f1b766e4d20456a7a701a6", #分组ID;
"name" : "华为 G9 Plus", #比价产品名称;
"createTime" : "2017-04-15 15:51:48", #创建时间;
"status" : 1, #状态;
"quality" : { #成色列表;
"58f1b772e4d20456a7a701aa" : { #成色ID;
"hsb" : { #估价1.0价格数据;
"isUpdate" : 1, #是否允许更新;
"pid" : 4294, #比价产品PID;
"options" : "1101-2101-4101-5202-6101-7304-8301", #比价选项;
"price" : 64100, #价格;
"updateTime" : "2017-05-13 13:57:40" #更新时间;
},
"hsb2" : { #估价2.0价格数据;
"isUpdate" : 1, #是否允许更新;
"pid" : null, #比价产品PID;
"options" : "" #比价选项;
"price" : 0, #价格;
},
"ahs" : { #爱回收价格数据;
"isUpdate" : 1, #是否允许更新;
"pid" : 23346, #比价产品PID;
"options" : "2128;2120;2114;2067;2106;2134;3", #比价选项;
"price" : 555, #价格;
"updateTime" : "2017-05-13 13:57:40" #更新时间;
}
}
}
}
5、价格对照表: comparison
> db.getCollection('comparison').find({})
> db.comparison.find({})
{
"_id" : ObjectId("58c7a66b2b1f15fa604a2bab"), #记录ID-主键,ObjectId类型;
"updateTime" : "2017-03-16 14:07:03", #更新时间;
"group" : "58be713d3d6c3d3a0a097e58", #分组ID;
"ahsPrice" : "200", #爱回收的价格;
"hsbPrice" : "500", #回收宝的价格;
"id" : ObjectId("58c79a0f3d6c3d304078c3be") #比价数据ID:data._id;
}
6、价格更新记录表: priceUpdateRecord
db.getCollection('priceUpdateRecord').find({})
db.priceUpdateRecord.find({})
{
"_id" : ObjectId("5902013ee91cc75d487a2136"), #记录ID-主键,ObjectId类型;
"updateTime" : "2017-04-27 22:33:34", #更新时间;
"oldPrice" : 830, #老价格;
"newPrice" : 735, #新价格;
"id" : "58f4a560e4d20456a7a728b7", #比价数据ID:data._id
"ahsPriceUpdateKey" : "quality.58f1b772e4d20456a7a701aa.ahs.price" #爱回收价格更新KEY
}
- 备注: priceUpdateRecord表为预留表,暂时没有使用;