wangshuai 4 years ago
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_dp_zrjsssbl

@ -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

@ -0,0 +1,22 @@
# 服务器端部署
wget https://dl.min.io/server/minio/release/darwin-amd64/minio
chmod 755 minio
./minio server /data
# 访问地址
http://10.10.14.165:9000
minioadmin
minioadmin
# 如果需要指定AK,SK那么
export MINIO_ACCESS_KEY="minio"
export MINIO_SECRET_KEY="minio123"
# 下载客户端
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc --help
# 删除七天前的数据配合crontab使用
./mc rm --recursive --force --dangerous --older-than 7d /data/bigdata/image/

@ -663,7 +663,7 @@ type swaggerInfo struct {
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = swaggerInfo{
Version: "2.0",
Host: "10.10.14.187:8000",
Host: "127.0.0.1:8000",
BasePath: "",
Schemes: []string{},
Title: "东师理想统一认证中心(OAuth2+Sso)",

@ -6,7 +6,7 @@
"contact": {},
"version": "2.0"
},
"host": "10.10.14.187:8000",
"host": "127.0.0.1:8000",
"paths": {
"/oauth2/AddClient": {
"post": {

@ -32,7 +32,7 @@ definitions:
description: 个数
type: object
type: object
host: 10.10.14.187:8000
host: 127.0.0.1:8000
info:
contact: {}
description: 参考自xxl-sso

@ -58,7 +58,7 @@ func startOAuth2Server() {
// @title 东师理想统一认证中心(OAuth2+Sso)
// @version 2.0
// @description 参考自xxl-sso
// @host 10.10.14.187:8000
// @host 127.0.0.1:8000
func main() {
// 发布模式
//gin.SetMode(gin.ReleaseMode)

@ -7,11 +7,13 @@
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="jfinal_demo_for_maven" />
<module name="JavaDemo" />
</profile>
</annotationProcessing>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="JavaDemo" options="-verbose -parameters" />
<module name="jfinal_demo_for_maven" options="-verbose -parameters" />
</option>
</component>

@ -2,5 +2,7 @@
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>

@ -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>

@ -1,10 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="e8f146ac-f507-4bd7-9ea5-679097c20d1c" name="Default Changelist" comment="" />
<ignored path="$PROJECT_DIR$/out/" />
<ignored path="$PROJECT_DIR$/target/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<list default="true" id="e8f146ac-f507-4bd7-9ea5-679097c20d1c" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/jarRepositories.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/encodings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/demo/index/IndexController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/demo/index/IndexController.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -54,6 +61,9 @@
</file>
</leaf>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../../.." />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
@ -68,6 +78,8 @@
<option name="width" value="1040" />
<option name="height" value="754" />
</component>
<component name="ProjectId" id="1o6BZmJ3wTyMzjRQiWhNmm0QUZx" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
@ -88,34 +100,36 @@
<pane id="Scope" />
</panes>
</component>
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
<property name="settings.editor.selected.configurable" value="editor.preferences.fonts.default" />
</component>
<component name="RunManager">
<configuration name="Start" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="com.demo.Start" />
<module name="jfinal_demo_for_maven" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="com.demo.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true">
<option name="arquillianRunConfiguration">
<value>
<option name="containerStateName" value="" />
</value>
</option>
<option name="TEST_OBJECT" value="class" />
<method v="2">
<option name="Make" enabled="true" />
</method>
@ -126,6 +140,7 @@
</list>
</recent_temporary>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="SvnConfiguration">
<configuration />
</component>
@ -137,6 +152,7 @@
<option name="presentableId" value="Default" />
<updated>1596089651797</updated>
<workItem from="1596089653221" duration="2841000" />
<workItem from="1612597219020" duration="2993000" />
</task>
<servers />
</component>
@ -178,7 +194,18 @@
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
<option name="version" value="3" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
@ -186,7 +213,6 @@
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/java/com/demo/index/IndexController.java</url>
<line>43</line>
<properties />
<option name="timeStamp" value="5" />
</line-breakpoint>
</breakpoints>

@ -10,13 +10,13 @@ import java.util.Base64;
public class IndexController extends Controller {
//服务器的位置信息
String OAuth2Server = "http://fort.edusoa.com:7777";
String OAuth2Server = "http://10.10.14.187";
String authCodeURI = OAuth2Server + "/oauth2/authorize";
String authTokenURI = OAuth2Server + "/oauth2/access_token";
//在服务器注册生成的用户和密码
String clientId = "bsh6f9anium2jd4h8sng";
String clientSecret = "01eef69qb14sw00jxyw5rvw9rq";
String clientId = "bu3pcf7cl45ug8dup8og";
String clientSecret = "01emmt5qdyszh9ndbpbg4zk4tn";
String redirectURI = "http://127.0.0.1:8003/code";
String oauthCallback = "http://127.0.0.1:8003/success";

Loading…
Cancel
Save