|
|
|
@ -75,15 +75,15 @@
|
|
|
|
|
sum(wl_cgss) as wl_cgss, --物理实验室-常规(室数)
|
|
|
|
|
sum(wl_tjss) as wl_tjss, --物理实验室-探究(室数)
|
|
|
|
|
sum(wl_yqsss) as wl_yqsss, --物理实验室-仪器室(室数)
|
|
|
|
|
0 as wl_pbl, --物理配备率
|
|
|
|
|
'0%' as wl_pbl, --物理配备率
|
|
|
|
|
sum(hx_cgss) as hx_cgss, --化学实验室-常规(室数)
|
|
|
|
|
sum(hx_tjss) as hx_tjss, --化学实验室-探究(室数)
|
|
|
|
|
sum(hx_yqsss) as hx_yqsss, --化学实验室-仪器室(室数)
|
|
|
|
|
0 as hx_pbl, --化学配备率
|
|
|
|
|
'0%' as hx_pbl, --化学配备率
|
|
|
|
|
sum(sw_cgss) as sw_cgss, --生物实验室-常规(室数)
|
|
|
|
|
sum(sw_tjss) as sw_tjss, --生物实验室-探究(室数)
|
|
|
|
|
sum(sw_yqsss) as sw_yqsss, --生物实验室-仪器室(室数)
|
|
|
|
|
0 as sw_pbl, --生物配备率
|
|
|
|
|
'0%' as sw_pbl, --生物配备率
|
|
|
|
|
sum(dljs) as dljs, --地理教室-室数
|
|
|
|
|
sum(lsjs) as lsjs, -- 历史教室-室数
|
|
|
|
|
sum(tyjsjs) as tyjsjs, -- 通用技术教室-室数
|
|
|
|
@ -95,23 +95,23 @@
|
|
|
|
|
sum(xxkx_yqsmj) as xxkx_yqsmj,
|
|
|
|
|
sum(xxkx_yqyppz) as xxkx_yqyppz,
|
|
|
|
|
sum(xxkx_yqypjs) as xxkx_yqypjs,
|
|
|
|
|
0 as xxkx_pbl, --小学科学配备率
|
|
|
|
|
'0%' as xxkx_pbl, --小学科学配备率
|
|
|
|
|
sum(yy_jssj) as yy_jssj,
|
|
|
|
|
sum(yy_mj) as yy_mj,
|
|
|
|
|
sum(yy_qckjs) as yy_qckjs,
|
|
|
|
|
sum(yy_qcyppz) as yy_qcyppz,
|
|
|
|
|
sum(yy_qcypjs) as yy_qcypjs,
|
|
|
|
|
0 as yy_pbl, --音乐配备率
|
|
|
|
|
'0%' as yy_pbl, --音乐配备率
|
|
|
|
|
sum(ty_gs) as ty_gs,
|
|
|
|
|
sum(ty_qckjs) as ty_qckjs,
|
|
|
|
|
sum(ty_qcyppz) as ty_qcyppz,
|
|
|
|
|
sum(ty_qcypj) as ty_qcypj,
|
|
|
|
|
0 as ty_pbl, --体育配备率
|
|
|
|
|
'0%' as ty_pbl, --体育配备率
|
|
|
|
|
sum(ms_jsss) as ms_jsss,
|
|
|
|
|
sum(ms_qckjs) as ms_qckjs,
|
|
|
|
|
sum(ms_qcyppz) as ms_qcyppz,
|
|
|
|
|
sum(ms_qcypj) as ms_qcypj,
|
|
|
|
|
0 as ms_pbl, --美术配备率
|
|
|
|
|
'0%' as ms_pbl, --美术配备率
|
|
|
|
|
sum(sfjs) as sfjs,
|
|
|
|
|
sum(wsbj) as wsbj,
|
|
|
|
|
sum(lj_qjywsss) as lj_qjywsss,
|
|
|
|
@ -133,21 +133,73 @@
|
|
|
|
|
sum(hyd_wgzjss) as hyd_wgzjss
|
|
|
|
|
from t_zbdc_bureau_cgzb group by area_id,area_name;
|
|
|
|
|
#end
|
|
|
|
|
-- 计算配备率
|
|
|
|
|
#sql("calcPbl")
|
|
|
|
|
select bureau_id,area_name,nowcnt,needcnt,ROUND(1.0*nowCnt / needCnt, 2) AS radio from (
|
|
|
|
|
select t1.bureau_id,t1.area_id,t1.area_name,count(1) as nowCnt,
|
|
|
|
|
(select count(1) from t_zbdc_templet where km_name=#para(km) and bp='√') needCnt
|
|
|
|
|
from t_zbdc_fill as t1 where year=#para(year) and xysl>0 and templet_id in (
|
|
|
|
|
select templet_id from t_zbdc_templet where km_name=#para(km) and bp='√') group by t1.area_id,t1.area_name,t1.bureau_id
|
|
|
|
|
) as t2
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
#sql("xxhzbSummary_a")
|
|
|
|
|
select area_name, sum(taishu) as a_taishu,
|
|
|
|
|
sum(case when lb_name='网络环境' then taishu else 0 end) as a_wlhj_count,
|
|
|
|
|
sum (case when lb_name='存储容量' then taishu else 0 end) as a_ccrl_count,
|
|
|
|
|
sum (case when lb_name='校园安全监控' then taishu else 0 end) as a_xyaqjk_count
|
|
|
|
|
-- 基础环境
|
|
|
|
|
#sql("xxhzbSummary_jchj")
|
|
|
|
|
select area_name, sum(taishu) as jchj_taishu,
|
|
|
|
|
sum(case when lb_name='网络环境' then taishu else 0 end) as jchj_wlhj_count,
|
|
|
|
|
sum (case when lb_name='存储容量' then taishu else 0 end) as jchj_ccrl_count,
|
|
|
|
|
sum (case when lb_name='校园安全监控' then taishu else 0 end) as jchj_xyaqjk_count
|
|
|
|
|
from t_zbdc_xxjs_szzd_jchj GROUP BY area_name
|
|
|
|
|
#end
|
|
|
|
|
#sql("xxhbSummary_b")
|
|
|
|
|
select area_name, sum(taishu) as a_taishu,
|
|
|
|
|
sum(case when lb_name='学生用计算机教室1' or lb_name='学生用计算机教室2' then taishu else 0 end) as b_xsjsjjs_count,
|
|
|
|
|
sum (case when lb_name='智慧教室' then taishu else 0 end) as b_zhjs_count,
|
|
|
|
|
sum (case when lb_name='电子图书阅览室' then taishu else 0 end) as b_dztsyls_count,
|
|
|
|
|
sum(case when lb_name='教师用计算机1' or lb_name='教师用计算机2' then taishu else 0 end) as b_jsyjsj_count,
|
|
|
|
|
sum(case when lb_name='电子备课室' then taishu else 0 end) as b_dzbks_count
|
|
|
|
|
-- 数字终端
|
|
|
|
|
#sql("xxhbSummary_szzd")
|
|
|
|
|
select area_name, sum(taishu) as szzd_taishu,
|
|
|
|
|
sum(case when lb_name='学生用计算机教室1' or lb_name='学生用计算机教室2' then taishu else 0 end) as szzd_xsjsjjs_count,
|
|
|
|
|
sum (case when lb_name='智慧教室' then taishu else 0 end) as szzd_zhjs_count,
|
|
|
|
|
sum (case when lb_name='电子图书阅览室' then taishu else 0 end) as szzd_dztsyls_count,
|
|
|
|
|
sum(case when lb_name='教师用计算机1' or lb_name='教师用计算机2' then taishu else 0 end) as szzd_jsyjsj_count,
|
|
|
|
|
sum(case when lb_name='电子备课室' then taishu else 0 end) as szzd_dzbks_count
|
|
|
|
|
from t_zbdc_xxjs_szzd GROUP BY area_name
|
|
|
|
|
#end
|
|
|
|
|
#end
|
|
|
|
|
-- 数字化教学空间1
|
|
|
|
|
#sql("xxhbSummary_szhjxkj1")
|
|
|
|
|
select area_name, sum(taishu) as szhjxkj1_taishu,
|
|
|
|
|
sum(case when lb_name='多媒体班级教室1' or lb_name='多媒体班级教室2' or lb_name='多媒体班级教室3' or lb_name='多媒体班级教室4' then taishu else 0 end) as szhjxkj1_dmtbjjs_count
|
|
|
|
|
from t_zbdc_xxjs_szzd_szhjxkj1 GROUP BY area_name
|
|
|
|
|
#end
|
|
|
|
|
-- 数字化教学空间2
|
|
|
|
|
#sql("xxhbSummary_szhjxkj2")
|
|
|
|
|
select area_name, sum(shuliang) as szhjxkj2_taishu,
|
|
|
|
|
sum(case when lb_name='多功能教室1(报告厅)' or lb_name='多功能教室2(报告厅)' or lb_name='多功能教室3(报告厅)' or lb_name='多功能教室4(报告厅)'
|
|
|
|
|
then shuliang else 0 end) as szhjxkj2_dgnjs_count,
|
|
|
|
|
sum(case when lb_name='精品录播教室1' or lb_name='精品录播教室2' then shuliang else 0 end) as szhjxkj2_jplbsb_count,
|
|
|
|
|
sum(case when lb_name='常态化录播' then shuliang else 0 end) as szhjxkj2_cthlb_count,
|
|
|
|
|
sum(case when lb_name='语音系统1' or lb_name='语音系统2' or lb_name='语音系统3' or lb_name='语音系统4' then shuliang else 0 end) as szhjxkj2_yyxtsb_count,
|
|
|
|
|
sum(case when lb_name='创新类活动室' then shuliang else 0 end) as szhjxkj2_cxhds_count
|
|
|
|
|
from t_zbdc_xxjs_szzd_szhjxkj2 GROUP BY area_name
|
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
-- 文化生活空间1
|
|
|
|
|
#sql("xxhbSummary_whsh1")
|
|
|
|
|
select area_name, sum(zhengchang) as whsh1_taishu,
|
|
|
|
|
sum(case when lb_name='校园广播1' or lb_name='校园广播2' then zhengchang else 0 end) as whsh1_xygb_count
|
|
|
|
|
from t_zbdc_xxjs_szzd_whkj1 GROUP BY area_name;
|
|
|
|
|
#end
|
|
|
|
|
-- 文化生活空间2
|
|
|
|
|
#sql("xxhbSummary_whsh2")
|
|
|
|
|
select area_name, sum(zhengchang) as whsh2_taishu,
|
|
|
|
|
sum(case when lb_name='虚拟演播室' then zhengchang else 0 end) as whsh2_xnybs_count
|
|
|
|
|
from t_zbdc_xxjs_szzd_whkj2 GROUP BY area_name;
|
|
|
|
|
#end
|
|
|
|
|
-- 文化生活空间3
|
|
|
|
|
#sql("xxhbSummary_whsh3")
|
|
|
|
|
select area_name, sum(zhengchang) as whsh3_taishu,
|
|
|
|
|
sum(case when lb_name='校园电视系统' then zhengchang else 0 end) as whsh3_xydsxt_count
|
|
|
|
|
from t_zbdc_xxjs_szzd_whkj3 GROUP BY area_name;
|
|
|
|
|
#end
|
|
|
|
|
-- 互联网带宽
|
|
|
|
|
#sql("xxhbSummary_hlwdk")
|
|
|
|
|
select area_name, sum(hlwdk) as hlwdk_hlwdk
|
|
|
|
|
from t_zbdc_xxjs_szzd_wlaq GROUP BY area_name;
|
|
|
|
|
#end
|
|
|
|
|
#end
|