From eecf59473c63d150d72975f52cc984e803829da1 Mon Sep 17 00:00:00 2001 From: xing <xingjs@qq.com> Date: 星期四, 23 二月 2023 12:04:57 +0800 Subject: [PATCH] 20230221@xingjs@提交官网一张图相关内容接口(优化完善sql) --- src/main/resources/mapper/show/OneMapMapper.xml | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/show/OneMapMapper.xml b/src/main/resources/mapper/show/OneMapMapper.xml index 9086928..adf97f7 100644 --- a/src/main/resources/mapper/show/OneMapMapper.xml +++ b/src/main/resources/mapper/show/OneMapMapper.xml @@ -62,8 +62,21 @@ </select> <!-- 鏁版嵁缁熻 涓嬭浇閲忕粺璁� type绫诲瀷锛�1-Shp鏂囦欢锛�2-涓撻鍥撅紝3-婧愭暟鎹紝4-涓氬姟鏁版嵁锛�5-绠¢亾鍒嗘瀽锛�6-缁熻鎶ュ憡 --> + <!-- 鏁版嵁缁熻 select type,count(*) from lf.sys_download group by type; --> <select id="countDownloads" resultType="java.util.Map"> - select type,count(*) from lf.sys_download group by type; + SELECT type, + count(*), + case type + WHEN '1' THEN 'Shp鏂囦欢' + WHEN '2' THEN '涓撻鍥�' + WHEN '3' THEN '婧愭暟鎹�' + WHEN '4' THEN '涓氬姟鏁版嵁' + WHEN '5' THEN '绠¢亾鍒嗘瀽' + WHEN '6' THEN '缁熻鎶ュ憡' + ELSE '0' + END as typename + FROM + lf.sys_download GROUP BY type,bak; </select> <!-- 缁熻椤圭洰鏄剧ず --> -- Gitblit v1.9.3