From e17e3b7f70fa5abc8341e64f1ffce5813bae4bc3 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 21 三月 2024 18:02:43 +0800 Subject: [PATCH] 调整 --- dujy-modules/dujy-demo/src/main/resources/mapper/demo/RsGeographyDataMapper.xml | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/dujy-modules/dujy-demo/src/main/resources/mapper/demo/RsGeographyDataMapper.xml b/dujy-modules/dujy-demo/src/main/resources/mapper/demo/RsGeographyDataMapper.xml index b641182..32f3e24 100644 --- a/dujy-modules/dujy-demo/src/main/resources/mapper/demo/RsGeographyDataMapper.xml +++ b/dujy-modules/dujy-demo/src/main/resources/mapper/demo/RsGeographyDataMapper.xml @@ -4,4 +4,27 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.dromara.demo.mapper.RsGeographyDataMapper"> + <select id="getGeographyData" resultType="java.util.Map"> + select b.type, count(id) as nums + from rs_geography_data a + right join (select '浜嬫晠鏄撳彂澶氬彂璺' as type, 1 as sort + union all + select '閲嶇偣鏃呮父閫氶亾' as type, 2 as sort + union all + select '閮芥睙鍫版櫙鍖�' as type, 3 as sort + union all + select '璀﹀姏閰嶅' as type, 4 as sort + union all + select '鎵撳洿鏂藉伐' as type, 5 as sort + union all + select '浜ら�氫簨鏁呮槗鍙戠偣' as type, 6 as sort + union all + select '閲嶇偣杩愯緭浼佷笟' as type, 7 as sort + union all + select '鍏氦绾胯矾' as type, 8 as sort + union all + select '瀹夊叏闅愭偅' as type, 9 as sort) b on a.type = b.type and a.status = 1 + group by b.type + order by b.sort + </select> </mapper> -- Gitblit v1.8.0