diff options
| author | wangwei <[email protected]> | 2018-12-22 19:36:43 +0800 |
|---|---|---|
| committer | wangwei <[email protected]> | 2018-12-22 19:36:43 +0800 |
| commit | 8fbe31eb6c544e5df869e656bb8a4d18da40836b (patch) | |
| tree | 7425518a5d286d65cdd9df475bf8435548139b45 | |
| parent | 80c656705561da4b8b99d50746170d00ace273a5 (diff) | |
完善sql别名
| -rw-r--r-- | src/main/resources/mybatis/mapper/EventsMapper.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/mybatis/mapper/EventsMapper.xml b/src/main/resources/mybatis/mapper/EventsMapper.xml index ffab704..a73ee45 100644 --- a/src/main/resources/mybatis/mapper/EventsMapper.xml +++ b/src/main/resources/mybatis/mapper/EventsMapper.xml @@ -247,15 +247,15 @@ <select id="getHttpsMonitor" resultType="com.nis.galaxy.domain.EventsNameNumTime"> <![CDATA[ SELECT b.name AS name ,a.num AS num,#{push} AS time FROM - (SELECT cfg_id AS name,SUM(sum) AS num + (SELECT cfg_id AS cfgId,SUM(sum) AS num FROM ntc_pz_report WHERE report_time > #{start} AND report_time < #{end} AND service = #{serviceId} - GROUP BY name) a + GROUP BY cfgId) a LEFT JOIN (SELECT compile_id as compileId,cfg_desc as name FROM ui_cfg_index_info) b - on a.name = b.compileId + on a.cfgId = b.compileId ]]> </select> <!--端口信息--> |
