[步骤]
SELECT'allegro',
a.SiteCode,
a.FailureReason,
COUNT( 1 ) AS '失败次数统计'
FROM
ap_autopublish_allegro_queue a
WHERE
a.CustomerId = 1
and a.MarketId=67
AND `Status` = 'failure'
AND a.Time >= '2022-08-16 00:00:00'
GROUP BY
a.SiteCode,
a.FailureReason
ORDER BY COUNT(1) DESC

例如:针对原因:ProductValidationException;productSet[0].product;Unable to create product without proper values in all required parameters: [Brand]
ERP查询结果21条:

接口请求结果也是21条:

智能刊登平台数据库只有18条,说明我们的数据库数据同步存在问题



