Skip to content

Commit

Permalink
fix pg mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Dec 9, 2024
1 parent 21d939b commit 075e1a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
count(h.id) as total_host, sum(h.available_processors) as total_processor,
sum(h.total_memory_size) as total_memory, sum(h.total_disk) as total_disk, count(s.id) as total_service
from
cluster c left join user u on c.create_by = u.id
cluster c left join "user" u on c.create_by = u.id
left join host h on c.id = h.cluster_id
left join service s on c.id = s.cluster_id
where c.id = #{id}
group by c.id, u.nickname
limit 1
</select>

Expand Down

0 comments on commit 075e1a0

Please sign in to comment.