- 2024-03-06 14:48:18, 由 劳世仙 创建。
-
2024-03-06 15:35:44, 由 劳世仙 添加备注。
-
2024-03-06 15:35:56, 由 劳世仙 启动。
修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2024-03-06 15:35:55"。
修改了 任务状态,旧值为 "wait",新值为 "doing"。
-
2024-03-12 13:52:43, 由 劳世仙 添加备注。
【listing优惠券记录】【数据库相关信息】
数据主要读取为starrock,
select
count(1)
from
t_amazon_listing cal
left join t_amazon_listing_extra_parent_asin lepa on
lepa.marketplace_id = cal.marketplace_id
AND lepa.asin = cal.asin
AND lepa.asin_type = 0
left join t_amazon_listing_amount la on
cal.id = la.id
left join t_amazon_coupon_listing_remark lr on
cal.id = lr.listing_id
left join t_amazon_coupon c on
c.source_id = cal.source_id
left join t_amazon_coupon_expand ce ON
ce.coupon_id = c.coupon_id
and ce.department_id = c.department_id
left join t_amazon_coupon_asin ca ON
ca.asin = cal.asin
and ca.coupon_id = c.coupon_id
and ca.department_id = c.department_id
WHERE
cal.is_deleted = 0
and ce.data_status = 1
and c.department_id = 0
and c.start_date >= 20230202
and c.end_date <= 20240418
and cal.del_status = 0
and cal.status = 0


同步完成后在starrock数据库中分表的数据都会汇总到一个表


-
2024-03-13 17:43:22, 由 劳世仙 添加备注。
【文件导入】

导入优惠券活动后在优惠券活动页查看优惠券活动记录,状态为待提交



执行定时任务,把状态为待提交的优惠券活动创建任务并且提交处理


但是因为提交后的表爬虫库中的表测试环境和生产环境是同一个表,会导致ID被生产环境的数据占用,无法提交,并且测试环境的数据不会提交到亚马逊生成优惠券

需要把生产环境的数据写到测试环境,在执行定时任务获取数据

需要写入到测试环境以下表格中





执行定时任务获取优惠券状态
-
2024-03-19 11:47:21, 由 劳世仙 添加备注。
【失败原因次数统计】
执行定时任务对接的生产环境从报告中拉去数据并且同步至优惠券库


执行定时任务把优惠券数据写入到report表中

-
2024-03-20 13:45:34, 由 劳世仙 编辑。
修改了 截止日期,旧值为 "2024-03-19",新值为 "2024-03-26"。
-
2024-03-25 18:16:00, 由 劳世仙 添加备注。
【新版本条件】



