|
|
|
@ -3,9 +3,9 @@ |
|
|
|
<mapper namespace="org.springblade.modules.weixin.mapper.WeChatUserMapper"> |
|
|
|
<mapper namespace="org.springblade.modules.weixin.mapper.WeChatUserMapper"> |
|
|
|
|
|
|
|
|
|
|
|
<select id="buyCount" resultType="org.springblade.modules.weixin.dto.BuyCount"> |
|
|
|
<select id="buyCount" resultType="org.springblade.modules.weixin.dto.BuyCount"> |
|
|
|
SELECT |
|
|
|
SELECT a.buyer_phone AS phone, COUNT(a.buyer_phone) AS `count` |
|
|
|
a.buyer_phone AS phone, |
|
|
|
FROM eh_order AS a |
|
|
|
count(a.buyer_phone) AS count |
|
|
|
WHERE a.is_deleted = 0 AND `status` IN (2, 3, 4) |
|
|
|
FROM eh_order AS a WHERE a.is_deleted = 0 GROUP BY a.buyer_phone |
|
|
|
GROUP BY a.buyer_phone |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
</mapper> |
|
|
|
|