feat(jd): 列表列对齐+主图投影+SKU 矩阵+删除链收口(B101/B102 服务端与后管)
This commit is contained in:
@@ -19,16 +19,17 @@
|
||||
是 P2 死列(BACKLOG B98-01)不随更新。 -->
|
||||
<insert id="upsertBatch">
|
||||
INSERT INTO biz_jd_product
|
||||
(company_id, user_id, task_id, shop_id, shop_name, product_code, sku_id,
|
||||
title, brand, brand_id, category_path, price_min, price_max, stock_total,
|
||||
sale_status, list_tab, jd_created_at, jd_updated_at,
|
||||
(company_id, user_id, task_id, shop_id, shop_name, product_code, sku_id, item_num, sku_count,
|
||||
health_score, title, brand, brand_id, category_path, price_min, price_max, stock_total,
|
||||
sale_status, list_tab, jd_created_at, jd_online_at, jd_updated_at,
|
||||
main_image_url, detail_url, attr_json, attr_count, image_count, collect_batch_id)
|
||||
VALUES
|
||||
<foreach collection="rows" item="row" separator=",">
|
||||
(#{row.companyId}, #{row.userId}, #{row.taskId}, #{row.shopId}, #{row.shopName},
|
||||
#{row.productCode}, #{row.skuId}, #{row.title}, #{row.brand}, #{row.brandId},
|
||||
#{row.productCode}, #{row.skuId}, #{row.itemNum}, #{row.skuCount},
|
||||
#{row.healthScore}, #{row.title}, #{row.brand}, #{row.brandId},
|
||||
#{row.categoryPath}, #{row.priceMin}, #{row.priceMax}, #{row.stockTotal},
|
||||
#{row.saleStatus}, #{row.listTab}, #{row.jdCreatedAt}, #{row.jdUpdatedAt},
|
||||
#{row.saleStatus}, #{row.listTab}, #{row.jdCreatedAt}, #{row.jdOnlineAt}, #{row.jdUpdatedAt},
|
||||
#{row.mainImageUrl}, #{row.detailUrl}, #{row.attrJson}, #{row.attrCount},
|
||||
#{row.imageCount}, #{row.collectBatchId})
|
||||
</foreach>
|
||||
@@ -37,6 +38,9 @@
|
||||
task_id = VALUES(task_id),
|
||||
shop_name = VALUES(shop_name),
|
||||
sku_id = VALUES(sku_id),
|
||||
item_num = VALUES(item_num),
|
||||
sku_count = VALUES(sku_count),
|
||||
health_score = VALUES(health_score),
|
||||
title = VALUES(title),
|
||||
brand = VALUES(brand),
|
||||
brand_id = VALUES(brand_id),
|
||||
@@ -47,6 +51,7 @@
|
||||
sale_status = VALUES(sale_status),
|
||||
list_tab = VALUES(list_tab),
|
||||
jd_created_at = VALUES(jd_created_at),
|
||||
jd_online_at = VALUES(jd_online_at),
|
||||
jd_updated_at = VALUES(jd_updated_at),
|
||||
detail_url = VALUES(detail_url),
|
||||
attr_json = VALUES(attr_json),
|
||||
@@ -80,8 +85,10 @@
|
||||
group_name 不在此联表:读侧按行集 group_id 批量取分组名补齐(一次查询,无逐行查询)。 -->
|
||||
<select id="selectProductPage" resultType="com.nanri.aiimage.modules.jd.model.entity.JdProductEntity">
|
||||
SELECT p.id, p.company_id, p.user_id, p.task_id, p.shop_id, p.shop_name, p.product_code, p.sku_id,
|
||||
p.item_num, p.sku_count, p.health_score,
|
||||
p.title, p.brand, p.brand_id, p.category_path, p.price_min, p.price_max, p.stock_total,
|
||||
p.sale_status, p.list_tab, p.jd_created_at, p.jd_updated_at, p.main_image_url, p.detail_url,
|
||||
p.sale_status, p.list_tab, p.jd_created_at, p.jd_online_at, p.jd_updated_at,
|
||||
p.main_image_url, p.detail_url,
|
||||
p.attr_json, p.attr_count, p.image_count, p.group_id, p.collect_batch_id, p.synced_at
|
||||
FROM biz_jd_product p
|
||||
WHERE 1=1 <include refid="productConds"/>
|
||||
|
||||
Reference in New Issue
Block a user