Merge branch 'master' of http://10.10.14.250:3000/huanghai/dsMin
commit
d00f69b322
@ -0,0 +1,6 @@
|
||||
select * from mv_dp_zrjsssbl
|
||||
order by
|
||||
(case when stage='小学' then 1
|
||||
when stage='初中' then 2
|
||||
when stage='高中' then 3
|
||||
end)
|
@ -0,0 +1,11 @@
|
||||
select t1.stage,t1.citycountrygroup,zhandimianjino,t2.zaixiaono as studentno from mv_db_base_banxuetiaojian as t1
|
||||
inner join mv_db_base_student as t2 on t1.stage=t2.stage and t1.citycountrygroup=t2.citycountrygroup
|
||||
order by
|
||||
(case when t1.stage='小学' then 1
|
||||
when t1.stage='初中' then 2
|
||||
when t1.stage='高中' then 3
|
||||
end),
|
||||
(case when t1.citycountrygroup='城区' then 1
|
||||
when t1.citycountrygroup='镇区' then 2
|
||||
when t1.citycountrygroup='乡村' then 3
|
||||
end)
|
@ -0,0 +1,9 @@
|
||||
select businesstype,count as total from mv_dp_gjdxxsl order by
|
||||
(case when businesstype='小学' then 1
|
||||
when businesstype='初级中学' then 2
|
||||
when businesstype='九年一贯制学校' then 3
|
||||
when businesstype='高级中学' then 4
|
||||
when businesstype='完全中学' then 5
|
||||
when businesstype='十二年一贯制学校' then 6
|
||||
end)
|
||||
|
@ -0,0 +1,10 @@
|
||||
select * from mv_dp_cxzrssb as t1
|
||||
order by
|
||||
(case when t1.stage='小学' then 1
|
||||
when t1.stage='初中' then 2
|
||||
when t1.stage='高中' then 3
|
||||
end),
|
||||
(case when t1.citycountrygroup='城区' then 1
|
||||
when t1.citycountrygroup='镇区' then 2
|
||||
when t1.citycountrygroup='乡村' then 3
|
||||
end)
|
@ -0,0 +1,5 @@
|
||||
SELECT '学校总数' AS title,sum(count) AS count FROM mv_db_base_school
|
||||
UNION ALL
|
||||
SELECT '教职工总数' AS title, jzgno AS count FROM mv_db_base_jiaozhigong
|
||||
UNION ALL
|
||||
SELECT '学生总数' AS title, sum(zaixiaono) AS count FROM mv_db_base_student
|
@ -0,0 +1,5 @@
|
||||
select stage,studentno as total from mv_dp_xxgmqk order by
|
||||
(case when stage='小学' then 1
|
||||
when stage='初中' then 2
|
||||
when stage='高中' then 3
|
||||
end)
|
@ -0,0 +1,5 @@
|
||||
select t1.stage,sum(t1.zhaoshengno) as zhaoshengno,sum(t1.biyeno) as biyeno,sum(t1.zaixiaono) as zaixiaono from mv_db_base_student as t1 GROUP BY t1.stage order by
|
||||
(case when t1.stage='小学' then 1
|
||||
when t1.stage='初中' then 2
|
||||
when t1.stage='高中' then 3
|
||||
end)
|
@ -0,0 +1,21 @@
|
||||
SELECT stage,d,
|
||||
(case d when '03' then '25人及以下'
|
||||
when '04' then '26-30人'
|
||||
when '05' then '31-35人'
|
||||
when '06' then '36-40人'
|
||||
when '07' then '41-45人'
|
||||
when '08' then '46-50人'
|
||||
when '09' then '51-55人'
|
||||
when '10' then '56-60人'
|
||||
when '11' then '61-65人'
|
||||
when '12' then '66人及以上' end
|
||||
),
|
||||
sum(sum) AS total
|
||||
FROM mv_dp_bane_stage_chengxiang
|
||||
GROUP BY d,stage
|
||||
|
||||
order by
|
||||
(case when stage='小学' then 1
|
||||
when stage='初中' then 2
|
||||
when stage='高中' then 3
|
||||
end),d
|
@ -0,0 +1,5 @@
|
||||
select * from mv_db_lsetqk
|
||||
order by
|
||||
(case when stage='小学' then 1
|
||||
when stage='初中' then 2
|
||||
end),(case when citycountrygroup='城区' then 1 when citycountrygroup='镇区' then 2 else 3 end)
|
@ -0,0 +1,9 @@
|
||||
select stage,didgroup,sum(zaixiaono) as total from mv_db_sqznqk GROUP BY didgroup,stage
|
||||
order by
|
||||
(case when stage='小学' then 1
|
||||
when stage='初中' then 2
|
||||
when stage='高中' then 3
|
||||
end)
|
||||
|
||||
|
||||
select sum(zaixiaono) as total from mv_db_base_student
|
@ -0,0 +1 @@
|
||||
select stage,citycountrygroup,zhandimianjino from mv_db_base_banxuetiaojian
|
@ -0,0 +1,4 @@
|
||||
--寄宿生
|
||||
select stage,citycountrygroup,jisuno from mv_db_base_student
|
||||
--宿舍面积
|
||||
select stage,citycountrygroup,xueshengsushe from mv_db_base_banxuetiaojian
|
@ -0,0 +1 @@
|
||||
select stage,citycountrygroup,jiaoxuejiaofuno from mv_db_base_banxuetiaojian
|
@ -0,0 +1 @@
|
||||
select stage,citycountrygroup,xiaosheno from mv_db_base_banxuetiaojian
|
@ -0,0 +1 @@
|
||||
select stage,citycountrygroup,yundongchangdino from mv_db_base_banxuetiaojian
|
@ -0,0 +1 @@
|
||||
select * from mv_db_zrjsxlqk
|
@ -0,0 +1 @@
|
||||
select * from mv_dp_zrjsssbl
|
@ -0,0 +1 @@
|
||||
select * from mv_dp_zrjsnl
|
@ -0,0 +1 @@
|
||||
select * from mv_db_zrjszcqk
|
@ -0,0 +1,66 @@
|
||||
select t1.a as stage,t1.citycountrygroup,sum(c1) as studentNo,sum(c2) as teacherNo from (
|
||||
select * from (
|
||||
SELECT '小学' as a,'学生' as b,sbr.cityCountryGroup,sum(j+k+l+m+n+o) as c1,0 as c2
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J312 as j on j.instanceid =it.instanceid and j.did in (1,37,38,39,40,41,42,43,44,45,46,47)
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('211','218','219','312','345') and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.cityCountryGroup
|
||||
|
||||
union all
|
||||
|
||||
SELECT '初中' as a,'学生' as b,sbr.cityCountryGroup,sum(i+j+k+l) as c1,0 as c2
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J313 as j on j.instanceid =it.instanceid and j.did in (1,36,37,38,39,40,41,42,43,44)
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('311','312','319','341','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.cityCountryGroup
|
||||
|
||||
union all
|
||||
|
||||
SELECT '高中' as a,'学生' as b,sbr.cityCountryGroup,sum(i+j+k) as c1,0 as c2
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J314 as j on j.instanceid =it.instanceid and did in (1,11,12,13,14,15,16,17,18,19)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('341','342','345','349') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.cityCountryGroup
|
||||
) as t
|
||||
|
||||
|
||||
union all
|
||||
|
||||
|
||||
select * from (
|
||||
SELECT '高中' as a ,'老师' as b ,sbr.cityCountryGroup ,0 as c1, sum (F + G + H + I +j+k+l+ M + N ) as c2
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J422 as j on j.instanceid =it.instanceid and did in (22,23,24,25,26,27)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in ('341','342','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.cityCountryGroup
|
||||
|
||||
union all
|
||||
|
||||
|
||||
SELECT '初中' as a ,'老师' as b ,sbr.cityCountryGroup ,0 as c1, sum (F + G + H + I +j+k+l+ M + N ) as c2
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J422 as j on j.instanceid =it.instanceid and did in (13,14,15,16,17,18)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in('311','312','341','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.cityCountryGroup
|
||||
|
||||
|
||||
union all
|
||||
|
||||
SELECT '小学' as a ,'老师' as b ,sbr.cityCountryGroup ,0 as c1, sum (F + G + H + I +j+k+l+ M + N ) as c2
|
||||
from schoolBusinessRelation sbr
|
||||
inner join instanceTable it on sbr.organizationNo =it.organizationNo and sbr.businesstypeno =it.businesstypeno
|
||||
inner join J422 as j on j.instanceid =it.instanceid and did in (4,5,6,7,8,9)
|
||||
inner join v_areainfo va on va.region_name =sbr.gatherregionc
|
||||
where sbr.gatherRegionB ='长春市' and sbr.businessTypeNo in ('211','218','312','345') and sbr.isLastYearCancel =0 and sbr.recordyear =2019 and it.recordyear =2019 and j.recordyear =2019
|
||||
group by sbr.cityCountryGroup
|
||||
|
||||
) as t
|
||||
) as t1 group by a,citycountrygroup order by a,citycountrygroup
|
@ -0,0 +1,7 @@
|
||||
select '教职工总人数' as title,jzgno as count from mv_db_base_jiaozhigong
|
||||
union all
|
||||
select '女教职工总人数' as title,nv_jzgno as count from mv_db_base_jiaozhigong
|
||||
union all
|
||||
select '专任教师总人数' as title,sum(teacherno) from mv_db_base_zhuanrenjiaoshi
|
||||
union all
|
||||
select '在编教师总人数' as title,count from mv_db_base_zaibian
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="ali-maven" />
|
||||
<option name="name" value="ali-maven" />
|
||||
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue