需求背景
目前由于拍卖天数不同会导致平台收费,因此需对拍卖天数上传平台时进行判断限制
需求描述
1.增加风控管理页面,风控管理页面拍卖listing刊登时在线天数限制功能
a.规则名称:拍卖listing刊登时在线天数限制
b.规则描述:美国站点只能传参(5,7,10)天;
英国站点只能传参(7)天;
德国站点只能传参(7,10)天;
传参其他天数不允许刊登
c.操作列:有启用/停用及查看操作日志按钮
2.功能上线后,默认为启用状态,
拍卖的listing上传到平台是需先校验拍卖天数:
美国站点只能传参(5,7,10)天;
英国站点只能传参(7)天;
德国站点只能传参(7,10)天;
传参其他天数不允许刊登,.在拍卖队列状态为上传失败,提示为:风控限制,拍卖天数为非免费天数




验证如下:
(1)测试数据:
美国中级店铺:5080
拍卖指定策略id:100027
(2)前置条件:在线listing+下架listing在线 >(美国中级店铺边界值=500)
SQL参考:
在线listing数量:206
select * from m_ebay_listing where OrderSourceID = '5080' and OnlineStatus=1 and AutoPublishStrategyId in ('100027');
select * from m_ebay_listing where OrderSourceID = '5080' and OnlineStatus=1 and productid in (select distinct itemid from Ap_AutoPublish_Ebay_Queue where `CustomerId`=1 and `MarketId`=2 and status = 'success' and Date>= '20240801' and Date <= '20240831' and SiteCode = 'US' and ordersourceid = '5080' and strategyid = '100027');
下架listing数量:349
select * from m_ebay_offline_listing where OrderSourceID = '5080' and onlinestatus =2 and AutoPublishStrategyId in ('100027');
select * from m_ebay_offline_listing where OrderSourceID = '5080' and onlinestatus =2 and productid in (select distinct itemid from Ap_AutoPublish_Ebay_Queue where `CustomerId`=1 and `MarketId`=2 and status = 'success' and Date>= '20240801' and Date <= '20240831' and SiteCode = 'US' and ordersourceid = '5080' and strategyid = '100027');
总数:select 206+349 =555
(3)拍卖模板配置:
获取拍卖天数为:1天 每小时可拍卖数量:
改成:【每日】可刊登拍卖listing数量 =(【每月】可刊登拍卖listing数量-(【当月】在线listing+下架队列))/ 当月剩余天数(本月天数 - 当前日期 )
预期结果:
5080:
select (500-555) / 18 =-3.0556 =-3
【每小时】刊登拍卖listing数量=店铺每日可刊登拍卖listing数量 / 刊登时长
预期结果:
5080:
select -3/ 3 =-1.0000
实际结果:符合以上预期
调度拍卖配置服务:GetAuctionConfigCalcuteService-dev
查看配置表数据:SQL参考:select * from store_auction_listing_quantity;

(3)进行拍卖策略刊登,在提前平台前调度风控控制服务。

提前获取满足拍卖模板中拍卖数量合理走模块化队列:
对应调度监控拍卖刊登数量服务:GetEbayAuctionCost-dev
预期结果:传参其他天数不允许刊登,.在拍卖队列状态为上传失败,提示为:风控限制,拍卖天数为非免费天数
实际结果:符合预期