diff --git a/Server/ArtEducation0331/WebContent/jsp/css/index.css b/Server/ArtEducation0331/WebContent/jsp/css/index.css index 9224041..dd14c45 100644 --- a/Server/ArtEducation0331/WebContent/jsp/css/index.css +++ b/Server/ArtEducation0331/WebContent/jsp/css/index.css @@ -5,15 +5,15 @@ background-position: top; background-repeat: no-repeat; background-attachment: fixed; - background-size: 100%; + background-size: cover; } .qrcode { - /*width: 200px;*/ - /*height: 100px;*/ + padding: 10px 10px 0 10px; background-color: #fff; position: absolute; right: 20%; bottom: 30%; + border-radius: 4px; } .qrcode div { display: inline-block; @@ -29,11 +29,14 @@ display: block; margin-bottom:10px; text-align: center; + font-size: 16px; + font-weight: bold; + color: #000; } .qrcode:before{ content: '扫描二维码下载App'; position: absolute; - bottom: 140px; + bottom: 150px; font-size: 20px; font-weight: bold; color: white; diff --git a/Server/ArtEducation0331/WebContent/jsp/css/school.css b/Server/ArtEducation0331/WebContent/jsp/css/school.css index 8e7b341..1ae9cc7 100644 --- a/Server/ArtEducation0331/WebContent/jsp/css/school.css +++ b/Server/ArtEducation0331/WebContent/jsp/css/school.css @@ -1,3 +1,6 @@ +hr { + border-top: 1px solid #000; +} button { width: 130px; } @@ -20,8 +23,68 @@ img { height:100%; width:100%; } -.tinfo td { +.tinfo td, +.tdbasic{ font-size: 18px; line-height: 3em; padding: 5px; -} \ No newline at end of file +} + + +textarea { + width: 100%; +} + +.radiobox div{ + display: inline-block; + margin-left: 20px; +} + +.tuli:before { + content: '图例:'; +} +.tuli li { + text-decoration: none; + display: inline-block; + margin-left: 20px; + padding: 3px; +} + +.smfailed { + background-color: #e26a88; +} + +.smwaiting { + background-color: #f6c1d2; +} + +.smunfilled { + background-color: #6dd0db; +} + +.smfull { + background-color: #3fa6d3; +} + +.smsuspended { + background-color: #e3bb44; +} + +.smgoing { + background-color: #e3e2df; +} + + +.smonlinepaid { + background-color: #fbbeff; +} +.smonlineunpaid { + background-color: #F400FF; +} +.smdiscount { + background-color: #f98451; +} +.smundiscount { + background-color: #f74c24; +} + diff --git a/Server/ArtEducation0331/WebContent/jsp/css/sidenav.css b/Server/ArtEducation0331/WebContent/jsp/css/sidenav.css index 855c0d2..80fd866 100644 --- a/Server/ArtEducation0331/WebContent/jsp/css/sidenav.css +++ b/Server/ArtEducation0331/WebContent/jsp/css/sidenav.css @@ -30,7 +30,8 @@ } .sidebar a:hover, .sidebar a:focus, -.sidebar a:active +.sidebar a:active, +.sidebar .active { text-decoration: none; background-color: #00b976; diff --git a/Server/ArtEducation0331/WebContent/jsp/css/signup-style.css b/Server/ArtEducation0331/WebContent/jsp/css/signup-style.css index 979ca54..46c1b05 100644 --- a/Server/ArtEducation0331/WebContent/jsp/css/signup-style.css +++ b/Server/ArtEducation0331/WebContent/jsp/css/signup-style.css @@ -3,6 +3,7 @@ ============================================================================= */ .page-title { height: 150px; + letter-spacing: 5px; text-align: center; line-height: 150px; font-size: 48px; @@ -11,31 +12,17 @@ text-shadow: -3px -3px 5px #264E7F; } /* numbered buttons */ -#status-buttons a{ - width: 96px; +.status-buttons { + width: 196px; height: 96px; - color:#333; - display:inline-block; - font-size:24px; - margin-right:20px; + color:#080808; + font-size:24px; + font-weight: bold; + margin:0 auto; text-align:center; } -#status-buttons a:first-child { - margin-right: 40px; -} -#status-buttons a:nth-child(3) { - margin-right: 15px; -} -#status-buttons a:hover { - text-decoration: none; -} -#status-buttons a:active, -#status-buttons a:focus { - text-decoration:none; - color:#00BC8C; -} -#status-buttons span{ +.status-buttons span{ color: #fff; background:#080808; text-align: center; @@ -46,13 +33,9 @@ width:50px; border-radius:100%; } -#status-buttons a.active { - color: #00BC8C; -} -#status-buttons a.active span{ - background:#00BC8C; +.error { + color: red; } - /* ANIMATION STYLINGS ============================================================================= */ #signup-form { position:relative; min-height:300px; overflow:hidden; padding:30px; } diff --git a/Server/ArtEducation0331/WebContent/jsp/degreeConst.json b/Server/ArtEducation0331/WebContent/jsp/degreeConst.json deleted file mode 100644 index 4e1ec1a..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/degreeConst.json +++ /dev/null @@ -1 +0,0 @@ -["专科","学士","硕士"] \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/fieldConst.json b/Server/ArtEducation0331/WebContent/jsp/fieldConst.json deleted file mode 100644 index eb5c5ed..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/fieldConst.json +++ /dev/null @@ -1 +0,0 @@ -["钢琴","小提琴","吉他"] \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/img/ph.png b/Server/ArtEducation0331/WebContent/jsp/img/ph.png new file mode 100644 index 0000000..78dbd68 Binary files /dev/null and b/Server/ArtEducation0331/WebContent/jsp/img/ph.png differ diff --git a/Server/ArtEducation0331/WebContent/jsp/index.jsp b/Server/ArtEducation0331/WebContent/jsp/index.jsp index 2222d87..08a5c93 100644 --- a/Server/ArtEducation0331/WebContent/jsp/index.jsp +++ b/Server/ArtEducation0331/WebContent/jsp/index.jsp @@ -1,6 +1,7 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + @@ -13,7 +14,7 @@
-
+

艺宝,您身边的艺术教师!

@@ -21,17 +22,24 @@ 教师入驻 教师登录 机构登录 + + <% if(session.getAttribute("resultCode")=="9001"){ %> +

用户名或邮箱不存在

+ <%session.removeAttribute("resultCode");}else if(session.getAttribute("resultCode")=="9002"){ %> +

密码错误

+ <%session.removeAttribute("resultCode");}else if(session.getAttribute("resultCode")=="9009"){ %> +

其他原因导致登录失败

+ <%session.removeAttribute("resultCode");} %> +
\ No newline at end of file +
+
+
+
+

履历

+

2010年XXX2011年XXXX2013年XXXXX

+ +
+

状态

+
+
全职
+
兼职
+
+
+

课程列表

+
    +
  • 审核未通过
  • +
  • 待审核
  • +
  • 未招满
  • +
  • 已招满
  • +
  • 已停课
  • +
  • 正在上课
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
课程编号课程名课程类型上课时间上课地点实际招生/计划招生状态操作
1001修改课程信息
1002
1003修改课程信息/停课
1004
1005
1006修改课程信息/停课
+
+
diff --git a/Server/ArtEducation0331/WebContent/jsp/school/teacherManager.html b/Server/ArtEducation0331/WebContent/jsp/school/teacherManager.html index 5803e77..37e7a69 100644 --- a/Server/ArtEducation0331/WebContent/jsp/school/teacherManager.html +++ b/Server/ArtEducation0331/WebContent/jsp/school/teacherManager.html @@ -1,6 +1,6 @@
- +
diff --git a/Server/ArtEducation0331/WebContent/jsp/signup/signup-basic.html b/Server/ArtEducation0331/WebContent/jsp/signup/signup-basic.html deleted file mode 100644 index 998cd95..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/signup/signup-basic.html +++ /dev/null @@ -1,49 +0,0 @@ -
- - -
-
- - -
-
- - -
-
- - -
-
- - - 男 - 女 - -
-
- - -
-
- - -
-
- - -
- - \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/signup/signup-form.html b/Server/ArtEducation0331/WebContent/jsp/signup/signup-form.html deleted file mode 100644 index 3c0f632..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/signup/signup-form.html +++ /dev/null @@ -1,22 +0,0 @@ -
-
- -
-
-
- - -
-        {{ formData }}
-    
- - -
-
\ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/signup/signup-id.html b/Server/ArtEducation0331/WebContent/jsp/signup/signup-id.html deleted file mode 100644 index fe146c9..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/signup/signup-id.html +++ /dev/null @@ -1,28 +0,0 @@ -

请提交您的身份证及学历证书清晰照片

-
- - -
-
-

身份证正面照片

- -
-

身份证背面照片

- -
-
- - -
-
- - -
- - - -
-
- -
-
\ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/signup/signup-veri.html b/Server/ArtEducation0331/WebContent/jsp/signup/signup-veri.html deleted file mode 100644 index 0bb653f..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/signup/signup-veri.html +++ /dev/null @@ -1,5 +0,0 @@ -
-
恭喜,信息录入成功,请耐心等待验证。 -我们将在两个工作日内跟你联系。 -
-
\ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/signup/signup.html b/Server/ArtEducation0331/WebContent/jsp/signup/signup.html index ec05239..8bbad6c 100644 --- a/Server/ArtEducation0331/WebContent/jsp/signup/signup.html +++ b/Server/ArtEducation0331/WebContent/jsp/signup/signup.html @@ -11,22 +11,128 @@
- 入 驻 流 程 + 教师入驻信息登记
-
-
+
+
+
+
+ +
+ + +
+
+ + +
+
+ + +
+ + + + +
+ + +
+
+ + +
+
+ 性别 + + + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ 工作类型 + + + + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+
+ +
+
+
+
+
©底部信息
- - - - - + + + + + \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/submitDiplomaInfo.jsp b/Server/ArtEducation0331/WebContent/jsp/submitDiplomaInfo.jsp new file mode 100644 index 0000000..12ee066 --- /dev/null +++ b/Server/ArtEducation0331/WebContent/jsp/submitDiplomaInfo.jsp @@ -0,0 +1,64 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + + + + +修改教师认证信息 + + + + + +

shabile

+ +
+ + +
+<%-- --%> +修改教师认证信息 + + + + + + + + + + + + + + + + + + +
身份证照片 + + +
+
+ +
本科/专科毕业证 + + +
+
+ +
硕士毕业证 + + +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teAgeConst.json b/Server/ArtEducation0331/WebContent/jsp/teAgeConst.json deleted file mode 100644 index 826be20..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/teAgeConst.json +++ /dev/null @@ -1 +0,0 @@ -["0~1年","1~2年","2~3年","3年以上"] \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/editpwd.html b/Server/ArtEducation0331/WebContent/jsp/teacher/editpwd.html new file mode 100644 index 0000000..05b8ee9 --- /dev/null +++ b/Server/ArtEducation0331/WebContent/jsp/teacher/editpwd.html @@ -0,0 +1,30 @@ + + + + + 修改密码 + + + +
+
+
+
+ +
+ + +
+
+ + +
+
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-historyCourse.html b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-historyCourse.html index 56da219..c7be9d5 100644 --- a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-historyCourse.html +++ b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-historyCourse.html @@ -1,12 +1,82 @@ - - - - - - - - - - - -
课程名称时间课时数地点状态
\ No newline at end of file + + + + + + 教师管理 + + + + + + + +
+
+
+

艺宝,您身边的艺术教师!

+
+
+ + + +
+
+
+
+
+ +
+ + + + + + + + + + + +
课程名称时间课时数地点状态
+
+
+
+
+
+ ©底部信息 +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-identity.html b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-identity.html deleted file mode 100644 index a62b151..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-identity.html +++ /dev/null @@ -1,32 +0,0 @@ -

请提交您的身份证及学历证书清晰照片

-
- - -
-
-

身份证正面照片

- - -
-

身份证背面照片

- - -
-
- - - -
-
- - - -
- - - -
-
- -
-
\ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-identity.jsp b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-identity.jsp new file mode 100644 index 0000000..167ad0b --- /dev/null +++ b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-identity.jsp @@ -0,0 +1,98 @@ +<%@page import="cn.itcast.ssm.po.TeacherCustom"%> +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + + + + + + 教师管理 + + + + + + + +
+
+
+

艺宝,您身边的艺术教师!

+
+
+ + + +
+
+
+ <%TeacherCustom tc=(TeacherCustom)session.getAttribute("teacherCustom"); %> +
+
+ +
+

请提交您的身份证及学历证书清晰照片

+
+ +
+ +
+ + + +
+
+ + + +
+
+ + + +
+ +
+
+
+
+
+
+
+ ©底部信息 +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-myCourse.html b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-myCourse.html deleted file mode 100644 index 8d61e3c..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-myCourse.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - -
课程名称时间课时数地点状态操作
\ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-postCourse.html b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-postCourse.html index bf98913..641ad88 100644 --- a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-postCourse.html +++ b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-postCourse.html @@ -1,49 +1,139 @@ -
- - -
-
- - -
-
-
-

选择时间

-
-
-
- - + + + + + + 教师管理 + + + + + + + +
+
+
+

艺宝,您身边的艺术教师!

-
- - -
-
- - +
+ + +
-
-
- - -
-
- - -
-
- -
-
-
+
+
+
+ +
+
+

以下内容全部必填

+
+
+ + +
+
+ + +
+
+
+

选择时间

+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+ + +
+ + +
+
+
-
- -
-
- +
+
+ ©底部信息
-
\ No newline at end of file + + + + + + + + + + + \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-profile.html b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-profile.html deleted file mode 100644 index 018697a..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-profile.html +++ /dev/null @@ -1,43 +0,0 @@ -
- - -
-
- - 修改密码 -
-
- - -
-
- - - 男 - 女 - -
-
- - -
-
- - -
-
- - -
- -
-
- -
-
\ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-profile.jsp b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-profile.jsp new file mode 100644 index 0000000..fafb736 --- /dev/null +++ b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-profile.jsp @@ -0,0 +1,199 @@ +<%@page import="cn.itcast.ssm.po.TeacherCustom"%> +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + + + + + + 教师管理 + + + + + + + +
+
+
+

艺宝,您身边的艺术教师!

+
+
+ + + +
+
+
+ + + <% TeacherCustom tc=(TeacherCustom)session.getAttribute("teacherCustom"); + String editTeacherInfo=(String)session.getAttribute("editTeacherInfo");%> + +
+
+ +
+
+
+ +
+ + + +

邮箱已存在

+
+ + +

其他原因导致修改失败

+
+
+
+ + + +

用户名已存在

+
+
+ +
+ + +
+
+ 性别 + + + + + + + + + + + + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ 工作类型 + + + + + + + + + + + +
+
+ + +
+
+
+ +
+
+
+
+
+
+
+
+
+ ©底部信息 +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-sidebar.html b/Server/ArtEducation0331/WebContent/jsp/teacher/tm-sidebar.html deleted file mode 100644 index b57a5ed..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/teacher/tm-sidebar.html +++ /dev/null @@ -1,20 +0,0 @@ -
- -
-
-
-
-
-
\ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm.html b/Server/ArtEducation0331/WebContent/jsp/teacher/tm.html deleted file mode 100644 index f147fcb..0000000 --- a/Server/ArtEducation0331/WebContent/jsp/teacher/tm.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - 教师管理 - - - - - - - -
-
-
-

艺宝,您身边的艺术教师!

-
-
- - - -
-
-
-
-
-
-
-
- ©底部信息 -
-
- - - - - - - - - - - \ No newline at end of file diff --git a/Server/ArtEducation0331/WebContent/jsp/teacher/tm.jsp b/Server/ArtEducation0331/WebContent/jsp/teacher/tm.jsp new file mode 100644 index 0000000..0c03bb5 --- /dev/null +++ b/Server/ArtEducation0331/WebContent/jsp/teacher/tm.jsp @@ -0,0 +1,116 @@ +<%@page import="cn.itcast.ssm.po.TeacherCustom"%> +<%@page import="cn.itcast.ssm.view.TeacherCoursesView"%> +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + + + + + + 教师管理 + + + + + + + +
+
+
+

艺宝,您身边的艺术教师!

+
+
+ + + +
+
+
+
+
+ +
+ + + + + + + + + + + + <%-- <% for(TeacherCoursesView tcv:session.getAttribute("teacherCoursesViews")){ %> + + + + + + + + + + <% }%> --%> + + + + + + + + + + + + + + + +
课程名称开始时间结束时间每节课时间地点状态操作
<%=tcv.getCourseName() %><%=tcv.getStartTime() %><%=tcv.getEndTime() %><%=tcv.getClassTime() %><%=tcv.getTeachAddress() %><%=tcv.getStartTime() %>修改
${item.courseName }${item.startTime }${item.endTime }${item.classTime }${item.teachAddress }${item.courseStatus }修改
+
+
+
+
+
+ ©底部信息 +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/Server/ArtEducation0331/build/classes/.gitignore b/Server/ArtEducation0331/build/classes/.gitignore index 8fe2033..dbfdbaa 100644 --- a/Server/ArtEducation0331/build/classes/.gitignore +++ b/Server/ArtEducation0331/build/classes/.gitignore @@ -1 +1,5 @@ /cn/ +/db.properties +/log4j.properties +/mybatis/ +/spring/ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/CourseController.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/CourseController.class deleted file mode 100644 index 27b18ba..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/CourseController.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/StudentController.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/StudentController.class deleted file mode 100644 index 996001c..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/StudentController.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/TeacherController.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/TeacherController.class deleted file mode 100644 index 4d06285..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/controller/TeacherController.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/CourseMapper.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/CourseMapper.class deleted file mode 100644 index ed432e1..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/CourseMapper.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/CourseMapper.xml b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/CourseMapper.xml deleted file mode 100644 index bdf1252..0000000 --- a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/CourseMapper.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/OrganizationMapper.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/OrganizationMapper.class deleted file mode 100644 index 6e8a9c9..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/OrganizationMapper.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/OrganizationMapper.xml b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/OrganizationMapper.xml deleted file mode 100644 index 497a920..0000000 --- a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/OrganizationMapper.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/StudentMapper.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/StudentMapper.class deleted file mode 100644 index e147359..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/StudentMapper.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/StudentMapper.xml b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/StudentMapper.xml deleted file mode 100644 index ad57ac9..0000000 --- a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/StudentMapper.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - - - - - - - - - UPDATE t_student SET studentAge= #{studentAge},phone = #{phone},preference = #{preference} - WHERE studentId = #{studentId} - - - - - - - - - - - - - - - - SELECT LAST_INSERT_ID() - - insert into t_student(studentName,email,password,realName,gender,studentAge,preference,phone) - values(#{studentName},#{email},#{password},#{realName},#{gender},#{studentAge},#{preference},#{phone}) - - - - - - SELECT LAST_INSERT_ID() - - insert into t_orderscar(studentId,courseId,time,count,totalPrice) - values(#{studentId},#{courseId},#{time},#{count},#{totalPrice}) - - - - - - - - - - - - - - - - update t_orderscar - set count=#{count},totalPrice=#{totalPrice},time=#{time} - where studentId=#{studentId} and courseId=#{courseId} - - - - - delete - from t_orderscar - where ordersCarId=#{ordersCarId} - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/TeacherMapper.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/TeacherMapper.class deleted file mode 100644 index 642bce8..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/TeacherMapper.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/TeacherMapper.xml b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/TeacherMapper.xml deleted file mode 100644 index 6e740e5..0000000 --- a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/mapper/TeacherMapper.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Admin.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Admin.class deleted file mode 100644 index 4fce6e4..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Admin.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/AdminCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/AdminCustom.class deleted file mode 100644 index b6681a1..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/AdminCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Comment.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Comment.class deleted file mode 100644 index 49829f7..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Comment.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Course.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Course.class deleted file mode 100644 index d3f102c..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Course.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseCustom.class deleted file mode 100644 index 8f7e72c..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseDetailCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseDetailCustom.class deleted file mode 100644 index fd6606d..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseDetailCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseStudent.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseStudent.class deleted file mode 100644 index c559250..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseStudent.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseType.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseType.class deleted file mode 100644 index f00ce2b..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseType.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseTypeCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseTypeCustom.class deleted file mode 100644 index 2b4c52e..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/CourseTypeCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Discount.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Discount.class deleted file mode 100644 index e61e688..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Discount.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountCustom.class deleted file mode 100644 index 21ab48a..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountDetaileCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountDetaileCustom.class deleted file mode 100644 index b5ad260..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountDetaileCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountUseInfo.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountUseInfo.class deleted file mode 100644 index b5b37c9..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/DiscountUseInfo.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/File.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/File.class deleted file mode 100644 index 3ba6ed8..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/File.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/FileRelation.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/FileRelation.class deleted file mode 100644 index 51ed90e..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/FileRelation.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/MyDiscountInfo.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/MyDiscountInfo.class deleted file mode 100644 index bcda689..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/MyDiscountInfo.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Orders.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Orders.class deleted file mode 100644 index 7a453b1..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Orders.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCar.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCar.class deleted file mode 100644 index 5cb88ba..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCar.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarCustom.class deleted file mode 100644 index 70ce3ff..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarInfo.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarInfo.class deleted file mode 100644 index 42b7d5c..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarInfo.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarList.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarList.class deleted file mode 100644 index 2f437e3..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrdersCarList.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Organization.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Organization.class deleted file mode 100644 index afe5d18..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Organization.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrganizationCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrganizationCustom.class deleted file mode 100644 index e316d1b..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/OrganizationCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/PayInfo.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/PayInfo.class deleted file mode 100644 index 34cca77..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/PayInfo.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Student.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Student.class deleted file mode 100644 index 4c46e92..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Student.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/StudentCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/StudentCustom.class deleted file mode 100644 index 6b39275..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/StudentCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Teacher.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Teacher.class deleted file mode 100644 index 5b7577b..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/Teacher.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/TeacherCustom.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/TeacherCustom.class deleted file mode 100644 index 4a0125f..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/TeacherCustom.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/UserToken.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/UserToken.class deleted file mode 100644 index a516c19..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/po/UserToken.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/AdminService.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/AdminService.class deleted file mode 100644 index cc76081..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/AdminService.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/CourseService.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/CourseService.class deleted file mode 100644 index 123af0e..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/CourseService.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/OrganizationService.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/OrganizationService.class deleted file mode 100644 index 14e2557..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/OrganizationService.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/StudentService.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/StudentService.class deleted file mode 100644 index 33b54bc..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/StudentService.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/TeacherService.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/TeacherService.class deleted file mode 100644 index f069b26..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/TeacherService.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/AdminServiceImpl.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/AdminServiceImpl.class deleted file mode 100644 index 1536b09..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/AdminServiceImpl.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/CourseServiceImpl.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/CourseServiceImpl.class deleted file mode 100644 index def5b19..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/CourseServiceImpl.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/OrganizationServiceImpl.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/OrganizationServiceImpl.class deleted file mode 100644 index c15016f..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/OrganizationServiceImpl.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/StudentServiceImpl.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/StudentServiceImpl.class deleted file mode 100644 index 8d4a92b..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/StudentServiceImpl.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/TeacherServiceImpl.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/TeacherServiceImpl.class deleted file mode 100644 index f9c2009..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/service/impl/TeacherServiceImpl.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseCommentView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseCommentView.class deleted file mode 100644 index 3c06d07..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseCommentView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseDetailView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseDetailView.class deleted file mode 100644 index 71abfba..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseDetailView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseTypeView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseTypeView.class deleted file mode 100644 index 19edd8c..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseTypeView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseView.class deleted file mode 100644 index c0c8997..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/CourseView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/DiscountCustomView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/DiscountCustomView.class deleted file mode 100644 index 72c4d4f..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/DiscountCustomView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/OrdersCarListView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/OrdersCarListView.class deleted file mode 100644 index 6267709..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/OrdersCarListView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/StudentCourseEnrollView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/StudentCourseEnrollView.class deleted file mode 100644 index 74c42d2..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/StudentCourseEnrollView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/StudentView.class b/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/StudentView.class deleted file mode 100644 index 6ed78b5..0000000 Binary files a/Server/ArtEducation0331/build/classes/cn/itcast/ssm/view/StudentView.class and /dev/null differ diff --git a/Server/ArtEducation0331/build/classes/db.properties b/Server/ArtEducation0331/build/classes/db.properties deleted file mode 100644 index df24acd..0000000 --- a/Server/ArtEducation0331/build/classes/db.properties +++ /dev/null @@ -1,6 +0,0 @@ -jdbc.driver=com.mysql.jdbc.Driver -jdbc.url=jdbc:mysql://127.0.0.1:3306/artedu?characterEncoding=utf-8 -jdbc.username=root -jdbc.password=123456 - - diff --git a/Server/ArtEducation0331/build/classes/log4j.properties b/Server/ArtEducation0331/build/classes/log4j.properties deleted file mode 100644 index 0dda59a..0000000 --- a/Server/ArtEducation0331/build/classes/log4j.properties +++ /dev/null @@ -1,7 +0,0 @@ -# Global logging configuration\uFF0C\u5EFA\u8BAE\u5F00\u53D1\u73AF\u5883\u4E2D\u8981\u7528debug -log4j.rootLogger=DEBUG, stdout -# Console output... -log4j.appender.stdout=org.apache.log4j.ConsoleAppender -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout -log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n - diff --git a/Server/ArtEducation0331/build/classes/mybatis/sqlMapConfig.xml b/Server/ArtEducation0331/build/classes/mybatis/sqlMapConfig.xml deleted file mode 100644 index 3497ec5..0000000 --- a/Server/ArtEducation0331/build/classes/mybatis/sqlMapConfig.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/Server/ArtEducation0331/build/classes/spring/applicationContext-dao.xml b/Server/ArtEducation0331/build/classes/spring/applicationContext-dao.xml deleted file mode 100644 index 2c2a1b0..0000000 --- a/Server/ArtEducation0331/build/classes/spring/applicationContext-dao.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Server/ArtEducation0331/build/classes/spring/applicationContext-service.xml b/Server/ArtEducation0331/build/classes/spring/applicationContext-service.xml deleted file mode 100644 index 606fae0..0000000 --- a/Server/ArtEducation0331/build/classes/spring/applicationContext-service.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/Server/ArtEducation0331/build/classes/spring/applicationContext-transaction.xml b/Server/ArtEducation0331/build/classes/spring/applicationContext-transaction.xml deleted file mode 100644 index e930287..0000000 --- a/Server/ArtEducation0331/build/classes/spring/applicationContext-transaction.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Server/ArtEducation0331/build/classes/spring/springmvc.xml b/Server/ArtEducation0331/build/classes/spring/springmvc.xml deleted file mode 100644 index 35a3bbf..0000000 --- a/Server/ArtEducation0331/build/classes/spring/springmvc.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Server/ArtEducation0331/config/spring/springmvc.xml b/Server/ArtEducation0331/config/spring/springmvc.xml index 35a3bbf..5cd560a 100644 --- a/Server/ArtEducation0331/config/spring/springmvc.xml +++ b/Server/ArtEducation0331/config/spring/springmvc.xml @@ -41,11 +41,11 @@ --> - + 52428800 - --> + \ No newline at end of file diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/controller/CourseController.java b/Server/ArtEducation0331/src/cn/itcast/ssm/controller/CourseController.java index 50b7541..a982f73 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/controller/CourseController.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/controller/CourseController.java @@ -20,7 +20,7 @@ public class CourseController { @Autowired private CourseService courseService; - +// 查询每个课程大类下的所有课程 @RequestMapping(value="/queryCoursesList.action") public @ResponseBody List queryCoursesList(Integer courseTypeId) throws Exception{ List cvs = courseService.findCourseListByCId(courseTypeId); @@ -36,6 +36,7 @@ public class CourseController { return ctvs; } +// 查询课程详情 @RequestMapping(value="/queryCourseDetail.action") public @ResponseBody CourseDetailView queryCourseDetail(Integer courseId) throws Exception{ CourseDetailView cdv = courseService.findCourseDetailByCId(courseId); diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/controller/StudentController.java b/Server/ArtEducation0331/src/cn/itcast/ssm/controller/StudentController.java index 808951b..eb9dbf3 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/controller/StudentController.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/controller/StudentController.java @@ -23,6 +23,7 @@ import cn.itcast.ssm.view.DiscountCustomView; import cn.itcast.ssm.view.OrdersCarListView; import cn.itcast.ssm.view.StudentCourseEnrollView; +import cn.itcast.ssm.view.StudentCourseView; import cn.itcast.ssm.view.StudentView; import net.sf.json.JSON; import net.sf.json.JSONArray; @@ -100,7 +101,7 @@ public void updateStuInfoSubmit(HttpServletRequest request,HttpServletResponse r } // 查询优惠券详细信息 - @RequestMapping(value="queryDiscountDetail.action",method=RequestMethod.GET) + @RequestMapping(value="/queryDiscountDetail.action",method=RequestMethod.GET) public @ResponseBody DiscountDetaileCustom queryDiscountDetail(Integer discountId)throws Exception{ DiscountDetaileCustom discountDetaileCustom=studentService.findDiscountDetailByDId(discountId); System.out.println(discountDetaileCustom.toString()); @@ -217,6 +218,46 @@ public void deleteOrdersCar(HttpServletRequest request,HttpServletResponse respo public @ResponseBody List getDiscount(Integer studentId){ return studentService.getDiscount(studentId); } + + @RequestMapping(value="/queryStuCourseList.action",method=RequestMethod.GET) + public @ResponseBody List queryStuCourseList(Integer studentId){ + return studentService.findStuCouViewBySId(studentId); + } + +// 生成优惠码 + @RequestMapping(value="/getDiscountNum.action",method=RequestMethod.POST) + public void getDiscountNum(HttpServletRequest request,HttpServletResponse response){ + String data=request.getParameter("data"); + JSONObject jsonObject=JSONObject.fromObject(data); + String resultCode=null; +// 获取学生id + Integer studentId=Integer.parseInt(jsonObject.get("studentId").toString()); + + String s=jsonObject.get("ids").toString(); + JSONArray jsonArray=JSONArray.fromObject(s); + + try { + for(int i=0;i teacherCoursesViews=teacherService.findTeacherCourses(teacherId); + session.setAttribute("teacherCustom", tc); + session.setAttribute("teacherCoursesViews", teacherCoursesViews); + return "redirect:/jsp/teacher/tm.jsp"; + } + } + +// 编辑教师认证信息 + @RequestMapping(value="/editTeacherDipPic.action",method=RequestMethod.POST) + public String editTeacherDipPic(HttpServletRequest request, + TeacherCustom tc, + HttpSession session, + MultipartFile idPic, //接受身份证的图片 + MultipartFile diplomaPic, + MultipartFile masterDiplomaPic + ) throws IllegalStateException, IOException{ + +// 存储图片的物理路径 + String pic_path="/Users/linbo/Documents/test/"; + System.out.println(tc); + +// 图片的原始名称 + String idPicFilename=idPic.getOriginalFilename(); + if(idPic!=null&&idPicFilename!=null&&idPicFilename.length()>0){ +// 新的图片名称 + String newFileName=UUID.randomUUID()+idPicFilename.substring(idPicFilename.lastIndexOf('.')); +// 新图片 + File newFile=new File(pic_path+newFileName); +// 将内存中的数据写入磁盘 + idPic.transferTo(newFile); +// 将新的图片名称写进itemsCustom中 + tc.setIdPic(newFileName); + } + +// 图片的原始名称 + String diplomaPicFilename=diplomaPic.getOriginalFilename(); + if(diplomaPic!=null&&diplomaPicFilename!=null&&diplomaPicFilename.length()>0){ +// 新的图片名称 + String newFileName=UUID.randomUUID()+diplomaPicFilename.substring(diplomaPicFilename.lastIndexOf('.')); +// 新图片 + File newFile=new File(pic_path+newFileName); +// 将内存中的数据写入磁盘 + diplomaPic.transferTo(newFile); +// 将新的图片名称写进itemsCustom中 + tc.setDiplomaPic(newFileName); + } + +// 图片的原始名称 + String masterDiplomaPicFilename=masterDiplomaPic.getOriginalFilename(); + if(masterDiplomaPic!=null&&masterDiplomaPicFilename!=null&&masterDiplomaPicFilename.length()>0){ +// 新的图片名称 + String newFileName=UUID.randomUUID()+masterDiplomaPicFilename.substring(masterDiplomaPicFilename.lastIndexOf('.')); +// 新图片 + File newFile=new File(pic_path+newFileName); +// 将内存中的数据写入磁盘 + masterDiplomaPic.transferTo(newFile); +// 将新的图片名称写进itemsCustom中 + tc.setMasterDiplomaPic(newFileName); } + + String resultCode=teacherService.editTeacherDiplomaInfo(tc); + System.out.println("*************"); + System.out.println(resultCode); + System.out.println("*************"); +// ModelAndView modelAndView=new ModelAndView(); +// modelAndView.setViewName("submitDiplomaInfo"); + + TeacherCustom newTc=teacherService.findTeacherById(tc.getTeacherId()); + session.removeAttribute("teacherCustom"); + session.setAttribute("teacherCustom", newTc); + return "redirect:/jsp/teacher/tm-identity.jsp"; +// model.addAttribute("resultCode", resultCode); +// return "submitDiplomaInfo"; + } + + +// 查询教师的认证图片信息 + @RequestMapping(value="/findDiplomaInfo.action") + public ModelAndView findDiplomaInfo(Integer teacherId){ + TeacherDiplomaInfoView tdiv=teacherService.findDiplomaInfo(teacherId); + ModelAndView modelAndView=new ModelAndView(); + modelAndView.addObject("tdiv", tdiv); +// return "redirect:/jsp/submitDiplomaInfo.jsp"; + modelAndView.setViewName("submitDiplomaInfo"); + return modelAndView; } + +// 编辑教师信息 + @RequestMapping(value="/editTeacherInfo.action",method=RequestMethod.POST) + public String editTeacherInfo(TeacherCustom teacherCustom,HttpSession session){ + String editTeacherInfo=teacherService.editTeacherInfo(teacherCustom); + session.setAttribute("editTeacherInfo", editTeacherInfo); + TeacherCustom tc=teacherService.findTeacherById(teacherCustom.getTeacherId()); + session.removeAttribute("teacherCustom"); + session.setAttribute("teacherCustom", tc); + return "redirect:/jsp/teacher/tm-profile.jsp"; + } } + + + + + + + + + + + diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/CourseMapper.xml b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/CourseMapper.xml index bdf1252..8c226d3 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/CourseMapper.xml +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/CourseMapper.xml @@ -18,7 +18,8 @@ diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.java b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.java index 133533a..9167453 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.java @@ -5,11 +5,13 @@ import cn.itcast.ssm.po.CourseCustom; import cn.itcast.ssm.po.DiscountCustom; import cn.itcast.ssm.po.DiscountDetaileCustom; +import cn.itcast.ssm.po.DiscountNum; import cn.itcast.ssm.po.MyDiscountInfo; import cn.itcast.ssm.po.OrdersCarCustom; import cn.itcast.ssm.po.OrdersCarInfo; import cn.itcast.ssm.po.OrdersCarList; import cn.itcast.ssm.po.Student; +import cn.itcast.ssm.po.StudentCourseCustom; import cn.itcast.ssm.po.StudentCustom; public interface StudentMapper { @@ -52,7 +54,12 @@ public interface StudentMapper { // 获取优惠券信息 public List getDiscount(Integer studentId); + +// 根据学生id获取学生所有课程 + public List findStuCourseByStudentId(Integer studentId); +// 领取优惠码 + public void insertDiscountNum(DiscountNum discountNum); } diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.xml b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.xml index ad57ac9..556b695 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.xml +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/StudentMapper.xml @@ -103,6 +103,13 @@ where ordersCarId=#{ordersCarId} + + + insert + into t_discount(discountCode,studentId,courseId) + values(#{discountCode},#{studentId},#{courseId}) + + + + diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.java b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.java index 35cca2a..2c9c16a 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.java @@ -1,13 +1,28 @@ package cn.itcast.ssm.mapper; +import java.util.List; + +import cn.itcast.ssm.po.TeacherCourses; import cn.itcast.ssm.po.TeacherCustom; public interface TeacherMapper { +// 根据教师的id来查询教师的信息 + public TeacherCustom findTeacherById(Integer teacherId); + // 根据教师的用户名查询教师信息 public TeacherCustom findTeacherByName(String studentName); // 根据教师用户名或邮箱查询教师的信息,教师的邮箱也是唯一的 public TeacherCustom findTeacherByNameOrEmail(String userName); +// 编辑教师认证信息 + public void editTeacherDiplomaInfo(TeacherCustom teacherCustom); + +// 查询教师的课程 + public List findTeacherCourses(Integer teacherId); + +// 编辑教师信息 + public void editTeacherInfo(TeacherCustom teacherCustom); + } diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.xml b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.xml index 6e740e5..4ba46c4 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.xml +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/mapper/TeacherMapper.xml @@ -7,9 +7,44 @@ select teacherId,password from t_teacher where teacherName=#{value} - + + + + + + + + update t_teacher + set idPic=#{idPic},diplomaPic=#{diplomaPic},masterDiplomaPic=#{masterDiplomaPic} + where teacherId=#{teacherId} + + + + + + + + update t_teacher + set email=#{email},teacherName=#{teacherName},realName=#{realName},gender=#{gender},teacherAge=#{teacherAge}, + idNumber=#{idNumber},preference=#{preference},education=#{education},seniority=#{seniority},phone=#{phone}, + teacherType=#{teacherType},description=#{description} + where teacherId=#{teacherId} + - \ No newline at end of file + + + + + + + + diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/po/Course.java b/Server/ArtEducation0331/src/cn/itcast/ssm/po/Course.java index 2885651..684c922 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/po/Course.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/po/Course.java @@ -15,7 +15,7 @@ public class Course { private String courseDesc; - private Date teachTime; + private String teachTime; private String totalStarLevel; @@ -35,7 +35,7 @@ public class Course { private Integer realStuNum; - private Integer courseStatus; + private String courseStatus; private String discountUseInfo; @@ -87,11 +87,11 @@ public void setCourseDesc(String courseDesc) { this.courseDesc = courseDesc == null ? null : courseDesc.trim(); } - public Date getTeachTime() { + public String getTeachTime() { return teachTime; } - public void setTeachTime(Date teachTime) { + public void setTeachTime(String teachTime) { this.teachTime = teachTime; } @@ -167,11 +167,11 @@ public void setRealStuNum(Integer realStuNum) { this.realStuNum = realStuNum; } - public Integer getCourseStatus() { + public String getCourseStatus() { return courseStatus; } - public void setCourseStatus(Integer courseStatus) { + public void setCourseStatus(String courseStatus) { this.courseStatus = courseStatus; } diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/po/DiscountNum.java b/Server/ArtEducation0331/src/cn/itcast/ssm/po/DiscountNum.java new file mode 100644 index 0000000..2a53eaf --- /dev/null +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/po/DiscountNum.java @@ -0,0 +1,5 @@ +package cn.itcast.ssm.po; + +public class DiscountNum extends Discount{ + +} diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/po/StudentCourseCustom.java b/Server/ArtEducation0331/src/cn/itcast/ssm/po/StudentCourseCustom.java new file mode 100644 index 0000000..4e7bf49 --- /dev/null +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/po/StudentCourseCustom.java @@ -0,0 +1,26 @@ +package cn.itcast.ssm.po; + +public class StudentCourseCustom extends Course{ + private String teacherName; + private String organizationName; + private Integer studentId; + public String getTeacherName() { + return teacherName; + } + public void setTeacherName(String teacherName) { + this.teacherName = teacherName; + } + public String getOrganizationName() { + return organizationName; + } + public void setOrganizationName(String organizationName) { + this.organizationName = organizationName; + } + public Integer getStudentId() { + return studentId; + } + public void setStudentId(Integer studentId) { + this.studentId = studentId; + } + +} diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/po/Teacher.java b/Server/ArtEducation0331/src/cn/itcast/ssm/po/Teacher.java index ea6b850..e01a40d 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/po/Teacher.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/po/Teacher.java @@ -32,10 +32,53 @@ public class Teacher { private String description; private Integer status; - - private Integer teacherType; - - public Integer getTeacherId() { + + private String idNumber; + + private String teacherType; + + private String idPic; + + private String diplomaPic; + + private String masterDiplomaPic; + + + + public String getIdNumber() { + return idNumber; + } + + public void setIdNumber(String idNumber) { + this.idNumber = idNumber; + } + + + public String getIdPic() { + return idPic; + } + + public void setIdPic(String idPic) { + this.idPic = idPic; + } + + public String getDiplomaPic() { + return diplomaPic; + } + + public void setDiplomaPic(String diplomaPic) { + this.diplomaPic = diplomaPic; + } + + public String getMasterDiplomaPic() { + return masterDiplomaPic; + } + + public void setMasterDiplomaPic(String masterDiplomaPic) { + this.masterDiplomaPic = masterDiplomaPic; + } + + public Integer getTeacherId() { return teacherId; } @@ -163,11 +206,24 @@ public void setStatus(Integer status) { this.status = status; } - public Integer getTeacherType() { + public String getTeacherType() { return teacherType; } - public void setTeacherType(Integer teacherType) { + public void setTeacherType(String teacherType) { this.teacherType = teacherType; } + + @Override + public String toString() { + return "Teacher [teacherId=" + teacherId + ", teacherCode=" + teacherCode + ", teacherName=" + teacherName + + ", password=" + password + ", email=" + email + ", headPortraits=" + headPortraits + ", realName=" + + realName + ", gender=" + gender + ", teacherAge=" + teacherAge + ", preference=" + preference + + ", phone=" + phone + ", seniority=" + seniority + ", organizationId=" + organizationId + + ", education=" + education + ", description=" + description + ", status=" + status + ", idNumber=" + + idNumber + ", teacherType=" + teacherType + ", idPic=" + idPic + ", diplomaPic=" + diplomaPic + + ", masterDiplomaPic=" + masterDiplomaPic + "]"; + } + + } \ No newline at end of file diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/po/TeacherCourses.java b/Server/ArtEducation0331/src/cn/itcast/ssm/po/TeacherCourses.java new file mode 100644 index 0000000..c8024b8 --- /dev/null +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/po/TeacherCourses.java @@ -0,0 +1,5 @@ +package cn.itcast.ssm.po; + +public class TeacherCourses extends Course{ + +} diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/service/StudentService.java b/Server/ArtEducation0331/src/cn/itcast/ssm/service/StudentService.java index bb5e610..c75ccca 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/service/StudentService.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/service/StudentService.java @@ -4,6 +4,7 @@ import cn.itcast.ssm.po.CourseCustom; import cn.itcast.ssm.po.DiscountDetaileCustom; +import cn.itcast.ssm.po.DiscountNum; import cn.itcast.ssm.po.MyDiscountInfo; import cn.itcast.ssm.po.OrdersCarCustom; import cn.itcast.ssm.po.OrdersCarInfo; @@ -12,6 +13,7 @@ import cn.itcast.ssm.view.DiscountCustomView; import cn.itcast.ssm.view.OrdersCarListView; import cn.itcast.ssm.view.StudentCourseEnrollView; +import cn.itcast.ssm.view.StudentCourseView; import cn.itcast.ssm.view.StudentView; @@ -65,4 +67,11 @@ public interface StudentService { // 获取优惠券信息 public List getDiscount(Integer studentId); -} + +// 根据学生id查询学生课程 + public List findStuCouViewBySId(Integer studentId); + +// 插入优惠码 + public void insertDiscountNum(Integer studentId,Integer courseId,Integer ordersCarId); + +} diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/service/TeacherService.java b/Server/ArtEducation0331/src/cn/itcast/ssm/service/TeacherService.java index a3e5a40..7c3e59c 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/service/TeacherService.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/service/TeacherService.java @@ -1,13 +1,32 @@ package cn.itcast.ssm.service; +import java.util.List; + +import cn.itcast.ssm.po.TeacherCourses; import cn.itcast.ssm.po.TeacherCustom; +import cn.itcast.ssm.view.TeacherCoursesView; +import cn.itcast.ssm.view.TeacherDiplomaInfoView; public interface TeacherService { +// 根据教师的id来查询教师的信息 + public TeacherCustom findTeacherById(Integer teacherId); + // 根据教师用户名或邮箱查询教师信息 public TeacherCustom findTeacherByNameOrEmail(String userName); // 教师登录 public String login(String account,String password); +// 编辑教师的认证信息 + public String editTeacherDiplomaInfo(TeacherCustom teacherCustom); + +// 查询身份认证信息 + public TeacherDiplomaInfoView findDiplomaInfo(Integer teacherId); + +// 查询教师的课程 + public List findTeacherCourses(Integer teacherId); + +// 编辑教师信息 + public String editTeacherInfo(TeacherCustom teacherCustom); } diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/CourseServiceImpl.java b/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/CourseServiceImpl.java index 1b854da..c35d362 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/CourseServiceImpl.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/CourseServiceImpl.java @@ -54,27 +54,6 @@ public List findCourseTypeList() throws Exception{ return ctvs; } - -// 查询课程详情 - @Override - public CourseDetailView findCourseDetailByCId(Integer courseId) throws Exception { - // TODO Auto-generated method stub - CourseDetailCustom cdc = courseMapping.findCourseDetailByCId(courseId); -// if(cdc != null){ -// System.out.println(cdc.getCourseName()+" "+cdc.getTeacherCustom().getTeacherName()+" "+cdc.getTeacherCustom().getOrganizationCustom().getOrganizationName()); -// System.out.println(cdc.getComments().size()); -// System.out.println(cdc.getComments().get(0).getStudentCustom().getStudentName()); -// System.out.println(cdc.getComments().get(1).getStudentCustom().getStudentName()); -// }else{ -// System.out.println("-----null"); -// } - if(cdc != null){ - CourseDetailView cdv = TransToCourseDetailView(cdc); - return cdv; - } - return null; - } - private CourseView transToCourseView(CourseCustom cc){ System.out.println(cc.toString()); CourseView cv = new CourseView(); @@ -94,6 +73,19 @@ private CourseTypeView transToCourseTypeView(CourseTypeCustom ctc){ return ctv; } +// 查询课程详情 + @Override + public CourseDetailView findCourseDetailByCId(Integer courseId) throws Exception { + // TODO Auto-generated method stub + CourseDetailCustom cdc = courseMapping.findCourseDetailByCId(courseId); + + if(cdc != null){ + CourseDetailView cdv = TransToCourseDetailView(cdc); + return cdv; + } + return null; + } + private CourseDetailView TransToCourseDetailView(CourseDetailCustom cdc){ List ccvs = new LinkedList(); CourseDetailView cdv = new CourseDetailView(); diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/StudentServiceImpl.java b/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/StudentServiceImpl.java index f004158..2ed0125 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/StudentServiceImpl.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/StudentServiceImpl.java @@ -2,7 +2,9 @@ import java.util.ArrayList; import java.util.Date; +import java.util.LinkedList; import java.util.List; +import java.util.Random; import org.springframework.beans.factory.annotation.Autowired; @@ -10,16 +12,19 @@ import cn.itcast.ssm.po.CourseCustom; import cn.itcast.ssm.po.DiscountCustom; import cn.itcast.ssm.po.DiscountDetaileCustom; +import cn.itcast.ssm.po.DiscountNum; import cn.itcast.ssm.po.MyDiscountInfo; import cn.itcast.ssm.po.OrdersCarCustom; import cn.itcast.ssm.po.OrdersCarInfo; import cn.itcast.ssm.po.OrdersCarList; import cn.itcast.ssm.po.Student; +import cn.itcast.ssm.po.StudentCourseCustom; import cn.itcast.ssm.po.StudentCustom; import cn.itcast.ssm.service.StudentService; import cn.itcast.ssm.view.DiscountCustomView; import cn.itcast.ssm.view.OrdersCarListView; import cn.itcast.ssm.view.StudentCourseEnrollView; +import cn.itcast.ssm.view.StudentCourseView; import cn.itcast.ssm.view.StudentView; @@ -89,12 +94,7 @@ private StudentView transToStudentView(StudentCustom sc){ sv.setEmail(sc.getEmail()); sv.setHeadPortraits(sc.getHeadPortraits()); sv.setStudentAge(sc.getStudentAge()); - sv.setRealName(sc.getRealName()); - if(sc.getGender().equals("男")){ - sv.setGender("男"); - }else if(sc.getGender().equals("女")){ - sv.setGender("女"); - } + sv.setPhone(sc.getPhone()); sv.setPreference(sc.getPreference()); return sv; } @@ -317,6 +317,47 @@ public List getDiscount(Integer studentId) { // TODO Auto-generated method stub return studentMapper.getDiscount(studentId); } + + @Override + public List findStuCouViewBySId(Integer studentId) { + // TODO Auto-generated method stub + List studentCourseCustomList = studentMapper.findStuCourseByStudentId(studentId); + List studentCourseViewList = new LinkedList<>(); + for(StudentCourseCustom scc : studentCourseCustomList){ + studentCourseViewList.add(transToStudentCourseView(scc)); + } + return studentCourseViewList; + } + + private StudentCourseView transToStudentCourseView(StudentCourseCustom scc){ + StudentCourseView scv = new StudentCourseView(); + scv.setStudentId(scc.getStudentId()); + scv.setCourseId(scc.getCourseId()); + scv.setCourseName(scc.getCourseName()); + scv.setTeacherName(scc.getTeacherName()); + scv.setTeachAddress(scc.getTeachAddress()); + scv.setOrganizationName(scc.getOrganizationName()); + return scv; + } + +// 生成优惠码 + @Override + public void insertDiscountNum(Integer studentId,Integer courseId,Integer ordersCarId) { + // TODO Auto-generated method stub + DiscountNum discountNum=new DiscountNum(); + discountNum.setStudentId(studentId); + discountNum.setCourseId(courseId); + Random rand=new Random(); + StringBuilder sb=new StringBuilder(); + for(int i=0;i<6;i++){ + sb.append(rand.nextInt(10)); + } + String discountCode=sb.toString(); + discountNum.setDiscountCode(discountCode); +// 生成优惠码的同时将购物车列表中的课程删除 + studentMapper.insertDiscountNum(discountNum); + studentMapper.deleteOrdersCar(ordersCarId); + } } diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/TeacherServiceImpl.java b/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/TeacherServiceImpl.java index 1f687d2..f9d64f2 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/TeacherServiceImpl.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/service/impl/TeacherServiceImpl.java @@ -1,11 +1,17 @@ package cn.itcast.ssm.service.impl; +import java.util.ArrayList; +import java.util.List; + import org.springframework.beans.factory.annotation.Autowired; import cn.itcast.ssm.mapper.TeacherMapper; import cn.itcast.ssm.po.Teacher; +import cn.itcast.ssm.po.TeacherCourses; import cn.itcast.ssm.po.TeacherCustom; import cn.itcast.ssm.service.TeacherService; +import cn.itcast.ssm.view.TeacherCoursesView; +import cn.itcast.ssm.view.TeacherDiplomaInfoView; public class TeacherServiceImpl implements TeacherService{ @@ -42,7 +48,132 @@ public String login(String account, String password) { } } + +// 编辑教师认证信息 + @Override + public String editTeacherDiplomaInfo(TeacherCustom teacherCustom) { + // TODO Auto-generated method stub + try { + teacherMapper.editTeacherDiplomaInfo(teacherCustom); + return "0"; + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + return "9001"; + } + } + +// 根据教师id 查询教师信息 + @Override + public TeacherCustom findTeacherById(Integer teacherId) { + // TODO Auto-generated method stub + try { + TeacherCustom tc=teacherMapper.findTeacherById(teacherId); + return tc; + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + return null; + } + } - +// 查询教师的认证图片信息 + @Override + public TeacherDiplomaInfoView findDiplomaInfo(Integer teacherId){ + TeacherCustom tc=teacherMapper.findTeacherById(teacherId); + if(tc==null){ + return null; + }else{ + TeacherDiplomaInfoView tdiv=new TeacherDiplomaInfoView(); + tdiv.setIdPic(tc.getIdPic()); + tdiv.setDiplomaPic(tc.getDiplomaPic()); + tdiv.setMasterDiplomaPic(tc.getMasterDiplomaPic()); + return tdiv; + } + } + + @Override + public List findTeacherCourses(Integer teacherId) { + List teacherCourses=teacherMapper.findTeacherCourses(teacherId); + List teacherCoursesViews=new ArrayList<>(); + if(teacherCourses!=null){ + for(TeacherCourses tc:teacherCourses){ + teacherCoursesViews.add(transportToTCView(tc)); + } + return teacherCoursesViews; + } + return null; + } + + public TeacherCoursesView transportToTCView(TeacherCourses tc){ + TeacherCoursesView tcv=new TeacherCoursesView(); + String teachTime=tc.getTeachTime(); + String[] teachTimes=teachTime.split(" "); + tcv.setStartTime(teachTimes[0]); + tcv.setEndTime(teachTimes[1]); +// tcv.setClassTime(teachTimes[2]); + tcv.setCourseId(tc.getCourseId()); + tcv.setCourseName(tc.getCourseName()); + if(tc.getCourseStatus().equals("1001")){ + tcv.setCourseStatus("审核不通过"); + }else if(tc.getCourseStatus().equals("1002")){ + tcv.setCourseStatus("待审核"); + }else if(tc.getCourseStatus().equals("1003")){ + tcv.setCourseStatus("未招满"); + }else if(tc.getCourseStatus().equals("1004")){ + tcv.setCourseStatus("已招满"); + }else if(tc.getCourseStatus().equals("1005")){ + tcv.setCourseStatus("已停课"); + }else if(tc.getCourseStatus().equals("1006")){ + tcv.setCourseStatus("正在上课"); + }else { + tcv.setCourseStatus("历史课程"); + } + tcv.setTeachAddress(tc.getTeachAddress()); + tcv.setTeacherId(tc.getTeacherId()); + return tcv; + } +// 编辑教师基本信息 + @Override + public String editTeacherInfo(TeacherCustom teacherCustom) { + // TODO Auto-generated method stub + TeacherCustom tc=teacherMapper.findTeacherByNameOrEmail(teacherCustom.getTeacherName()); + if(tc!=null&&tc.getTeacherId()!=teacherCustom.getTeacherId()){ +// System.out.println("******************"); +// System.out.println(teacherCustom.getTeacherName()); +// System.out.println("******************"); + return "9002"; + } + tc=teacherMapper.findTeacherByNameOrEmail(teacherCustom.getEmail()); + if(tc!=null&&tc.getTeacherId()!=teacherCustom.getTeacherId()){ + return "9001"; + }else{ + try { + teacherMapper.editTeacherInfo(teacherCustom); + return "0"; + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + return "9009"; + } + } + } + + } + + + + + + + + + + + + + + + diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/view/CourseDetailView.java b/Server/ArtEducation0331/src/cn/itcast/ssm/view/CourseDetailView.java index 48cfefa..901671c 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/view/CourseDetailView.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/view/CourseDetailView.java @@ -8,7 +8,7 @@ public class CourseDetailView { private String teacherName; private String mainImage; private String courseDesc; - private Integer courseStatus; + private String courseStatus; private String education; private Integer seniority; private String description; @@ -47,10 +47,10 @@ public String getCourseDesc() { public void setCourseDesc(String courseDesc) { this.courseDesc = courseDesc; } - public Integer getCourseStatus() { + public String getCourseStatus() { return courseStatus; } - public void setCourseStatus(Integer courseStatus) { + public void setCourseStatus(String courseStatus) { this.courseStatus = courseStatus; } public String getEducation() { diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/view/StudentCourseView.java b/Server/ArtEducation0331/src/cn/itcast/ssm/view/StudentCourseView.java new file mode 100644 index 0000000..7a4db79 --- /dev/null +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/view/StudentCourseView.java @@ -0,0 +1,47 @@ +package cn.itcast.ssm.view; + +public class StudentCourseView { + private Integer studentId; + private Integer courseId; + private String courseName; + private String teacherName; + private String teachAddress; + private String organizationName; + public Integer getStudentId() { + return studentId; + } + public void setStudentId(Integer studentId) { + this.studentId = studentId; + } + public Integer getCourseId() { + return courseId; + } + public void setCourseId(Integer courseId) { + this.courseId = courseId; + } + public String getCourseName() { + return courseName; + } + public void setCourseName(String courseName) { + this.courseName = courseName; + } + public String getTeacherName() { + return teacherName; + } + public void setTeacherName(String teacherName) { + this.teacherName = teacherName; + } + public String getTeachAddress() { + return teachAddress; + } + public void setTeachAddress(String teachAddress) { + this.teachAddress = teachAddress; + } + public String getOrganizationName() { + return organizationName; + } + public void setOrganizationName(String organizationName) { + this.organizationName = organizationName; + } + +} diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/view/StudentView.java b/Server/ArtEducation0331/src/cn/itcast/ssm/view/StudentView.java index e19eab9..7214aa6 100644 --- a/Server/ArtEducation0331/src/cn/itcast/ssm/view/StudentView.java +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/view/StudentView.java @@ -6,9 +6,15 @@ public class StudentView { private String email; private String headPortraits; private Integer studentAge; - private String realName; - private String gender; + private String phone; private String preference; + + public String getPhone() { + return phone; + } + public void setPhone(String phone) { + this.phone = phone; + } public Integer getStudentId() { return studentId; } @@ -40,29 +46,11 @@ public Integer getStudentAge() { public void setStudentAge(Integer studentAge) { this.studentAge = studentAge; } - public String getRealName() { - return realName; - } - public void setRealName(String realName) { - this.realName = realName; - } - public String getGender() { - return gender; - } - public void setGender(String gender) { - this.gender = gender; - } + public String getPreference() { return preference; } public void setPreference(String preference) { this.preference = preference; } - @Override - public String toString() { - return "StudentView [studentId=" + studentId + ", studentName=" + studentName + ", email=" + email - + ", headPortraits=" + headPortraits + ", studentAge=" + studentAge + ", realName=" + realName - + ", gender=" + gender + ", preference=" + preference + "]"; - } - } diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/view/TeacherCoursesView.java b/Server/ArtEducation0331/src/cn/itcast/ssm/view/TeacherCoursesView.java new file mode 100644 index 0000000..153d348 --- /dev/null +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/view/TeacherCoursesView.java @@ -0,0 +1,69 @@ +package cn.itcast.ssm.view; + +public class TeacherCoursesView { + private int teacherId; + private int courseId; + private String teacherName; + private String courseName; + private String startTime; + private String endTime; + private String classTime; + private String teachAddress; + private String courseStatus; + public int getTeacherId() { + return teacherId; + } + public void setTeacherId(int teacherId) { + this.teacherId = teacherId; + } + public int getCourseId() { + return courseId; + } + public void setCourseId(int courseId) { + this.courseId = courseId; + } + public String getTeacherName() { + return teacherName; + } + public void setTeacherName(String teacherName) { + this.teacherName = teacherName; + } + public String getCourseName() { + return courseName; + } + public void setCourseName(String courseName) { + this.courseName = courseName; + } + public String getStartTime() { + return startTime; + } + public void setStartTime(String startTime) { + this.startTime = startTime; + } + public String getEndTime() { + return endTime; + } + public void setEndTime(String endTime) { + this.endTime = endTime; + } + public String getClassTime() { + return classTime; + } + public void setClassTime(String classTime) { + this.classTime = classTime; + } + public String getTeachAddress() { + return teachAddress; + } + public void setTeachAddress(String teachAddress) { + this.teachAddress = teachAddress; + } + public String getCourseStatus() { + return courseStatus; + } + public void setCourseStatus(String courseStatus) { + this.courseStatus = courseStatus; + } + + +} diff --git a/Server/ArtEducation0331/src/cn/itcast/ssm/view/TeacherDiplomaInfoView.java b/Server/ArtEducation0331/src/cn/itcast/ssm/view/TeacherDiplomaInfoView.java new file mode 100644 index 0000000..2f83f4b --- /dev/null +++ b/Server/ArtEducation0331/src/cn/itcast/ssm/view/TeacherDiplomaInfoView.java @@ -0,0 +1,29 @@ +package cn.itcast.ssm.view; + +public class TeacherDiplomaInfoView { + + private String idPic; + private String diplomaPic; + private String masterDiplomaPic; + + public String getIdPic() { + return idPic; + } + public void setIdPic(String idPic) { + this.idPic = idPic; + } + public String getDiplomaPic() { + return diplomaPic; + } + public void setDiplomaPic(String diplomaPic) { + this.diplomaPic = diplomaPic; + } + public String getMasterDiplomaPic() { + return masterDiplomaPic; + } + public void setMasterDiplomaPic(String masterDiplomaPic) { + this.masterDiplomaPic = masterDiplomaPic; + } + + +}