需求背景
目前由于店铺等级对应免拍卖listing数量不同,超刊会导致平台收费,因此需对店铺拍卖listing条数上传平台时进行判断限制
需求描述
1.风控管理页面增加店铺拍卖lisring刊登条数限制功能
a.规则名称:店铺拍卖lisring刊登条数限制
b.规则描述:美国站点高级店铺1000中级店铺500初级店铺250;
英国站点高级店铺1000中级店铺600初级店铺100;
德国站点高级店铺250中级店铺100初级店铺40;
超过限制不允许刊登
c.操作列:有启用/停用及查看操作日志按钮
2.功能上线后,默认为启用状态,
拍卖的listing上传到平台是需先校验店铺本月站点时间(站点时间本月1号0点到当前时间)上传成功的拍卖listing数:
美国站点高级店铺1000中级店铺500初级店铺250;
英国站点高级店铺1000中级店铺600初级店铺100;
德国站点高级店铺250中级店铺100初级店铺40;
按站点店铺等级,进行判断,若上传成功+等待拍卖中的listing大于等于边界值,则不允许刊登,在拍卖队列状态为上传失败,提示为:风控限制,拍卖数量超过免费拍卖数量










验证如下:
(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