diff --git a/src/main/java/com/dsideal/FengHuang/Start.java b/src/main/java/com/dsideal/FengHuang/Start.java index f87bd48..fc67e55 100644 --- a/src/main/java/com/dsideal/FengHuang/Start.java +++ b/src/main/java/com/dsideal/FengHuang/Start.java @@ -143,7 +143,7 @@ public class Start extends JFinalConfig { //显示SQL语句 arp.setShowSql(true); //设置大小写不敏感工厂 - arp.setContainerFactory(new CaseInsensitiveContainerFactory(true)); + //arp.setContainerFactory(new CaseInsensitiveContainerFactory(false)); //加载 me.add(arp); diff --git a/src/main/resource/Sql/base.sql b/src/main/resource/Sql/base.sql index 79e1546..1e48b26 100644 --- a/src/main/resource/Sql/base.sql +++ b/src/main/resource/Sql/base.sql @@ -24,14 +24,14 @@ -- 获取单位类型与职务+分管信息树数据指定结点的信息 #sql("getOrgTypePrincipalshipByParentId") - select t1.id,t1.code,t1.name,t1.parent_id as pid,t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, + select t1.id,t1.code,t1.name,t1.parent_id as "pId",t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, (select count(1) from t_base_org_type_principalship as t2 where t2.parent_id=t1.id) as is_leaf from t_base_org_type_principalship as t1 where t1.parent_id=#para(0) and t1.b_use=1 order by sort_id #end -- 和上面的是一个东西,但要细分一下,比如幼儿园+中小学 #sql("getOrgTypePrincipalshipByParentIdAndBigType") - select t1.id,t1.name,t1.parent_id as pid,t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, + select t1.id,t1.name,t1.parent_id as "pId",t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, (select count(1) from t_base_org_type_principalship as t2 where t2.parent_id=t1.id) as is_leaf from t_base_org_type_principalship as t1 where t1.parent_id=#para(0) and t1.b_use=1 and t1.is_school=#para(1) order by sort_id asc @@ -49,7 +49,7 @@ -- 获取单位类型与职务+分管信息树数据指定结点下一级的数据ByCode #sql("getOrgTypePrincipalshipByParentparent_code") - select id,code,name,parent_id as pId,sort_id,b_use,is_school,level,bureau_level + select id,code,name,parent_id as "pId",sort_id,b_use,is_school,level,bureau_level from t_base_org_type_principalship where code like ? and length(code)=length(?)+2 and b_use=1 order by sort_id #end diff --git a/src/main/resource/Sql/menu.sql b/src/main/resource/Sql/menu.sql index fa536c6..35206b7 100644 --- a/src/main/resource/Sql/menu.sql +++ b/src/main/resource/Sql/menu.sql @@ -9,7 +9,7 @@ from t_base_menu as t1 where parent_id=? order by t1.sort_id -- 获取全部菜单 #sql("selectAll") - select t1.menu_id as id,t1.menu_name as name,t1.parent_id as pId,t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id, + select t1.menu_id as id,t1.menu_name as name,t1.parent_id as "pId",t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id, (select count(1) from t_base_menu as t2 where t1.menu_id=t2.parent_id) as is_leaf from t_base_menu as t1 order by t1.sort_id #end diff --git a/src/main/resource/undertow.properties b/src/main/resource/undertow.properties index 96e6ad2..78f29cd 100644 --- a/src/main/resource/undertow.properties +++ b/src/main/resource/undertow.properties @@ -3,7 +3,7 @@ undertow.devMode=true undertow.port=9000 undertow.host=0.0.0.0 #undertow.resourcePath =/usr/local/tomcat8/webapps/ccDangJianExam,classpath:static -undertow.resourcePath =D:/dsWork/ccDangJianExam/WebRoot,classpath:static +undertow.resourcePath =D:/dsWork/ccDangJianExamForOpenGauss/WebRoot,classpath:static # 目录名称 undertow.contextPath=/FengHuang diff --git a/target/classes/Sql/base.sql b/target/classes/Sql/base.sql index 79e1546..1e48b26 100644 --- a/target/classes/Sql/base.sql +++ b/target/classes/Sql/base.sql @@ -24,14 +24,14 @@ -- 获取单位类型与职务+分管信息树数据指定结点的信息 #sql("getOrgTypePrincipalshipByParentId") - select t1.id,t1.code,t1.name,t1.parent_id as pid,t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, + select t1.id,t1.code,t1.name,t1.parent_id as "pId",t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, (select count(1) from t_base_org_type_principalship as t2 where t2.parent_id=t1.id) as is_leaf from t_base_org_type_principalship as t1 where t1.parent_id=#para(0) and t1.b_use=1 order by sort_id #end -- 和上面的是一个东西,但要细分一下,比如幼儿园+中小学 #sql("getOrgTypePrincipalshipByParentIdAndBigType") - select t1.id,t1.name,t1.parent_id as pid,t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, + select t1.id,t1.name,t1.parent_id as "pId",t1.sort_id,t1.b_use,t1.is_school,t1.level,t1.bureau_level, (select count(1) from t_base_org_type_principalship as t2 where t2.parent_id=t1.id) as is_leaf from t_base_org_type_principalship as t1 where t1.parent_id=#para(0) and t1.b_use=1 and t1.is_school=#para(1) order by sort_id asc @@ -49,7 +49,7 @@ -- 获取单位类型与职务+分管信息树数据指定结点下一级的数据ByCode #sql("getOrgTypePrincipalshipByParentparent_code") - select id,code,name,parent_id as pId,sort_id,b_use,is_school,level,bureau_level + select id,code,name,parent_id as "pId",sort_id,b_use,is_school,level,bureau_level from t_base_org_type_principalship where code like ? and length(code)=length(?)+2 and b_use=1 order by sort_id #end diff --git a/target/classes/Sql/menu.sql b/target/classes/Sql/menu.sql index fa536c6..35206b7 100644 --- a/target/classes/Sql/menu.sql +++ b/target/classes/Sql/menu.sql @@ -9,7 +9,7 @@ from t_base_menu as t1 where parent_id=? order by t1.sort_id -- 获取全部菜单 #sql("selectAll") - select t1.menu_id as id,t1.menu_name as name,t1.parent_id as pId,t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id, + select t1.menu_id as id,t1.menu_name as name,t1.parent_id as "pId",t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id, (select count(1) from t_base_menu as t2 where t1.menu_id=t2.parent_id) as is_leaf from t_base_menu as t1 order by t1.sort_id #end diff --git a/target/classes/undertow.properties b/target/classes/undertow.properties index 96e6ad2..78f29cd 100644 --- a/target/classes/undertow.properties +++ b/target/classes/undertow.properties @@ -3,7 +3,7 @@ undertow.devMode=true undertow.port=9000 undertow.host=0.0.0.0 #undertow.resourcePath =/usr/local/tomcat8/webapps/ccDangJianExam,classpath:static -undertow.resourcePath =D:/dsWork/ccDangJianExam/WebRoot,classpath:static +undertow.resourcePath =D:/dsWork/ccDangJianExamForOpenGauss/WebRoot,classpath:static # 目录名称 undertow.contextPath=/FengHuang