mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 14:49:37 +08:00
修改统计语句
This commit is contained in:
parent
5bf98bb248
commit
148f5cd7ed
@ -65,10 +65,11 @@
|
||||
<!-- 服务情况 -->
|
||||
<select id="serveStats" resultType="com.ics.admin.vo.MRStatsVo">
|
||||
<![CDATA[
|
||||
select ms.name name,count(ms.id) value
|
||||
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
|
||||
select type.dict_label name,count(zj.id) value from sys_dict_data type left join
|
||||
(select ms.value value,mr.id id
|
||||
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}
|
||||
) 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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user