|
|
ProductIndex字段 | 库名-->表名-->字段名
|
|
|
|
|
|
### yh_shops-->product
|
|
|
ProductIndex字段 | yh_shops-->product
|
|
|
ProductIndex字段 | yh_shops库product表
|
|
|
product_id | product_id
|
|
|
product_skn | erp_product_id
|
|
|
shop_id | shop_id
|
...
|
...
|
@@ -63,22 +63,22 @@ brand_alif | brand_alif |
|
|
### yh_shops-->product_sort
|
|
|
ProductIndex字段 | product_sort
|
|
|
|
|
|
-----|-----| max_sort yh_shops-->product_sort-->sort_name `product_sort`.`max_sort_id` =`product`.`id` where `p`.`max_sort_id` = `product_sort`.`id`
|
|
|
max_sort_name | if(yh_shops-->product_sort-->status==0) max_sort_name=''else max_sort_name= concat(`p`.`max_sort_id`,':',`product_sort`.`sort_name`,':',`product_sort`.`order_by`)
|
|
|
-----|-----| max_sort yh_shops库product_sort表sort_name `product_sort`.`max_sort_id` =`product`.`id` where `p`.`max_sort_id` = `product_sort`.`id`
|
|
|
max_sort_name | if(yh_shops库product_sort表status==0) max_sort_name=''else max_sort_name= concat(`p`.`max_sort_id`,':',`product_sort`.`sort_name`,':',`product_sort`.`order_by`)
|
|
|
where `p`.`max_sort_id` = `product_sort`.`id`
|
|
|
middle_sort |yh_shops-->product_sort-->sort_name `product_sort`.`middle_sort_id` = `product`.`id` where `p`.`max_sort_id` = `product_sort`.`id`
|
|
|
middle_sort_name | if(yh_shops-->product_sort-->status==0) middle_sort_name=''else middle_sort_name= concat(`p`.`middle_sort_id`,':',`product_sort`.`sort_name`,':',`product_sort`.`order_by`)
|
|
|
middle_sort |yh_shops库product_sort表sort_name `product_sort`.`middle_sort_id` = `product`.`id` where `p`.`max_sort_id` = `product_sort`.`id`
|
|
|
middle_sort_name | if(yh_shops库product_sort表status==0) middle_sort_name=''else middle_sort_name= concat(`p`.`middle_sort_id`,':',`product_sort`.`sort_name`,':',`product_sort`.`order_by`)
|
|
|
where `p`.`middle_sort_id` = `product_sort`.`id`
|
|
|
small_sort | yh_shops-->product_sort-->sort_name `product_sort`.`small_sort_id` =`product`.`id`
|
|
|
small_sort | yh_shops库product_sort表sort_name `product_sort`.`small_sort_id` =`product`.`id`
|
|
|
where `p`.`small_sort_id` = `product_sort`.`id`
|
|
|
small_sort_name | if(yh_shops-->product_sort-->status==0) small_sort_name=''else small_sort_name= concat (`p`.`small_sort_id`,':',`product_sort`.`sort_name`,':',`product_sort`.`order_by`)
|
|
|
small_sort_name | if(yh_shops库product_sort表status==0) small_sort_name=''else small_sort_name= concat (`p`.`small_sort_id`,':',`product_sort`.`sort_name`,':',`product_sort`.`order_by`)
|
|
|
where `p`.`small_sort_id` = `product_sort`.`id`
|
|
|
is_instalment | yh_shops-->product-->is_instalment
|
|
|
country_id | yh_shops-->product-->country_id
|
|
|
is_instalment | yh_shops库product表is_instalment
|
|
|
country_id | yh_shops库product表country_id
|
|
|
|
|
|
|
|
|
### yh_shops-->product_price
|
|
|
ProductIndex字段 |yh_shops-->product_price `product.`id` = `product_price`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_price表 `product.`id` = `product_price`.`product_id`
|
|
|
-----|-----|
|
|
|
|
|
|
special_price | special_price
|
...
|
...
|
@@ -102,7 +102,7 @@ specialoffer |`product_price`.`sales_price` 除以 `product_price`.`market_pric |
|
|
is_discount | `product_price`.`sales_price` 除以 `product_price`.`market_price`
|
|
|
|
|
|
### yh_shops-->product_keywords
|
|
|
ProductIndex字段 |yh_shops-->product_keywords `product.`id` = `product_keywords`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_keywords `product.`id` = `product_keywords`.`product_id`
|
|
|
-----|-----|
|
|
|
product_keyword | product_keyword
|
|
|
|
...
|
...
|
@@ -120,7 +120,7 @@ product_keyword | product_keyword |
|
|
GROUP BY
|
|
|
`a`.`product_id`
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_colors `product.`id` = `product_colors`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_colors表 `product.`id` = `product_colors`.`product_id`
|
|
|
-----|-----|
|
|
|
color_ids|color_ids 把每个product对应的多个goods中的color_id拼起来
|
|
|
color_names|color_names 把每个product对应的多个goods中的color_name拼起来
|
...
|
...
|
@@ -167,7 +167,7 @@ FROM |
|
|
GROUP BY
|
|
|
`a`.`product_id`
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_standards `product.`id` = `product_standards`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_standards表 `product.`id` = `product_standards`.`product_id`
|
|
|
-----|-----|
|
|
|
standard_ids | standard_ids 来自product_standard_relation表的standard_id和parameter_make_id字段
|
|
|
standard_names|standard_names 来自product_standard_relation表的standard_id字段,standard表的standard_name字段,product_standard_relation表的parameter_make_id字段,parameter_make表的parameter_value字段
|
...
|
...
|
@@ -204,7 +204,7 @@ WHERE |
|
|
GROUP BY
|
|
|
`t`.`product_id`
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_sizes `product.`id` = `product_sizes`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_sizes表 `product.`id` = `product_sizes`.`product_id`
|
|
|
-----|-----|
|
|
|
sales_num | sales_num 来自一个product对应的多个goods的sales_num之和
|
|
|
storage_num|storage_num 来自一个product对应的多个goods的storage_num之和
|
...
|
...
|
@@ -229,7 +229,7 @@ size_names|size_names 来自一个product对应的多个goods通过storage的go |
|
|
`a`.`product_id`
|
|
|
)
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_styles `product.`id` = `product_styles`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_styles表 `product.`id` = `product_styles`.`product_id`
|
|
|
-----|-----|
|
|
|
style_ids|style_ids 将一个productId对应的product_style_relation表记录中的style_id拼起来
|
|
|
|
...
|
...
|
@@ -316,7 +316,7 @@ style_ids|style_ids 将一个productId对应的product_style_relation表记录 |
|
|
(`a`.`gender_cover` <> 0)
|
|
|
)
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_goods `product.`id` = `product_goods`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_goods表 `product.`id` = `product_goods`.`product_id`
|
|
|
-----|-----|
|
|
|
goods_list|goods_list
|
|
|
goods_list详情|
|
...
|
...
|
@@ -346,7 +346,7 @@ is_default| goods表的is_default |
|
|
GROUP BY
|
|
|
`t`.`product_id`
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_default_image `product.`id` = `product_default_image`.`product_id`
|
|
|
ProductIndex字段 |yh_shops库product_default_image表 `product.`id` = `product_default_image`.`product_id`
|
|
|
-----|-----|
|
|
|
default_images|default_images goods_images中is_default=Y的记录的image_url字段值
|
|
|
|
...
|
...
|
@@ -387,7 +387,7 @@ product_activity视图 |
|
|
`activity_product` `ap`
|
|
|
)
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_activities `product.`product_skn` = `product_activities`.`product_skn`
|
|
|
ProductIndex字段 |yh_shops库product_activities表 `product.`product_skn` = `product_activities`.`product_skn`
|
|
|
-----|-----|
|
|
|
activities|activities
|
|
|
activities字段详情|
|
...
|
...
|
@@ -473,13 +473,13 @@ WHERE |
|
|
GROUP BY
|
|
|
`product_search`.`product_skn`
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->product_search_brand_weight `product.`product_skn` = `product_search_brand_weight`.`product_skn`
|
|
|
ProductIndex字段 |yh_shops库product_search_brand_weight表 `product.`product_skn` = `product_search_brand_weight`.`product_skn`
|
|
|
-----|-----|
|
|
|
brand_weight| if(brand_weight==NULL)brand_weight=0 else brand_weight 来源:product_search 库int_value字段
|
|
|
|
|
|
|
|
|
### yh_shops-->product_activities_link
|
|
|
ProductIndex字段 |yh_shops-->product_activities_link `product.`product_skn` = `product_activities_link`.`product_skn`
|
|
|
ProductIndex字段 |yh_shops库product_activities_link表 `product.`product_skn` = `product_activities_link`.`product_skn`
|
|
|
-----|-----|
|
|
|
yohood_id|activities_id
|
|
|
|
...
|
...
|
@@ -510,7 +510,7 @@ yohood_id|activities_id |
|
|
LIMIT 1
|
|
|
|
|
|
``
|
|
|
ProductIndex字段 |yh_shops-->base_pin_ratio `product.`product_skn` = `base_pin_ratio`.`product_skn`
|
|
|
ProductIndex字段 |yh_shops库base_pin_ratio表 `product.`product_skn` = `base_pin_ratio`.`product_skn`
|
|
|
-----|-----|
|
|
|
base_pin_ratio|base_pin_ratio 来源 free_size_product表base_pin_ratio字段
|
|
|
|
...
|
...
|
@@ -545,7 +545,7 @@ base_pin_ratio|base_pin_ratio 来源 free_size_product表base_pin_ratio字段 |
|
|
``
|
|
|
|
|
|
|
|
|
ProductIndex字段 |yh_shops-->broken_code `product.`product_skn` = `breaking_rate`.`breaking_rate`
|
|
|
ProductIndex字段 |yh_shops库broken_code表 `product.`product_skn` = `breaking_rate`.`breaking_rate`
|
|
|
-----|-----|
|
|
|
breaking_rate|breaking_rate 来源 nonfree_size_product表breaking_rate字段
|
|
|
|
...
|
...
|
|