Files
bl/help/查询超规精灵.sql
昔念 6c26e448fd ```
refactor(common): 移除未使用的XML解析测试代码

移除test_test.go中未完成的Mapxml函数和login/main.go中的
XML解析注释代码,清理无用的导入包,优化代码结构

BREAKING CHANGE: 删除了modules/config/model/map_moster_node.go
文件中的MapPit相关模型定义
```
2026-02-24 12:53:07 +08:00

8 lines
368 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 所有宠物ID + 对应记录总数去重前
SELECT
(data->>'ID')::INT AS pet_id, -- 宠物ID
COUNT(*) AS total_records -- 该宠物的总持有记录数
FROM "player_pet"
WHERE data->>'ID' IS NOT NULL -- 过滤无宠物ID的无效记录
GROUP BY (data->>'ID')::INT
ORDER BY total_records DESC, pet_id ASC; -- 按数量降序ID升序排列