修改统计语句

This commit is contained in:
lujiang 2024-10-04 17:49:54 +08:00
parent 5bf98bb248
commit 148f5cd7ed

View File

@ -65,10 +65,11 @@
<!-- 服务情况 --> <!-- 服务情况 -->
<select id="serveStats" resultType="com.ics.admin.vo.MRStatsVo"> <select id="serveStats" resultType="com.ics.admin.vo.MRStatsVo">
<![CDATA[ <![CDATA[
select ms.name name,count(ms.id) value select type.dict_label name,count(zj.id) value from sys_dict_data type left join
from ics_meeting_serve ms,ics_meeting_reservation mr (select ms.value value,mr.id id
where ms.rid=mr.id and ms.delete_flag=0 and mr.delete_flag=0 and mr.status>7 and mr.start between #{start} and #{end} from ics_meeting_serve ms,ics_meeting_reservation mr where ms.rid=mr.id and ms.delete_flag=0 and mr.delete_flag=0 and mr.status>7 and mr.start between #{start} and #{end}
GROUP BY ms.name order by ms.id ) zj on type.dict_value=zj.value
where type.dict_type='mm_service' and type.status=0 group by type.dict_label order by type.dict_sort
]]> ]]>
</select> </select>