diff --git a/WebRoot/WEB-INF/jsp/sunvote/classtype/classtype_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/classtype/classtype_edit.jsp new file mode 100644 index 0000000..5ac9c32 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/classtype/classtype_edit.jsp @@ -0,0 +1,108 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + +
名称:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/classtype/classtype_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/classtype/classtype_list.jsp new file mode 100644 index 0000000..bdb440a --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/classtype/classtype_list.jsp @@ -0,0 +1,366 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号名称备注操作
+ + ${vs.index+1}${var.NAME}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/grade/grade_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/grade/grade_edit.jsp new file mode 100644 index 0000000..f2e666b --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/grade/grade_edit.jsp @@ -0,0 +1,122 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + +
年级名称:
年级描述:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/grade/grade_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/grade/grade_list.jsp new file mode 100644 index 0000000..10bd127 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/grade/grade_list.jsp @@ -0,0 +1,368 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号年级名称年级描述备注操作
+ + ${vs.index+1}${var.NAME}${var.DESC}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_edit.jsp new file mode 100644 index 0000000..88b6faa --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_edit.jsp @@ -0,0 +1,164 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
所属学校:
所属年级:
班级类型:
班级名称:
班级编码:
班级基站:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_list.jsp new file mode 100644 index 0000000..cc1c831 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_list.jsp @@ -0,0 +1,374 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号所属学校所属年级班级类型班级名称班级编码班级基站操作
+ + ${vs.index+1}${var.SCHOOL_ID}${var.GRADE_ID}${var.CLASS_TYPE}${var.CLASS_NAME}${var.CLASS_CODE}${var.BASESTATION_ID} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/subject/subject_edit.jsp b/WebRoot/WEB-INF/jsp/sunvote/subject/subject_edit.jsp new file mode 100644 index 0000000..4e9e44b --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/subject/subject_edit.jsp @@ -0,0 +1,122 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> +<% + String path = request.getContextPath(); + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; +%> + + + + + + + + <%@ include file="../../system/index/top.jsp"%> + + + + + +
+ +
+
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + +
中文名称:
英文名称:
备注:
+ 保存 + 取消 +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/WEB-INF/jsp/sunvote/subject/subject_list.jsp b/WebRoot/WEB-INF/jsp/sunvote/subject/subject_list.jsp new file mode 100644 index 0000000..d5f0147 --- /dev/null +++ b/WebRoot/WEB-INF/jsp/sunvote/subject/subject_list.jsp @@ -0,0 +1,368 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + + + + + + +<%@ include file="../../system/index/top.jsp"%> + + + + + + +
+ +
+
+
+
+
+ + +
+ + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 序号中文名称英文名称备注操作
+ + ${vs.index+1}${var.CNAME}${var.ENAME}${var.REMARK} + + + + + +
您无权查看
没有相关数据
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ + + + + <%@ include file="../../system/index/foot.jsp"%> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/dbconfig.properties b/resources/dbconfig.properties index 77c05f2..fb0b946 100644 --- a/resources/dbconfig.properties +++ b/resources/dbconfig.properties @@ -1,8 +1,9 @@ #数据源 1 -url:jdbc:mysql://localhost:3306/sunvote?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 +url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 driverClassName:com.mysql.jdbc.Driver username:root -password:elvis +#password:elvis +password:admin filters:stat maxActive:20 initialSize:1 @@ -13,7 +14,7 @@ timeBetweenEvictionRunsMillis:60000 minEvictableIdleTimeMillis:300000 validationQuery:SELECT 'x' testWhileIdle:true -testOnBorrow:false +testOnBorrow:true testOnReturn:false maxOpenPreparedStatements:20 removeAbandoned:true diff --git a/resources/ftl/createCode/jsp_edit_Template.ftl b/resources/ftl/createCode/jsp_edit_Template.ftl index d73d5c0..9a37f55 100644 --- a/resources/ftl/createCode/jsp_edit_Template.ftl +++ b/resources/ftl/createCode/jsp_edit_Template.ftl @@ -28,7 +28,7 @@
- +
<#list fieldList as var> diff --git a/resources/ftl/createCode/jsp_list_Template.ftl b/resources/ftl/createCode/jsp_list_Template.ftl index 05e3cb9..0363d83 100644 --- a/resources/ftl/createCode/jsp_list_Template.ftl +++ b/resources/ftl/createCode/jsp_list_Template.ftl @@ -81,7 +81,7 @@ <#list fieldList as var> @@ -93,12 +93,12 @@
- + ${r"${vs.index+1}"}
<#list fieldList as var> @@ -74,7 +74,7 @@
- +
diff --git a/resources/ftl/createFaCode/jsp_list_Template.ftl b/resources/ftl/createFaCode/jsp_list_Template.ftl index b87b1f9..cf5f7c1 100644 --- a/resources/ftl/createFaCode/jsp_list_Template.ftl +++ b/resources/ftl/createFaCode/jsp_list_Template.ftl @@ -87,12 +87,12 @@
diff --git a/resources/ftl/createSoCode/jsp_list_Template.ftl b/resources/ftl/createSoCode/jsp_list_Template.ftl index 5778ca3..80646de 100644 --- a/resources/ftl/createSoCode/jsp_list_Template.ftl +++ b/resources/ftl/createSoCode/jsp_list_Template.ftl @@ -83,7 +83,7 @@ <#list fieldList as var> @@ -95,12 +95,12 @@
- + ${r"${vs.index+1}"}
diff --git a/resources/ftl/createTreeCode/jsp_list_Template.ftl b/resources/ftl/createTreeCode/jsp_list_Template.ftl index 1b299e2..bb97b5c 100644 --- a/resources/ftl/createTreeCode/jsp_list_Template.ftl +++ b/resources/ftl/createTreeCode/jsp_list_Template.ftl @@ -79,7 +79,7 @@ - + <#list fieldList as var> @@ -89,12 +89,12 @@ @@ -203,9 +203,9 @@ } //去此ID下子级列表 - function goSondict(${ID){ + function goSondict(ID){ top.jzts(); - window.location.href="<%=basePath%>${objectNameLower}/list.do?${ID="+${ID; + window.location.href="<%=basePath%>${objectNameLower}/list.do?ID="+ID; }; $(function() { @@ -245,12 +245,12 @@ }); //新增 - function add(${ID){ + function add(ID){ top.jzts(); var diag = new top.Dialog(); diag.Drag=true; diag.Title ="新增"; - diag.URL = '<%=basePath%>${objectNameLower}/goAdd.do?${ID='+${ID; + diag.URL = '<%=basePath%>${objectNameLower}/goAdd.do?ID='+ID; diag.Width = 800; diag.Height = 600; diag.Modal = true; //有无遮罩窗口 @@ -258,7 +258,7 @@ diag.ShowMinButton = true; //最小化按钮 diag.CancelEvent = function(){ //关闭事件 if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${ID=${r"${"}${ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?ID=${r"${"}ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; } diag.close(); }; @@ -270,7 +270,7 @@ bootbox.confirm("确定要删除吗?", function(result) { if(result) { top.jzts(); - var url = "<%=basePath%>${objectNameLower}/delete.do?${ID="+Id+"&tm="+new Date().getTime(); + var url = "<%=basePath%>${objectNameLower}/delete.do?ID="+Id+"&tm="+new Date().getTime(); $.get(url,function(data){ tosearch(); }); @@ -283,10 +283,10 @@ bootbox.confirm("确定要删除吗?", function(result) { if(result) { top.jzts(); - var url = "<%=basePath%>${objectNameLower}/delete.do?${ID="+Id+"&tm="+new Date().getTime(); + var url = "<%=basePath%>${objectNameLower}/delete.do?ID="+Id+"&tm="+new Date().getTime(); $.get(url,function(data){ if("success" == data.result){ - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${ID=${r"${"}${ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?ID=${r"${"}ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; }else if("false" == data.result){ top.hangge(); bootbox.dialog({ @@ -313,7 +313,7 @@ var diag = new top.Dialog(); diag.Drag=true; diag.Title ="编辑"; - diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${ID='+Id; + diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?ID='+Id; diag.Width = 800; diag.Height = 600; diag.Modal = true; //有无遮罩窗口 @@ -321,7 +321,7 @@ diag.ShowMinButton = true; //最小化按钮 diag.CancelEvent = function(){ //关闭事件 if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${ID=${r"${"}${ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?ID=${r"${"}ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; } diag.close(); }; diff --git a/resources/ftl/createTreeCode/mapperMysqlTemplate.ftl b/resources/ftl/createTreeCode/mapperMysqlTemplate.ftl index f5ec703..87c8816 100644 --- a/resources/ftl/createTreeCode/mapperMysqlTemplate.ftl +++ b/resources/ftl/createTreeCode/mapperMysqlTemplate.ftl @@ -38,9 +38,17 @@ insert into ( - + <#list fieldList as var> + ${var[0]}, + + PARENT_ID, + NAME ) values ( - + <#list fieldList as var> + ${r"#{"}${var[0]}${r"}"}, + + ${r"#{"}PARENT_ID${r"}"}, + ${r"#{"}NAME${r"}"} ) diff --git a/resources/ftl/createTreeCode/mysql_SQL_Template.ftl b/resources/ftl/createTreeCode/mysql_SQL_Template.ftl index 694c1f6..ee71ea2 100644 --- a/resources/ftl/createTreeCode/mysql_SQL_Template.ftl +++ b/resources/ftl/createTreeCode/mysql_SQL_Template.ftl @@ -18,5 +18,5 @@ CREATE TABLE `${tabletop}${objectNameUpper}` ( `${var[0]}` varchar(${var[5]}) DEFAULT NULL COMMENT '${var[2]}', - PRIMARY KEY (`$ID`) + PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/resources/ftl_backups/createCode/jsp_edit_Template.ftl b/resources/ftl_backups/createCode/jsp_edit_Template.ftl index b55d5c9..9a37f55 100644 --- a/resources/ftl_backups/createCode/jsp_edit_Template.ftl +++ b/resources/ftl_backups/createCode/jsp_edit_Template.ftl @@ -28,7 +28,7 @@
- +
${r"${vs.index+1}"} ${r"${var.NAME}"} ${r"${var.NAME}"}${r"${var."}${var[0]}${r"}"}
- 新增 + 新增 - + 返回
<#list fieldList as var> diff --git a/resources/ftl_backups/createCode/jsp_list_Template.ftl b/resources/ftl_backups/createCode/jsp_list_Template.ftl index 7a71b9b..0363d83 100644 --- a/resources/ftl_backups/createCode/jsp_list_Template.ftl +++ b/resources/ftl_backups/createCode/jsp_list_Template.ftl @@ -81,7 +81,7 @@ <#list fieldList as var> @@ -93,12 +93,12 @@
- + ${r"${vs.index+1}"}
<#list fieldList as var> @@ -74,7 +74,7 @@
- +
diff --git a/resources/ftl_backups/createFaCode/jsp_list_Template.ftl b/resources/ftl_backups/createFaCode/jsp_list_Template.ftl index c24fa4b..cf5f7c1 100644 --- a/resources/ftl_backups/createFaCode/jsp_list_Template.ftl +++ b/resources/ftl_backups/createFaCode/jsp_list_Template.ftl @@ -87,12 +87,12 @@
diff --git a/resources/ftl_backups/createSoCode/jsp_list_Template.ftl b/resources/ftl_backups/createSoCode/jsp_list_Template.ftl index 6b78b39..80646de 100644 --- a/resources/ftl_backups/createSoCode/jsp_list_Template.ftl +++ b/resources/ftl_backups/createSoCode/jsp_list_Template.ftl @@ -83,7 +83,7 @@ <#list fieldList as var> @@ -95,12 +95,12 @@ - + <#list fieldList as var> @@ -89,12 +89,12 @@ @@ -203,9 +203,9 @@ } //去此ID下子级列表 - function goSondict(${objectNameUpper}_ID){ + function goSondict(ID){ top.jzts(); - window.location.href="<%=basePath%>${objectNameLower}/list.do?${objectNameUpper}_ID="+${objectNameUpper}_ID; + window.location.href="<%=basePath%>${objectNameLower}/list.do?ID="+ID; }; $(function() { @@ -245,12 +245,12 @@ }); //新增 - function add(${objectNameUpper}_ID){ + function add(ID){ top.jzts(); var diag = new top.Dialog(); diag.Drag=true; diag.Title ="新增"; - diag.URL = '<%=basePath%>${objectNameLower}/goAdd.do?${objectNameUpper}_ID='+${objectNameUpper}_ID; + diag.URL = '<%=basePath%>${objectNameLower}/goAdd.do?ID='+ID; diag.Width = 800; diag.Height = 600; diag.Modal = true; //有无遮罩窗口 @@ -258,7 +258,7 @@ diag.ShowMinButton = true; //最小化按钮 diag.CancelEvent = function(){ //关闭事件 if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${objectNameUpper}_ID=${r"${"}${objectNameUpper}_ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?ID=${r"${"}ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; } diag.close(); }; @@ -270,7 +270,7 @@ bootbox.confirm("确定要删除吗?", function(result) { if(result) { top.jzts(); - var url = "<%=basePath%>${objectNameLower}/delete.do?${objectNameUpper}_ID="+Id+"&tm="+new Date().getTime(); + var url = "<%=basePath%>${objectNameLower}/delete.do?ID="+Id+"&tm="+new Date().getTime(); $.get(url,function(data){ tosearch(); }); @@ -283,10 +283,10 @@ bootbox.confirm("确定要删除吗?", function(result) { if(result) { top.jzts(); - var url = "<%=basePath%>${objectNameLower}/delete.do?${objectNameUpper}_ID="+Id+"&tm="+new Date().getTime(); + var url = "<%=basePath%>${objectNameLower}/delete.do?ID="+Id+"&tm="+new Date().getTime(); $.get(url,function(data){ if("success" == data.result){ - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${objectNameUpper}_ID=${r"${"}${objectNameUpper}_ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?ID=${r"${"}ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; }else if("false" == data.result){ top.hangge(); bootbox.dialog({ @@ -313,7 +313,7 @@ var diag = new top.Dialog(); diag.Drag=true; diag.Title ="编辑"; - diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?${objectNameUpper}_ID='+Id; + diag.URL = '<%=basePath%>${objectNameLower}/goEdit.do?ID='+Id; diag.Width = 800; diag.Height = 600; diag.Modal = true; //有无遮罩窗口 @@ -321,7 +321,7 @@ diag.ShowMinButton = true; //最小化按钮 diag.CancelEvent = function(){ //关闭事件 if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ - parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?${objectNameUpper}_ID=${r"${"}${objectNameUpper}_ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; + parent.location.href="<%=basePath%>${objectNameLower}/listTree.do?ID=${r"${"}ID${r"}"}&dnowPage=${r"${page.currentPage}"}"; } diag.close(); }; diff --git a/resources/ftl_backups/createTreeCode/jsp_tree_Template.ftl b/resources/ftl_backups/createTreeCode/jsp_tree_Template.ftl index b544647..27c6b1a 100644 --- a/resources/ftl_backups/createTreeCode/jsp_tree_Template.ftl +++ b/resources/ftl_backups/createTreeCode/jsp_tree_Template.ftl @@ -23,7 +23,7 @@
- + ${r"${vs.index+1}"}
${r"${vs.index+1}"} ${r"${var.NAME}"} ${r"${var.NAME}"}${r"${var."}${var[0]}${r"}"}
- 新增 + 新增 - + 返回 - +
diff --git a/resources/mybatis1/sunvote/ClassTypeMapper.xml b/resources/mybatis1/sunvote/ClassTypeMapper.xml new file mode 100644 index 0000000..2289934 --- /dev/null +++ b/resources/mybatis1/sunvote/ClassTypeMapper.xml @@ -0,0 +1,106 @@ + + + + + + + SV_CLASSTYPE + + + + + NAME, + REMARK, + ID + + + + + #{NAME}, + #{REMARK}, + #{ID} + + + + + insert into + + ( + NAME, + REMARK + ) values ( + #{NAME}, + #{REMARK} + ) + + + + + delete from + + where + ID = #{ID} + + + + + update + + set + NAME = #{NAME}, + REMARK = #{REMARK}, + ID = ${ID} + where + ID = #{ID} + + + + + + + + + + + + + + delete from + + where + ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/GradeMapper.xml b/resources/mybatis1/sunvote/GradeMapper.xml new file mode 100644 index 0000000..6616792 --- /dev/null +++ b/resources/mybatis1/sunvote/GradeMapper.xml @@ -0,0 +1,102 @@ + + + + + + + SV_GRADE + + + + + SV_GRADE.NAME,SV_GRADE.DESC,REMARK,ID + + + + + #{NAME}, + #{DESC}, + #{REMARK}, + #{ID} + + + + + insert into + + ( + SV_GRADE.NAME, SV_GRADE.DESC, REMARK) values (#{NAME},#{DESC},#{REMARK} + ) + + + + + delete from + + where + ID = #{ID} + + + + + update + + set + SV_GRADE.NAME = #{NAME}, + SV_GRADE.DESC = #{DESC}, + REMARK = #{REMARK}, + ID = #{ID} + where + ID = #{ID} + + + + + + + + + + + + + + delete from + + where + ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/SClassMapper.xml b/resources/mybatis1/sunvote/SClassMapper.xml new file mode 100644 index 0000000..f14abfa --- /dev/null +++ b/resources/mybatis1/sunvote/SClassMapper.xml @@ -0,0 +1,126 @@ + + + + + + + SV_SCLASS + + + + + SCHOOL_ID, + GRADE_ID, + CLASS_TYPE, + CLASS_NAME, + CLASS_CODE, + BASESTATION_ID, + ID + + + + + #{SCHOOL_ID}, + #{GRADE_ID}, + #{CLASS_TYPE}, + #{CLASS_NAME}, + #{CLASS_CODE}, + #{BASESTATION_ID}, + #{ID} + + + + + insert into + + ( + SCHOOL_ID, + GRADE_ID, + CLASS_TYPE, + CLASS_NAME, + CLASS_CODE, + BASESTATION_ID + ) values ( + #{SCHOOL_ID}, + #{GRADE_ID}, + #{CLASS_TYPE}, + #{CLASS_NAME}, + #{CLASS_CODE}, + #{BASESTATION_ID} + ) + + + + + delete from + + where + ID = #{ID} + + + + + update + + set + SCHOOL_ID = #{SCHOOL_ID}, + GRADE_ID = #{GRADE_ID}, + CLASS_TYPE = #{CLASS_TYPE}, + CLASS_NAME = #{CLASS_NAME}, + CLASS_CODE = #{CLASS_CODE}, + BASESTATION_ID = #{BASESTATION_ID}, + ID = #{ID} + where + ID = #{ID} + + + + + + + + + + + + + + delete from + + where + ID in + + #{item} + + + + + \ No newline at end of file diff --git a/resources/mybatis1/sunvote/SubjectMapper.xml b/resources/mybatis1/sunvote/SubjectMapper.xml new file mode 100644 index 0000000..c89a93c --- /dev/null +++ b/resources/mybatis1/sunvote/SubjectMapper.xml @@ -0,0 +1,111 @@ + + + + + + + SV_SUBJECT + + + + + CNAME, + ENAME, + REMARK, + ID + + + + + #{CNAME}, + #{ENAME}, + #{REMARK}, + #{ID} + + + + + insert into + + ( + CNAME, + ENAME, + REMARK + ) values ( + #{CNAME}, + #{ENAME}, + #{REMARK} + ) + + + + + delete from + + where + ID = #{ID} + + + + + update + + set + CNAME = #{CNAME}, + ENAME = #{ENAME}, + REMARK = #{REMARK}, + ID = ID + where + ID = #{ID} + + + + + + + + + + + + + + delete from + + where + ID in + + #{item} + + + + + \ No newline at end of file diff --git a/src/com/fh/controller/api/ApiServer.java b/src/com/fh/controller/api/ApiServer.java index 0946b5e..25c72af 100644 --- a/src/com/fh/controller/api/ApiServer.java +++ b/src/com/fh/controller/api/ApiServer.java @@ -28,6 +28,21 @@ public class ApiServer extends BaseController { private KeypadManager keypadService; + @RequestMapping(value="/*" ,produces="application/json;charset=UTF-8") + @ResponseBody + public Object Default() throws Exception{ + ResponseGson respone = new ResponseGson(); + respone.setPathError(); + return respone.toJson(); + } + + @RequestMapping(value="/school" ,produces="application/json;charset=UTF-8") + @ResponseBody + public Object schoolDefault() throws Exception{ + return schoolList(); + } + + @RequestMapping(value="/school/list" ,produces="application/json;charset=UTF-8") @ResponseBody public Object schoolList() throws Exception{ diff --git a/src/com/fh/controller/api/ResponseGson.java b/src/com/fh/controller/api/ResponseGson.java index df605a7..5ddd0f4 100644 --- a/src/com/fh/controller/api/ResponseGson.java +++ b/src/com/fh/controller/api/ResponseGson.java @@ -56,8 +56,43 @@ public class ResponseGson { message = "net error" ; } - public void setDataError(){ + public void setPathError(){ code = "-2" ; + message = "Path error" ; + } + + public void setDataError(){ + code = "-3" ; message = "Data error" ; } + public void setParmError(){ + code = "-4" ; + message = "Parm error" ; + } + public void setError(){ + code = "-5" ; + message = "server error" ; + } + + public void set1Error(){ + code = "1" ; + message = "分别对错误进行描述,1 具体到某个参数值问题的描述" ; + } + + public void set2Error(){ + code = "2" ; + message = "分别对错误进行描述,1 具体到某个参数值问题的描述" ; + } + + public void set3Error(){ + code = "3" ; + message = "分别对错误进行描述,1 具体到某个参数值问题的描述" ; + } + + public void set4Error(){ + code = "4" ; + message = "分别对错误进行描述,1 具体到某个参数值问题的描述" ; + } + + } diff --git a/src/com/fh/controller/sunvote/classtype/ClassTypeController.java b/src/com/fh/controller/sunvote/classtype/ClassTypeController.java new file mode 100644 index 0000000..300890e --- /dev/null +++ b/src/com/fh/controller/sunvote/classtype/ClassTypeController.java @@ -0,0 +1,206 @@ +package com.fh.controller.sunvote.classtype; + +import java.io.PrintWriter; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.annotation.Resource; +import org.springframework.beans.propertyeditors.CustomDateEditor; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.WebDataBinder; +import org.springframework.web.bind.annotation.InitBinder; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; +import com.fh.controller.base.BaseController; +import com.fh.entity.Page; +import com.fh.util.AppUtil; +import com.fh.util.ObjectExcelView; +import com.fh.util.PageData; +import com.fh.util.Jurisdiction; +import com.fh.util.Tools; +import com.fh.service.sunvote.classtype.ClassTypeManager; + +/** + * 说明:班级类型 + * 创建人:Elvis + * 创建时间:2018-04-25 + */ +@Controller +@RequestMapping(value="/classtype") +public class ClassTypeController extends BaseController { + + String menuUrl = "classtype/list.do"; //菜单地址(权限用) + @Resource(name="classtypeService") + private ClassTypeManager classtypeService; + + /**保存 + * @param + * @throws Exception + */ + @RequestMapping(value="/save") + public ModelAndView save() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"新增ClassType"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "add")){return null;} //校验权限 + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + classtypeService.save(pd); + mv.addObject("msg","success"); + mv.setViewName("save_result"); + return mv; + } + + /**删除 + * @param out + * @throws Exception + */ + @RequestMapping(value="/delete") + public void delete(PrintWriter out) throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"删除ClassType"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return;} //校验权限 + PageData pd = new PageData(); + pd = this.getPageData(); + classtypeService.delete(pd); + out.write("success"); + out.close(); + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + public ModelAndView edit() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"修改ClassType"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "edit")){return null;} //校验权限 + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + classtypeService.edit(pd); + mv.addObject("msg","success"); + mv.setViewName("save_result"); + return mv; + } + + /**列表 + * @param page + * @throws Exception + */ + @RequestMapping(value="/list") + public ModelAndView list(Page page) throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"列表ClassType"); + //if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} //校验权限(无权查看时页面会有提示,如果不注释掉这句代码就无法进入列表页面,所以根据情况是否加入本句代码) + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + String keywords = pd.getString("keywords"); //关键词检索条件 + if(null != keywords && !"".equals(keywords)){ + pd.put("keywords", keywords.trim()); + } + page.setPd(pd); + List varList = classtypeService.list(page); //列出ClassType列表 + mv.setViewName("sunvote/classtype/classtype_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/classtype/classtype_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = classtypeService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/classtype/classtype_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除ClassType"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + classtypeService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出ClassType到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("名称"); //1 + titles.add("备注"); //2 + dataMap.put("titles", titles); + List varOList = classtypeService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = gradeService.list(page); //列出Grade列表 + mv.setViewName("sunvote/grade/grade_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/grade/grade_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = gradeService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/grade/grade_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除Grade"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + gradeService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出Grade到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("年级名称"); //1 + titles.add("年级描述"); //2 + titles.add("备注"); //3 + dataMap.put("titles", titles); + List varOList = gradeService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = sclassService.list(page); //列出SClass列表 + mv.setViewName("sunvote/sclass/sclass_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/sclass/sclass_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = sclassService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/sclass/sclass_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除SClass"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + sclassService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出SClass到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("所属学校"); //1 + titles.add("所属年级"); //2 + titles.add("班级类型"); //3 + titles.add("班级名称"); //4 + titles.add("班级编码"); //5 + titles.add("班级基站"); //6 + dataMap.put("titles", titles); + List varOList = sclassService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i varList = subjectService.list(page); //列出Subject列表 + mv.setViewName("sunvote/subject/subject_list"); + mv.addObject("varList", varList); + mv.addObject("pd", pd); + mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 + return mv; + } + + /**去新增页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goAdd") + public ModelAndView goAdd()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + mv.setViewName("sunvote/subject/subject_edit"); + mv.addObject("msg", "save"); + mv.addObject("pd", pd); + return mv; + } + + /**去修改页面 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + public ModelAndView goEdit()throws Exception{ + ModelAndView mv = this.getModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + pd = subjectService.findById(pd); //根据ID读取 + mv.setViewName("sunvote/subject/subject_edit"); + mv.addObject("msg", "edit"); + mv.addObject("pd", pd); + return mv; + } + + /**批量删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/deleteAll") + @ResponseBody + public Object deleteAll() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"批量删除Subject"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "del")){return null;} //校验权限 + PageData pd = new PageData(); + Map map = new HashMap(); + pd = this.getPageData(); + List pdList = new ArrayList(); + String DATA_IDS = pd.getString("DATA_IDS"); + if(null != DATA_IDS && !"".equals(DATA_IDS)){ + String ArrayDATA_IDS[] = DATA_IDS.split(","); + subjectService.deleteAll(ArrayDATA_IDS); + pd.put("msg", "ok"); + }else{ + pd.put("msg", "no"); + } + pdList.add(pd); + map.put("list", pdList); + return AppUtil.returnObject(pd, map); + } + + /**导出到excel + * @param + * @throws Exception + */ + @RequestMapping(value="/excel") + public ModelAndView exportExcel() throws Exception{ + logBefore(logger, Jurisdiction.getUsername()+"导出Subject到excel"); + if(!Jurisdiction.buttonJurisdiction(menuUrl, "cha")){return null;} + ModelAndView mv = new ModelAndView(); + PageData pd = new PageData(); + pd = this.getPageData(); + Map dataMap = new HashMap(); + List titles = new ArrayList(); + titles.add("中文名称"); //1 + titles.add("英文名称"); //2 + titles.add("备注"); //3 + dataMap.put("titles", titles); + List varOList = subjectService.listAll(pd); + List varList = new ArrayList(); + for(int i=0;i list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/classtype/impl/ClassTypeService.java b/src/com/fh/service/sunvote/classtype/impl/ClassTypeService.java new file mode 100644 index 0000000..4e63a6e --- /dev/null +++ b/src/com/fh/service/sunvote/classtype/impl/ClassTypeService.java @@ -0,0 +1,82 @@ +package com.fh.service.sunvote.classtype.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.classtype.ClassTypeManager; + +/** + * 说明: 班级类型 + * 创建人:FH Q313596790 + * 创建时间:2018-04-25 + * @version + */ +@Service("classtypeService") +public class ClassTypeService implements ClassTypeManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("ClassTypeMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("ClassTypeMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("ClassTypeMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("ClassTypeMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("ClassTypeMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("ClassTypeMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("ClassTypeMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/grade/GradeManager.java b/src/com/fh/service/sunvote/grade/GradeManager.java new file mode 100644 index 0000000..ca1ad6a --- /dev/null +++ b/src/com/fh/service/sunvote/grade/GradeManager.java @@ -0,0 +1,58 @@ +package com.fh.service.sunvote.grade; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 年级接口 + * 创建人:Elvis + * 创建时间:2018-04-25 + * @version + */ +public interface GradeManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/grade/impl/GradeService.java b/src/com/fh/service/sunvote/grade/impl/GradeService.java new file mode 100644 index 0000000..d298110 --- /dev/null +++ b/src/com/fh/service/sunvote/grade/impl/GradeService.java @@ -0,0 +1,82 @@ +package com.fh.service.sunvote.grade.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.grade.GradeManager; + +/** + * 说明: 年级 + * 创建人:FH Q313596790 + * 创建时间:2018-04-25 + * @version + */ +@Service("gradeService") +public class GradeService implements GradeManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("GradeMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("GradeMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("GradeMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("GradeMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("GradeMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("GradeMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("GradeMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/sclass/SClassManager.java b/src/com/fh/service/sunvote/sclass/SClassManager.java new file mode 100644 index 0000000..0dcfe01 --- /dev/null +++ b/src/com/fh/service/sunvote/sclass/SClassManager.java @@ -0,0 +1,58 @@ +package com.fh.service.sunvote.sclass; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 班级接口 + * 创建人:Elvis + * 创建时间:2018-04-25 + * @version + */ +public interface SClassManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/sclass/impl/SClassService.java b/src/com/fh/service/sunvote/sclass/impl/SClassService.java new file mode 100644 index 0000000..2c96c48 --- /dev/null +++ b/src/com/fh/service/sunvote/sclass/impl/SClassService.java @@ -0,0 +1,82 @@ +package com.fh.service.sunvote.sclass.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.sclass.SClassManager; + +/** + * 说明: 班级 + * 创建人:FH Q313596790 + * 创建时间:2018-04-25 + * @version + */ +@Service("sclassService") +public class SClassService implements SClassManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("SClassMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("SClassMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("SClassMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("SClassMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("SClassMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("SClassMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("SClassMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/subject/SubjectManager.java b/src/com/fh/service/sunvote/subject/SubjectManager.java new file mode 100644 index 0000000..0f25aa0 --- /dev/null +++ b/src/com/fh/service/sunvote/subject/SubjectManager.java @@ -0,0 +1,58 @@ +package com.fh.service.sunvote.subject; + +import java.util.List; +import com.fh.entity.Page; +import com.fh.util.PageData; + +/** + * 说明: 科目接口 + * 创建人:Elvis + * 创建时间:2018-04-25 + * @version + */ +public interface SubjectManager{ + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**列表 + * @param page + * @throws Exception + */ + public List list(Page page)throws Exception; + + /**列表(全部) + * @param pd + * @throws Exception + */ + public List listAll(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception; + +} + diff --git a/src/com/fh/service/sunvote/subject/impl/SubjectService.java b/src/com/fh/service/sunvote/subject/impl/SubjectService.java new file mode 100644 index 0000000..55f41fb --- /dev/null +++ b/src/com/fh/service/sunvote/subject/impl/SubjectService.java @@ -0,0 +1,82 @@ +package com.fh.service.sunvote.subject.impl; + +import java.util.List; +import javax.annotation.Resource; +import org.springframework.stereotype.Service; +import com.fh.dao.DaoSupport; +import com.fh.entity.Page; +import com.fh.util.PageData; +import com.fh.service.sunvote.subject.SubjectManager; + +/** + * 说明: 科目 + * 创建人:FH Q313596790 + * 创建时间:2018-04-25 + * @version + */ +@Service("subjectService") +public class SubjectService implements SubjectManager{ + + @Resource(name = "daoSupport") + private DaoSupport dao; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + dao.save("SubjectMapper.save", pd); + } + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception{ + dao.delete("SubjectMapper.delete", pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + dao.update("SubjectMapper.edit", pd); + } + + /**列表 + * @param page + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List list(Page page)throws Exception{ + return (List)dao.findForList("SubjectMapper.datalistPage", page); + } + + /**列表(全部) + * @param pd + * @throws Exception + */ + @SuppressWarnings("unchecked") + public List listAll(PageData pd)throws Exception{ + return (List)dao.findForList("SubjectMapper.listAll", pd); + } + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception{ + return (PageData)dao.findForObject("SubjectMapper.findById", pd); + } + + /**批量删除 + * @param ArrayDATA_IDS + * @throws Exception + */ + public void deleteAll(String[] ArrayDATA_IDS)throws Exception{ + dao.delete("SubjectMapper.deleteAll", ArrayDATA_IDS); + } + +} + diff --git a/src/com/fh/service/sunvote/teachingmaterial/TeachingMaterialManager.java b/src/com/fh/service/sunvote/teachingmaterial/TeachingMaterialManager.java index 4a9532d..8d7e2f4 100644 --- a/src/com/fh/service/sunvote/teachingmaterial/TeachingMaterialManager.java +++ b/src/com/fh/service/sunvote/teachingmaterial/TeachingMaterialManager.java @@ -6,8 +6,8 @@ import com.fh.util.PageData; /** * 说明: 教材接口 - * 创建人:FH Q313596790 - * 创建时间:2018-04-18 + * 创建人:Elvis + * 创建时间:2018-04-25 * @version */ public interface TeachingMaterialManager{ diff --git a/src/com/fh/service/sunvote/teachingmaterial/impl/TeachingMaterialService.java b/src/com/fh/service/sunvote/teachingmaterial/impl/TeachingMaterialService.java index 7e09d0f..c343da1 100644 --- a/src/com/fh/service/sunvote/teachingmaterial/impl/TeachingMaterialService.java +++ b/src/com/fh/service/sunvote/teachingmaterial/impl/TeachingMaterialService.java @@ -11,7 +11,7 @@ import com.fh.service.sunvote.teachingmaterial.TeachingMaterialManager; /** * 说明: 教材 * 创建人:FH Q313596790 - * 创建时间:2018-04-18 + * 创建时间:2018-04-25 * @version */ @Service("teachingmaterialService")