-
2024-03-25 18:19:06, 由 劳世仙 添加备注。
【各个条件的字段取值数据库表如下--来源:张粤利】
20240219-优惠券策略字段整理
策略过滤:源数据(不写表名,默认t_amazon_listing,不写库名,默认zhcxkj_center_listing_amazon)
1、刊登方式(publish_type):listing_method
2、销量(sales_min_volume,sales_max_volume):t_amazon_sales_aggregate
3、可售天数(num_days_available_min,num_days_available_max):available_day
4、库龄0-90(library_age_min_l1,library_age_max_l1):plat_manage_inventory_health_report.inv_age_0_to_90_days
5、库龄90+(library_age_min_l6,library_age_max_l6):plat_manage_inventory_health_report.inv_age_90_plus_days
6、发货仓库可用库存(sellable_inventory_min,sellable_inventory_max):dev_zhcxkj_center_warehouse.dynamic_inventory.available_num
7、发货方式(despatch_mode):delivery_type
8、上架天数(day_issued_min,day_issued_max):TIMESTAMPDIFF(DAY,publish_time,NOW())
9、上架时间(issued_time_min,issued_time_max):publish_time
10、ASIN首单(天数)(asin_first_order_min,asin_first_order_max):TIMESTAMPDIFF(DAY,t_amazon_listing_extra_asin_ae.asin_first_order_time,NOW())
11、ASIN首单时间(asin_first_order_time_min,asin_first_order_time_max):t_amazon_listing_extra_asin_ae.asin_first_order_time
12、SKU开发类型(sku_development_type,多个时英文分号分开):dev_zhcxkj_center_product.rb_product.develop_type
产品开发类型(自主开发 = 1,供应商后台 = 2,指定开发 = 3,智能选品 = 4,销售提报_FBA新品 = 5,智选转FBA提报 = 6)
13、节日标签(festival_labels,多个时英文分号分开):t_amazon_listing_tag.type = 1 and t_amazon_listing_tag.tag_id
14、指定SKU(coupon_strategy_sku):sku
15、销售类型(sales_type,多个时英文分号分开):irobotbox.RB_Amazon_Product_Base.SellerType -> redis.SellerType.sellerTypes:0(hash)
销售类型(0:跟卖:1:自主上架)
如果不是0,即在表中找不到数据或者不为0都按照类型为1自主上架处理
16、促销(is_promotion):t_amazon_listing_amount_1.discount_start,t_amazon_listing_amount_1.discount_end,对比优惠券开始结束时间(老版逻辑没改动)
17、指定渠道SKU(coupon_strategy_order_source_sku):msku
18、否定渠道SKU(coupon_strategy_order_source_sku_deny):msku not in
19、ASIN首次到货时间(asin_first_time_min,asin_first_time_max):t_amazon_listing_extra_asin.asin_first_arrival_time
20、可售库存(Listing)(listing_sold_num_max,listing_sold_num_min):quality
21、ASIN关联订单合计利润率(month_avg_profits_min,month_avg_profits_max):dev_zhcxkj_center_product.rb_report_sales_product_profit.month_avg_profits
22、上架人员(add_admin_id,多个时英文分号分开):listing_person_id -
2024-03-26 15:53:43, 由 劳世仙 添加备注。
继续
的备注





-
2024-03-26 22:02:43, 由 劳世仙 完成。
修改了 总计消耗,旧值为 "0",新值为 "188"。
修改了 实际完成,旧值为 "",新值为 "2024-03-26 22:02:38"。
修改了 任务状态,旧值为 "doing",新值为 "done"。
修改了 预计剩余,旧值为 "188",新值为 "0"。
修改了 由谁完成,旧值为 "",新值为 "laoshixian"。
-
2024-03-27 08:47:57, 由 周杰 关闭。
修改了 任务状态,旧值为 "done",新值为 "closed"。
修改了 指派给 ,旧值为 "laoshixian",新值为 "closed"。
修改了 由谁关闭,旧值为 "",新值为 "zhoujie"。
修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2024-03-27 08:47:57"。
修改了 关闭原因,旧值为 "",新值为 "done"。
-
2024-03-28 15:52:40, 由 劳世仙 添加备注。
【同步报告】

执行定时任务生成同步任务


同步生成优惠券报告数据,状态会变成5(同步成功)

在执行定时会任务


| 所属迭代 | 亚马逊产品线 - listingV1切换项目 |
|---|---|
| 所属模块 | 技术中心-需求池 亚马逊 |
| 相关需求 | IMS-AMZ:优惠券系统迁移到新java架构 |
| 指派给 | Closed 于 2024-03-28 15:52:40 |
| 任务类型 | 测试 |
| 任务标签 | 初始 |
| 开发组 | 运营开发组 |
| 任务状态 | 已关闭 |
| 进度 | 100% |
| 优先级 | P2 |
| 关键词 | |
| 抄送给 |
| 由谁创建 | 劳世仙 于 2024-03-06 14:48:18 |
|---|---|
| 由谁完成 | 劳世仙 于 2024-03-26 22:02:38 |
| 由谁取消 | 暂无 |
| 由谁关闭 | 周杰 于 2024-03-27 08:47:57 |
| 关闭原因 | 已完成 |
| 最后编辑 | 劳世仙 于 2024-03-28 15:52:40 |
| 团队 | 最初预计 | 总计消耗 | 预计剩余 |
|---|
工时信息
| 最初预计 | 188工时 |
|---|---|
| 总计消耗 | 188工时 |
| 预计剩余 | 0工时 |
| 预计开始 | 2024-03-06 |
| 实际开始 | 2024-03-06 |
| 截止日期 | 2024-03-26 |
【优惠券策略数据库相关信息】
执行日志表
操作日志表
执行策略定时任务
策略执行完成后