Browse Source

sql加强判断

master
jianjun 4 years ago
parent
commit
14d5ef825a
  1. 26
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/datastats/DatsStatsDao.xml

26
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/datastats/DatsStatsDao.xml

@ -360,18 +360,18 @@
SELECT
orgId,
orgName,
GROUP_COUNT,
GROUP_RATIO,
GROUP_MEMBER_COUNT,
GROUP_MEMBER_RATIO,
TOPIC_COUNT,
TOPIC_RATIO,
ISSUE_COUNT,
ISSUE_RATIO,
PROJECT_COUNT,
PROJECT_RATIO,
PROJECT_CLOSED_COUNT,
PROJECT_CLOSED_RATIO
ifnull(GROUP_COUNT,0),
ifnull(GROUP_RATIO,0),
ifnull(GROUP_MEMBER_COUNT,0),
ifnull(GROUP_MEMBER_RATIO,0),
ifnull(TOPIC_COUNT,0),
ifnull(TOPIC_RATIO,0),
ifnull(ISSUE_COUNT,0),
ifnull(ISSUE_RATIO,0),
ifnull(PROJECT_COUNT,0),
ifnull(PROJECT_RATIO,0),
ifnull(PROJECT_CLOSED_COUNT,0),
ifnull(PROJECT_CLOSED_RATIO,0)
FROM
(
SELECT
@ -654,4 +654,4 @@
ORDER BY problem_resolved_count DESC
</select>
</mapper>
</mapper>

Loading…
Cancel
Save