重现步骤

[步骤]

策略:51132


[结果]

系统SKU

14856289
14863742
14863743
14864112
14873742
14874362
14894029
14902571

[期望]

期望是策略生成的多变体组合产品

历史记录  
  1. 2022-09-08 09:38:12, 由 李乐同 创建。
  2. 2022-09-08 09:53:16, 由 shilin 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决日期,旧值为 "",新值为 "2022-09-08 09:51:47"。
    修改了 指派给 ,旧值为 "shilin",新值为 "liletong"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "shilin"。

    已添加限制:


    且改代码需要重构,否则维护会步入困难


    多属性刊登逻辑新增代码

    其他刊登新增代码

  3. 2022-09-08 11:23:27, 由 李乐同 编辑。
    修改了 影响环境,旧值为 "622,",新值为 "622"。
    修改了 重现步骤,区别为:
    004- [期望]
    004+ 系统SKU
    005- 期望是策略生成的多变体组合产品
    005+ 1485628914863742148637431486411214873742148743621489402914902571
    006-
    006+ [期望]
    007+ 期望是策略生成的多变体组合产品
    008+
    004- <img src="{214154.png}" alt="" /><br /><p>[期望]</p>
    004+ <p>系统SKU</p>
    005- <p>期望是策略生成的多变体组合产品</p>
    005+ <p>14856289<br />14863742<br />14863743<br />14864112<br />14873742<br />14874362<br />14894029<br />14902571<img src="{214154.png}" alt="" /></p>
    006- <p><img src="{214156.png}" alt="" /></p>
    006+ <p>[期望]</p>
    007+ <p>期望是策略生成的多变体组合产品</p>
    008+ <p><img src="{214156.png}" alt="" /></p>
  4. 2022-09-17 10:14:18, 由 李乐同 指派给 shilin。
    修改了 指派给,旧值为 "liletong",新值为 "shilin"。
    发布后,没有新生数据,验证不了。策略试运行有满足条件数据,请调试为什么没有执行出数据
  5. 2022-09-19 10:18:55, 由 shilin 添加备注。

    第一,请不要设置刊登时间限制!!!!

    第二,多属性变体刊登逻辑参考了 EBay 平台,AliExpress 多属性刊登逻辑,就是从这两者抄的代码。

    Ebay 平台中,优化了查询逻辑,按终审时间来切块查询,如果没有指定终审时间,则终审时间为截止今天的前两天的默认条件。


    如果你需要知道这块的需求,找产品,作为开发者我也不清楚这里的需求。


    这是生成的SQL


    SELECT `t1`.`CustomerId` AS `CustomerId`,  `t1`.`Sku` AS `Sku`,  `t1`.`RealSku` AS `RealSku`,  `t1`.`CustomSku` AS `CustomSku`,  `t1`.`IsVariant` AS `IsVariant`,  `t1`.`IsMainVariant` AS `IsMainVariant`,  `t1`.`ParentId` AS `ParentId`,  `t1`.`Id` AS `Id`,  `t1`.`LogisticsAttribute` AS `LogisticsAttribute`,  `t1`.`FinalJudgmentStatus` AS `FinalJudgmentStatus`,  `t1`.`FinalJudgmentTime` AS `FinalJudgmentTime`,  `t1`.`AccurateKeywords` AS `AccurateKeywords`,  `t1`.`BrandId` AS `BrandId`,  `t1`.`BrandName` AS `BrandName`,  `t1`.`CartonPcsNum` AS `CartonPcsNum`,  `t1`.`CategoryId` AS `CategoryId`,  `t1`.`CategoryIds` AS `CategoryIds`,  `t1`.`FirstCategoryId` AS `FirstCategoryId`,  `t1`.`Color` AS `Color`,  `t1`.`DeclarationCode` AS `DeclarationCode`,  `t1`.`DeclarationLocalName` AS `DeclarationLocalName`,  `t1`.`DeclarationName` AS `DeclarationName`,  `t1`.`DeclarationPrice` AS `DeclarationPrice`,  `t1`.`DevelopmentType` AS `DevelopmentType`,  `t1`.`EditStatus` AS `EditStatus`,  `t1`.`GrossWeight` AS `GrossWeight`,  `t1`.`GroupSkuId` AS `GroupSkuId`,  `t1`.`Height` AS `Height`,  `t1`.`IsDelete` AS `IsDelete`,  `t1`.`IsGroup` AS `IsGroup`,  `t1`.`RiskInfringement` AS `RiskInfringement`,  `t1`.`Length` AS `Length`,  `t1`.`Material` AS `Material`,  `t1`.`MaxPurchasePrice` AS `MaxPurchasePrice`,  `t1`.`MinPurchasePrice` AS `MinPurchasePrice`,  `t1`.`Name` AS `Name`,  `t1`.`NameEn` AS `NameEn`,  `t1`.`NetWeight` AS `NetWeight`,  `t1`.`PackageHeight` AS `PackageHeight`,  `t1`.`PackageLength` AS `PackageLength`,  `t1`.`PackageWeight` AS `PackageWeight`,  `t1`.`PackageWidth` AS `PackageWidth`,  `t1`.`PurchasePrice` AS `PurchasePrice`,  `t1`.`StrongPlug` AS `StrongPlug`,  `t1`.`StrongPlugItem` AS `StrongPlugItem`,  `t1`.`Size` AS `Size`,  `t1`.`ShoeTightness` AS `ShoeTightness`,  `t1`.`StartBatch` AS `StartBatch`,  `t1`.`State` AS `State`,  `t1`.`SuitableforGender` AS `SuitableforGender`,  `t1`.`SupplyPrice` AS `SupplyPrice`,  `t1`.`Type` AS `Type`,  `t1`.`Width` AS `Width` FROM (SELECT `CustomerId`,  `Sku`,  `CustomSku`,  `IsVariant`,  `IsMainVariant`,  `ParentId`,  `Name`,  `NameEn`,  `BrandId`,  `BrandName`,  `Material`,  `FirstCategoryId`,  `CategoryId`,  `CategoryIds`,  `State`,  `StartBatch`,  `RiskInfringement`,  `Type`,  `LogisticsAttribute`,  `StrongPlug`,  `StrongPlugItem`,  `PurchasePrice`,  `MinPurchasePrice`,  `MaxPurchasePrice`,  `SupplyPrice`,  `Color`,  `Size`,  `PackageWeight`,  `GrossWeight`,  `NetWeight`,  `Length`,  `Width`,  `Height`,  `PackageLength`,  `PackageWidth`,  `PackageHeight`,  `DevelopmentType`,  `FinalJudgmentTime`,  `EditStatus`,  `DeclarationPrice`,  `AccurateKeywords`,  `FinalJudgmentStatus`,  `DeclarationName`,  `DeclarationCode`,  `SuitableforGender`,  `ShoeTightness`,  `CartonPcsNum`,  `IsGroup`,  `GroupSkuId`,  `DeclarationLocalName`,  `IsDelete`,  `RealSku`,  `LastModifierId`,  `LastModifier`,  `LastModificationTime`,  `CreatorId`,  `Creator`,  `CreationTime`,  `Id`  FROM `P_Product`) t1 Left JOIN (SELECT `CustomerId` AS `CustomerId`, `Sku` AS `Sku` FROM `Ap_AutoPublish_AliExpress_AllSku` WHERE ((((`CustomerId` = 1) AND (`MarketId` = 57)) AND  (`StrategyId` = 51132)) AND (`OrderSourceId` = 10956))) t2 ON ((`t1`.`CustomerId` = `t2`.`CustomerId`) AND (`t1`.`RealSku` = `t2`.`Sku`)) WHERE (((((((((((((((`t1`.`CustomerId` = 1) AND NOT (`t1`.`IsDelete` = 1)) AND  (`t1`.`FinalJudgmentStatus` = 1)) AND (((`t1`.`Sku` like concat('ZN', '%')) AND (CASE  WHEN (`t1`.`IsGroup` = TRUE) THEN TRUE  ELSE FALSE END) = 1) AND  (`t1`.`IsVariant` = 1))) AND  (`t2`.`Sku` = '' OR `t2`.`Sku` IS NULL)) AND (`t1`.`FinalJudgmentTime` >= ' 2022/9/17 0:00:00')
                       ) AND (`t1`.`FinalJudgmentTime` <= ' 2022/9/19 23:59:59')
                      ) AND (`t1`.`RiskInfringement` IN (1))) AND  (`t1`.`PackageLength` <= 65)) AND (`t1`.`PackageWidth` <= 65)) AND  (`t1`.`PackageHeight` <= 65)) AND  (((`t1`.`PackageLength` + `t1`.`PackageWidth`) + `t1`.`PackageHeight`) <= 90)) AND  ((CASE WHEN (`t1`.`PackageWeight` = 0) THEN `t1`.`GrossWeight` ELSE `t1`.`PackageWeight` END) <= 2000)) AND (NOT EXISTS(SELECT *  FROM `M_AliExpress_Listing` WHERE (((((`CustomerId` = `t1`.`CustomerId`) AND  (`OrderSourceId` = 10956)) AND (`Sku` = `t1`.`RealSku`)) AND  (`OnlineStatus` IN (1, 4))) AND (`Type` = 4))))) AND  (NOT EXISTS(SELECT *  FROM `M_AliExpress_Listing` WHERE (((((`CustomerId` = `t1`.`CustomerId`) AND (`OrderSourceId` = 10956)) AND  (`Sku` = `t1`.`RealSku`)) AND (`OnlineStatus` IN (1, 4))) AND (`Type` = 4))))) ORDER BY `t1`.`Id` DESC LIMIT 0,100 
    SQL 去除时间后,有数据,不去除,没有数据,符合抄的代码逻辑。


  6. 2022-09-19 10:22:41, 由 shilin 指派给 李乐同。
    修改了 指派给,旧值为 "shilin",新值为 "liletong"。

    请找产品


    任务地址:[点击跳转]

    需求地址:[点击跳转]

  7. 2022-09-22 12:22:35, 由 李乐同 指派给 shilin。
    修改了 指派给,旧值为 "liletong",新值为 "shilin"。

    按SQL搜索有满足的数据。没有执行出数据

  8. 2022-09-22 15:50:31, 由 shilin 指派给 李乐同。
    修改了 指派给,旧值为 "shilin",新值为 "liletong"。
    关闭这个策略,复制一个,重试。
  9. 2022-09-22 16:56:28, 由 李乐同 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "liletong",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "liletong"。
    修改了 关闭日期,旧值为 "",新值为 "2022-09-22 16:56:28"。
  10. 2023-11-17 09:52:17, 由 刘超 编辑。
    修改了 所属模块,旧值为 "1659",新值为 "1877"。
所属项目 技术中心-需求池
所属模块 多平台   java智能刊登
所属计划
所属迭代
Bug类型
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人
测试责任人
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2022-09-22 16:56:28
截止日期 0000-00-00
上线时间
上线时效
操作系统 Windows
浏览器 firefox系列
关键词
抄送给
由谁创建 李乐同 于 2022-09-08 09:38:12
影响环境 622
由谁解决 shilin 于 2022-09-08 09:51:47
解决版本
解决方案 程序BUG
由谁关闭 李乐同 于 2022-09-22 16:56:28
最后修改 刘超 于 2023-11-17 09:52:09
相关Bug