SELECT
category,
COUNT(DISTINCT uid) AS sumUser,
COUNT(id) AS purchaseCount,
COUNT(
IF (reviewStatus = 1, TRUE, NULL)
) AS reviewPassCount
FROM
purchase_common pc
WHERE
createTime >=?
AND createTime <=?
AND LENGTH(category) >= 6
GROUP BY
categoryui