|
@@ -157,10 +157,10 @@
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="queryAppsServiceData" parameterType="Map" resultType="Map">
|
|
<select id="queryAppsServiceData" parameterType="Map" resultType="Map">
|
|
|
- select a.app_id appId,a.`name`,count(1) count from c_service t
|
|
|
|
|
|
|
+ select * from (select a.app_id appId,a.`name`,count(1) serviceCount from c_service t
|
|
|
inner join c_route r on t.service_id = r.service_id and r.status_cd = '0'
|
|
inner join c_route r on t.service_id = r.service_id and r.status_cd = '0'
|
|
|
inner join c_app a on r.app_id = a.app_id and a.status_cd = '0'
|
|
inner join c_app a on r.app_id = a.app_id and a.status_cd = '0'
|
|
|
- group by a.app_id,a.`name`
|
|
|
|
|
|
|
+ group by a.app_id,a.`name`) c order by c.serviceCount desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|