├── .gitattributes
├── src
└── main
│ ├── webapp
│ ├── img
│ │ ├── a.jpg
│ │ ├── a.png
│ │ ├── wo.png
│ │ ├── gan.png
│ │ ├── lbbg.png
│ │ ├── leili.jpg
│ │ ├── lufei.jpg
│ │ ├── lysf.ico
│ │ ├── maoli.jpg
│ │ ├── suolong.jpg
│ │ ├── user01.png
│ │ ├── user02.png
│ │ ├── user03.png
│ │ ├── zlaiye.jpg
│ │ ├── luojiejpg.jpg
│ │ └── syncfusion-icons-white.png
│ ├── WEB-INF
│ │ ├── file
│ │ │ ├── 中期检查表.docx
│ │ │ ├── 开题报告.doc
│ │ │ └── 免答辩申请表.docx
│ │ ├── springDispatcherServlet-servlet.xml
│ │ └── web.xml
│ ├── amazeui
│ │ ├── fonts
│ │ │ ├── FontAwesome.otf
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ ├── fontawesome-webfont.woff
│ │ │ └── fontawesome-webfont.woff2
│ │ └── js
│ │ │ └── app.js
│ ├── css
│ │ ├── login.css
│ │ └── pagination.css
│ ├── code.jsp
│ ├── student
│ │ ├── smdbinfo.html
│ │ ├── sdbinfo.html
│ │ ├── score.html
│ │ ├── js
│ │ │ └── app.js
│ │ ├── sdownload.html
│ │ ├── scontent.html
│ │ └── sktbg.html
│ ├── js
│ │ ├── util.js
│ │ ├── autosize.min.js
│ │ └── login.js
│ ├── teacher
│ │ ├── js
│ │ │ └── app.js
│ │ ├── tinfo.html
│ │ ├── tstudentlist2.html
│ │ ├── tstudentlist.html
│ │ ├── tstudentlunwen.html
│ │ ├── tstudentinfo.html
│ │ ├── tmdbstudentlist.html
│ │ ├── tcontent.html
│ │ ├── tsuremdb.html
│ │ ├── tsure.html
│ │ └── tzqjc.html
│ └── login.html
│ ├── resources
│ ├── jdbc.properties
│ ├── ehcache.xml
│ ├── log4j.properties
│ ├── mybatis
│ │ └── mybatis-config.xml
│ └── spring
│ │ └── applicationContext.xml
│ └── java
│ └── cn
│ └── lynu
│ ├── model
│ ├── Dept.java
│ ├── Roles.java
│ ├── Admin.java
│ ├── Grade.java
│ ├── Subject.java
│ ├── ProjectFrom.java
│ ├── DaBian.java
│ ├── MangSheng.java
│ ├── YansouTeam.java
│ ├── WorkTime.java
│ ├── YansouTeacher.java
│ ├── Ktbg.java
│ ├── Down.java
│ ├── ClassInfo.java
│ ├── Mdb.java
│ ├── Zqjc.java
│ ├── Lunwen.java
│ ├── Message.java
│ ├── Inform.java
│ ├── User.java
│ ├── Project.java
│ ├── Teacher.java
│ └── Student.java
│ ├── service
│ ├── DownService.java
│ ├── WorkTimeService.java
│ ├── InformService.java
│ ├── ZqjcService.java
│ ├── DabianService.java
│ ├── MdbService.java
│ ├── LunwenService.java
│ ├── UserService.java
│ ├── KtbgService.java
│ ├── ProjectService.java
│ ├── StudentService.java
│ └── TeacherService.java
│ ├── mapper
│ ├── DeptMapper.java
│ ├── DownMapper.java
│ ├── AdminMapper.java
│ ├── GradeMapper.java
│ ├── RolesMapper.java
│ ├── MessageMapper.java
│ ├── SubjectMapper.java
│ ├── ZqjcMapper.java
│ ├── MdbMapper.java
│ ├── MangShengMapper.java
│ ├── DaBianMapper.java
│ ├── InformMapper.java
│ ├── LunwenMapper.java
│ ├── KtbgMapper.java
│ ├── ProjectFromMapper.java
│ ├── WorkTimeMapper.java
│ ├── ClassInfoMapper.java
│ ├── YansouTeamMapper.java
│ ├── UserMapper.java
│ ├── YansouTeacherMapper.java
│ ├── TeacherMapper.java
│ ├── ProjectMapper.java
│ └── StudentMapper.java
│ ├── controller
│ ├── WorkTimeController.java
│ ├── InformController.java
│ ├── DabianController.java
│ ├── KtbgController.java
│ ├── ZqjcController.java
│ ├── DownController.java
│ ├── MdbController.java
│ ├── ProjectController.java
│ ├── UserController.java
│ └── LunwenController.java
│ └── util
│ ├── Utils.java
│ └── WordUtils.java
└── README.md
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=java
2 | *.css linguist-language=java
3 | *.html linguist-language=java
--------------------------------------------------------------------------------
/src/main/webapp/img/a.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/a.jpg
--------------------------------------------------------------------------------
/src/main/webapp/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/a.png
--------------------------------------------------------------------------------
/src/main/webapp/img/wo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/wo.png
--------------------------------------------------------------------------------
/src/main/webapp/img/gan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/gan.png
--------------------------------------------------------------------------------
/src/main/webapp/img/lbbg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/lbbg.png
--------------------------------------------------------------------------------
/src/main/webapp/img/leili.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/leili.jpg
--------------------------------------------------------------------------------
/src/main/webapp/img/lufei.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/lufei.jpg
--------------------------------------------------------------------------------
/src/main/webapp/img/lysf.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/lysf.ico
--------------------------------------------------------------------------------
/src/main/webapp/img/maoli.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/maoli.jpg
--------------------------------------------------------------------------------
/src/main/webapp/img/suolong.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/suolong.jpg
--------------------------------------------------------------------------------
/src/main/webapp/img/user01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/user01.png
--------------------------------------------------------------------------------
/src/main/webapp/img/user02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/user02.png
--------------------------------------------------------------------------------
/src/main/webapp/img/user03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/user03.png
--------------------------------------------------------------------------------
/src/main/webapp/img/zlaiye.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/zlaiye.jpg
--------------------------------------------------------------------------------
/src/main/webapp/img/luojiejpg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/luojiejpg.jpg
--------------------------------------------------------------------------------
/src/main/resources/jdbc.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClass=com.mysql.jdbc.Driver
2 | jdbc.jdbcUrl=jdbc:mysql:///graduation_65_graduation
3 | jdbc.user=root
4 | jdbc.password=123456
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/file/中期检查表.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/WEB-INF/file/中期检查表.docx
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/file/开题报告.doc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/WEB-INF/file/开题报告.doc
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/file/免答辩申请表.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/WEB-INF/file/免答辩申请表.docx
--------------------------------------------------------------------------------
/src/main/webapp/amazeui/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/amazeui/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/src/main/webapp/img/syncfusion-icons-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/img/syncfusion-icons-white.png
--------------------------------------------------------------------------------
/src/main/webapp/amazeui/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/amazeui/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/src/main/webapp/amazeui/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/amazeui/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/src/main/webapp/amazeui/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/amazeui/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/src/main/webapp/amazeui/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SimpleGraduationProjects/GraduationProjectThesisManagementSystem/HEAD/src/main/webapp/amazeui/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/src/main/resources/ehcache.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/src/main/webapp/amazeui/js/app.js:
--------------------------------------------------------------------------------
1 | (function($) {
2 | 'use strict';
3 |
4 | $(function() {
5 | var $fullText = $('.admin-fullText');
6 | $('#admin-fullscreen').on('click', function() {
7 | $.AMUI.fullscreen.toggle();
8 | });
9 |
10 | $(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() {
11 | $fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏');
12 | });
13 | });
14 | })(jQuery);
15 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Dept.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Dept implements Serializable{
6 | private static final long serialVersionUID = -1515425566615914459L;
7 |
8 | private Integer deptId;
9 |
10 | private String deptName;
11 |
12 | public Integer getDeptId() {
13 | return deptId;
14 | }
15 |
16 | public void setDeptId(Integer deptId) {
17 | this.deptId = deptId;
18 | }
19 |
20 | public String getDeptName() {
21 | return deptName;
22 | }
23 |
24 | public void setDeptName(String deptName) {
25 | this.deptName = deptName == null ? null : deptName.trim();
26 | }
27 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Roles.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Roles implements Serializable{
6 | private static final long serialVersionUID = 5994994988422788236L;
7 |
8 | private Integer rolesId;
9 |
10 | private String rolesName;
11 |
12 | public Integer getRolesId() {
13 | return rolesId;
14 | }
15 |
16 | public void setRolesId(Integer rolesId) {
17 | this.rolesId = rolesId;
18 | }
19 |
20 | public String getRolesName() {
21 | return rolesName;
22 | }
23 |
24 | public void setRolesName(String rolesName) {
25 | this.rolesName = rolesName == null ? null : rolesName.trim();
26 | }
27 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Admin.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Admin implements Serializable{
6 | private static final long serialVersionUID = 81402464279278347L;
7 |
8 | private String adminId;
9 |
10 | private String userId;
11 |
12 | public String getAdminId() {
13 | return adminId;
14 | }
15 |
16 | public void setAdminId(String adminId) {
17 | this.adminId = adminId == null ? null : adminId.trim();
18 | }
19 |
20 | public String getUserId() {
21 | return userId;
22 | }
23 |
24 | public void setUserId(String userId) {
25 | this.userId = userId == null ? null : userId.trim();
26 | }
27 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Grade.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Grade implements Serializable{
6 | private static final long serialVersionUID = -7986245317958849894L;
7 |
8 | private Integer gradeId;
9 |
10 | private String gradeName;
11 |
12 | public Integer getGradeId() {
13 | return gradeId;
14 | }
15 |
16 | public void setGradeId(Integer gradeId) {
17 | this.gradeId = gradeId;
18 | }
19 |
20 | public String getGradeName() {
21 | return gradeName;
22 | }
23 |
24 | public void setGradeName(String gradeName) {
25 | this.gradeName = gradeName == null ? null : gradeName.trim();
26 | }
27 | }
--------------------------------------------------------------------------------
/src/main/webapp/css/login.css:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";
2 | .am-container {
3 | width: 1366px !important;
4 | max-width: none;
5 | }
6 | #login_imgDiv{
7 | margin-top: 30px;
8 | background: url('../img/a.png') no-repeat;
9 | background-size:100% 100%;
10 | margin-left: 15px;
11 | width: 1307px;
12 | border-radius: 8px;
13 | }
14 | #login_div{
15 | padding-top: 26px;
16 | width: 350px;
17 | float: right;
18 | }
19 | #inform_ul li span:nth-child(1){
20 | display: inline-block;
21 | float: left;
22 | }
23 | #inform_ul li span:nth-child(2){
24 | float: right;
25 | }
26 | #down_ul li span:nth-child(1){
27 | display: inline-block;
28 | float: left;
29 | }
30 | #down_ul li span:nth-child(2){
31 | float: right;
32 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Subject.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Subject implements Serializable{
6 | private static final long serialVersionUID = -3649425445693175127L;
7 |
8 | private Integer subjectId;
9 |
10 | private String subjectName;
11 |
12 | public Integer getSubjectId() {
13 | return subjectId;
14 | }
15 |
16 | public void setSubjectId(Integer subjectId) {
17 | this.subjectId = subjectId;
18 | }
19 |
20 | public String getSubjectName() {
21 | return subjectName;
22 | }
23 |
24 | public void setSubjectName(String subjectName) {
25 | this.subjectName = subjectName == null ? null : subjectName.trim();
26 | }
27 | }
--------------------------------------------------------------------------------
/src/main/webapp/css/pagination.css:
--------------------------------------------------------------------------------
1 | .pagination {
2 | font-size: 90%;
3 | }
4 |
5 | .pagination a {
6 | text-decoration: none;
7 | border: solid 1px #AAE;
8 | color: #15B;
9 | background-color: #fff;
10 | }
11 |
12 | .pagination a, .pagination span {
13 | display: block;
14 | float: left;
15 | padding: 0.3em 0.5em;
16 | margin-right: 5px;
17 | margin-bottom: 5px;
18 | min-width:1em;
19 | text-align:center;
20 | }
21 |
22 | .pagination .current {
23 | background: #26B;
24 | color: #fff;
25 | border: solid 1px #AAE;
26 | }
27 |
28 | .pagination .current.prev, .pagination .current.next{
29 | color:#999;
30 | border-color:#999;
31 | background:#fff;
32 | cursor: not-allowed;
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/ProjectFrom.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class ProjectFrom implements Serializable{
6 | private static final long serialVersionUID = 9078243478511649037L;
7 |
8 | private Integer projectFromId;
9 |
10 | private String projectFromName;
11 |
12 | public Integer getProjectFromId() {
13 | return projectFromId;
14 | }
15 |
16 | public void setProjectFromId(Integer projectFromId) {
17 | this.projectFromId = projectFromId;
18 | }
19 |
20 | public String getProjectFromName() {
21 | return projectFromName;
22 | }
23 |
24 | public void setProjectFromName(String projectFromName) {
25 | this.projectFromName = projectFromName == null ? null : projectFromName.trim();
26 | }
27 | }
--------------------------------------------------------------------------------
/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | ### direct log messages to stdout(配置输出源辅助类输出到控制台) layout以自定义格式输出 ###
2 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
3 | log4j.appender.stdout.Target=System.err
4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
5 | log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:&L - %m%n
6 |
7 | ### direct messages to file mylog.log(配置输出源辅助类输出到本地C:/mylog.log) layout以自定义格式输出###
8 | log4j.appender.file=org.apache.log4j.FileAppender
9 | log4j.appender.file.File=c:/mylog.log
10 | log4j.appender.file.layout=org.apache.log4j.PatternLayout
11 | log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:&L - %m%n
12 |
13 | ### set log levels -for more verbose logging change 'INFO' or 'DEBUG' or 'WARN' or 'ERROR' or 'FATAL'(致命错误) 级别渐增 ###
14 | log4j.rootLogger=DEBUG,stdout
--------------------------------------------------------------------------------
/src/main/resources/mybatis/mybatis-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/DownService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import java.util.List;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.context.annotation.Scope;
6 | import org.springframework.context.annotation.ScopedProxyMode;
7 | import org.springframework.stereotype.Service;
8 | import org.springframework.transaction.annotation.Propagation;
9 | import org.springframework.transaction.annotation.Transactional;
10 | import cn.lynu.mapper.DownMapper;
11 | import cn.lynu.model.Down;
12 |
13 | @Service
14 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
15 | public class DownService {
16 |
17 | @Autowired
18 | private DownMapper downMapper;
19 |
20 | @Transactional(propagation=Propagation.SUPPORTS)
21 | public List getAllDown(){
22 | return downMapper.selectByExample(null);
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/WorkTimeService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.WorkTimeMapper;
10 | import cn.lynu.model.WorkTime;
11 |
12 | @Service
13 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
14 | public class WorkTimeService {
15 |
16 | @Autowired
17 | private WorkTimeMapper workTimeMapper;
18 |
19 | @Transactional(propagation=Propagation.SUPPORTS)
20 | public WorkTime getWorkTime(String thisDate) {
21 | return workTimeMapper.getWorkTime(thisDate);
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/DaBian.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class DaBian implements Serializable{
6 | private static final long serialVersionUID = -9000649275655068218L;
7 |
8 | private Integer id;
9 |
10 | private String studentId;
11 |
12 | private Integer dabianScore;
13 |
14 | public Integer getId() {
15 | return id;
16 | }
17 |
18 | public void setId(Integer id) {
19 | this.id = id;
20 | }
21 |
22 | public String getStudentId() {
23 | return studentId;
24 | }
25 |
26 | public void setStudentId(String studentId) {
27 | this.studentId = studentId == null ? null : studentId.trim();
28 | }
29 |
30 | public Integer getDabianScore() {
31 | return dabianScore;
32 | }
33 |
34 | public void setDabianScore(Integer dabianScore) {
35 | this.dabianScore = dabianScore;
36 | }
37 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/DeptMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Dept;
4 | import cn.lynu.model.DeptExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface DeptMapper {
9 | long countByExample(DeptExample example);
10 |
11 | int deleteByExample(DeptExample example);
12 |
13 | int deleteByPrimaryKey(Integer deptId);
14 |
15 | int insert(Dept record);
16 |
17 | int insertSelective(Dept record);
18 |
19 | List selectByExample(DeptExample example);
20 |
21 | Dept selectByPrimaryKey(Integer deptId);
22 |
23 | int updateByExampleSelective(@Param("record") Dept record, @Param("example") DeptExample example);
24 |
25 | int updateByExample(@Param("record") Dept record, @Param("example") DeptExample example);
26 |
27 | int updateByPrimaryKeySelective(Dept record);
28 |
29 | int updateByPrimaryKey(Dept record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/DownMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Down;
4 | import cn.lynu.model.DownExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface DownMapper {
9 | long countByExample(DownExample example);
10 |
11 | int deleteByExample(DownExample example);
12 |
13 | int deleteByPrimaryKey(Integer downId);
14 |
15 | int insert(Down record);
16 |
17 | int insertSelective(Down record);
18 |
19 | List selectByExample(DownExample example);
20 |
21 | Down selectByPrimaryKey(Integer downId);
22 |
23 | int updateByExampleSelective(@Param("record") Down record, @Param("example") DownExample example);
24 |
25 | int updateByExample(@Param("record") Down record, @Param("example") DownExample example);
26 |
27 | int updateByPrimaryKeySelective(Down record);
28 |
29 | int updateByPrimaryKey(Down record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/AdminMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Admin;
4 | import cn.lynu.model.AdminExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface AdminMapper {
9 | long countByExample(AdminExample example);
10 |
11 | int deleteByExample(AdminExample example);
12 |
13 | int deleteByPrimaryKey(String adminId);
14 |
15 | int insert(Admin record);
16 |
17 | int insertSelective(Admin record);
18 |
19 | List selectByExample(AdminExample example);
20 |
21 | Admin selectByPrimaryKey(String adminId);
22 |
23 | int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);
24 |
25 | int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);
26 |
27 | int updateByPrimaryKeySelective(Admin record);
28 |
29 | int updateByPrimaryKey(Admin record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/GradeMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Grade;
4 | import cn.lynu.model.GradeExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface GradeMapper {
9 | long countByExample(GradeExample example);
10 |
11 | int deleteByExample(GradeExample example);
12 |
13 | int deleteByPrimaryKey(Integer gradeId);
14 |
15 | int insert(Grade record);
16 |
17 | int insertSelective(Grade record);
18 |
19 | List selectByExample(GradeExample example);
20 |
21 | Grade selectByPrimaryKey(Integer gradeId);
22 |
23 | int updateByExampleSelective(@Param("record") Grade record, @Param("example") GradeExample example);
24 |
25 | int updateByExample(@Param("record") Grade record, @Param("example") GradeExample example);
26 |
27 | int updateByPrimaryKeySelective(Grade record);
28 |
29 | int updateByPrimaryKey(Grade record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/RolesMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Roles;
4 | import cn.lynu.model.RolesExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface RolesMapper {
9 | long countByExample(RolesExample example);
10 |
11 | int deleteByExample(RolesExample example);
12 |
13 | int deleteByPrimaryKey(Integer rolesId);
14 |
15 | int insert(Roles record);
16 |
17 | int insertSelective(Roles record);
18 |
19 | List selectByExample(RolesExample example);
20 |
21 | Roles selectByPrimaryKey(Integer rolesId);
22 |
23 | int updateByExampleSelective(@Param("record") Roles record, @Param("example") RolesExample example);
24 |
25 | int updateByExample(@Param("record") Roles record, @Param("example") RolesExample example);
26 |
27 | int updateByPrimaryKeySelective(Roles record);
28 |
29 | int updateByPrimaryKey(Roles record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/WorkTimeController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 |
4 | import javax.servlet.http.HttpServletResponse;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Controller;
8 | import org.springframework.web.bind.annotation.RequestMapping;
9 | import org.springframework.web.bind.annotation.ResponseBody;
10 |
11 | import cn.lynu.model.WorkTime;
12 | import cn.lynu.service.WorkTimeService;
13 |
14 | @Controller
15 | @RequestMapping("/workTimeController")
16 | public class WorkTimeController {
17 |
18 | @Autowired
19 | private WorkTimeService workTimeService;
20 |
21 | @ResponseBody
22 | @RequestMapping("/getWorkTime")
23 | public WorkTime getWorkTime(String date,HttpServletResponse response) {
24 | response.setContentType("application/json;charset=utf-8");
25 | WorkTime workTime = workTimeService.getWorkTime(date);
26 | return workTime;
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/MessageMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Message;
4 | import cn.lynu.model.MessageExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface MessageMapper {
9 | long countByExample(MessageExample example);
10 |
11 | int deleteByExample(MessageExample example);
12 |
13 | int deleteByPrimaryKey(Integer messageId);
14 |
15 | int insert(Message record);
16 |
17 | int insertSelective(Message record);
18 |
19 | List selectByExample(MessageExample example);
20 |
21 | Message selectByPrimaryKey(Integer messageId);
22 |
23 | int updateByExampleSelective(@Param("record") Message record, @Param("example") MessageExample example);
24 |
25 | int updateByExample(@Param("record") Message record, @Param("example") MessageExample example);
26 |
27 | int updateByPrimaryKeySelective(Message record);
28 |
29 | int updateByPrimaryKey(Message record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/SubjectMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Subject;
4 | import cn.lynu.model.SubjectExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface SubjectMapper {
9 | long countByExample(SubjectExample example);
10 |
11 | int deleteByExample(SubjectExample example);
12 |
13 | int deleteByPrimaryKey(Integer subjectId);
14 |
15 | int insert(Subject record);
16 |
17 | int insertSelective(Subject record);
18 |
19 | List selectByExample(SubjectExample example);
20 |
21 | Subject selectByPrimaryKey(Integer subjectId);
22 |
23 | int updateByExampleSelective(@Param("record") Subject record, @Param("example") SubjectExample example);
24 |
25 | int updateByExample(@Param("record") Subject record, @Param("example") SubjectExample example);
26 |
27 | int updateByPrimaryKeySelective(Subject record);
28 |
29 | int updateByPrimaryKey(Subject record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/ZqjcMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Zqjc;
4 | import cn.lynu.model.ZqjcExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface ZqjcMapper {
9 | long countByExample(ZqjcExample example);
10 |
11 | int deleteByExample(ZqjcExample example);
12 |
13 | int deleteByPrimaryKey(Integer zqjcId);
14 |
15 | int insert(Zqjc record);
16 |
17 | int insertSelective(Zqjc record);
18 |
19 | List selectByExample(ZqjcExample example);
20 |
21 | Zqjc selectByPrimaryKey(Integer zqjcId);
22 |
23 | int updateByExampleSelective(@Param("record") Zqjc record, @Param("example") ZqjcExample example);
24 |
25 | int updateByExample(@Param("record") Zqjc record, @Param("example") ZqjcExample example);
26 |
27 | int updateByPrimaryKeySelective(Zqjc record);
28 |
29 | int updateByPrimaryKey(Zqjc record);
30 |
31 | Zqjc getzqjcByStudentId(String studentId);
32 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/MdbMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Mdb;
4 | import cn.lynu.model.MdbExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface MdbMapper {
9 | long countByExample(MdbExample example);
10 |
11 | int deleteByExample(MdbExample example);
12 |
13 | int deleteByPrimaryKey(Integer mdbId);
14 |
15 | int insert(Mdb record);
16 |
17 | int insertSelective(Mdb record);
18 |
19 | List selectByExample(MdbExample example);
20 |
21 | Mdb selectByPrimaryKey(Integer mdbId);
22 |
23 | int updateByExampleSelective(@Param("record") Mdb record, @Param("example") MdbExample example);
24 |
25 | int updateByExample(@Param("record") Mdb record, @Param("example") MdbExample example);
26 |
27 | int updateByPrimaryKeySelective(Mdb record);
28 |
29 | int updateByPrimaryKey(Mdb record);
30 |
31 | Mdb getMdbByStudentId(String studentId);
32 |
33 | int updateColumn(Mdb mdb);
34 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/MangShengMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.MangSheng;
4 | import cn.lynu.model.MangShengExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface MangShengMapper {
9 | long countByExample(MangShengExample example);
10 |
11 | int deleteByExample(MangShengExample example);
12 |
13 | int deleteByPrimaryKey(Integer id);
14 |
15 | int insert(MangSheng record);
16 |
17 | int insertSelective(MangSheng record);
18 |
19 | List selectByExample(MangShengExample example);
20 |
21 | MangSheng selectByPrimaryKey(Integer id);
22 |
23 | int updateByExampleSelective(@Param("record") MangSheng record, @Param("example") MangShengExample example);
24 |
25 | int updateByExample(@Param("record") MangSheng record, @Param("example") MangShengExample example);
26 |
27 | int updateByPrimaryKeySelective(MangSheng record);
28 |
29 | int updateByPrimaryKey(MangSheng record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/MangSheng.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class MangSheng implements Serializable{
6 | private static final long serialVersionUID = 3851149247942903537L;
7 |
8 | private Integer id;
9 |
10 | private String studentId;
11 |
12 | private String mangshengEvaluate;
13 |
14 | public Integer getId() {
15 | return id;
16 | }
17 |
18 | public void setId(Integer id) {
19 | this.id = id;
20 | }
21 |
22 | public String getStudentId() {
23 | return studentId;
24 | }
25 |
26 | public void setStudentId(String studentId) {
27 | this.studentId = studentId == null ? null : studentId.trim();
28 | }
29 |
30 | public String getMangshengEvaluate() {
31 | return mangshengEvaluate;
32 | }
33 |
34 | public void setMangshengEvaluate(String mangshengEvaluate) {
35 | this.mangshengEvaluate = mangshengEvaluate == null ? null : mangshengEvaluate.trim();
36 | }
37 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/DaBianMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.DaBian;
4 | import cn.lynu.model.DaBianExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface DaBianMapper {
9 | long countByExample(DaBianExample example);
10 |
11 | int deleteByExample(DaBianExample example);
12 |
13 | int deleteByPrimaryKey(Integer id);
14 |
15 | int insert(DaBian record);
16 |
17 | int insertSelective(DaBian record);
18 |
19 | List selectByExample(DaBianExample example);
20 |
21 | DaBian selectByPrimaryKey(Integer id);
22 |
23 | int updateByExampleSelective(@Param("record") DaBian record, @Param("example") DaBianExample example);
24 |
25 | int updateByExample(@Param("record") DaBian record, @Param("example") DaBianExample example);
26 |
27 | int updateByPrimaryKeySelective(DaBian record);
28 |
29 | int updateByPrimaryKey(DaBian record);
30 |
31 | DaBian getThisStudentScore(String studentId);
32 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/InformMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Inform;
4 | import cn.lynu.model.InformExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface InformMapper {
9 | long countByExample(InformExample example);
10 |
11 | int deleteByExample(InformExample example);
12 |
13 | int deleteByPrimaryKey(Integer informId);
14 |
15 | int insert(Inform record);
16 |
17 | int insertSelective(Inform record);
18 |
19 | List selectByExample(InformExample example);
20 |
21 | List selectTitleAndId();
22 |
23 | Inform selectByPrimaryKey(Integer informId);
24 |
25 | int updateByExampleSelective(@Param("record") Inform record, @Param("example") InformExample example);
26 |
27 | int updateByExample(@Param("record") Inform record, @Param("example") InformExample example);
28 |
29 | int updateByPrimaryKeySelective(Inform record);
30 |
31 | int updateByPrimaryKey(Inform record);
32 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/LunwenMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Lunwen;
4 | import cn.lynu.model.LunwenExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface LunwenMapper {
9 | long countByExample(LunwenExample example);
10 |
11 | int deleteByExample(LunwenExample example);
12 |
13 | int deleteByPrimaryKey(Integer lunwenId);
14 |
15 | int insert(Lunwen record);
16 |
17 | int insertSelective(Lunwen record);
18 |
19 | List selectByExample(LunwenExample example);
20 |
21 | Lunwen selectByPrimaryKey(Integer lunwenId);
22 |
23 | int updateByExampleSelective(@Param("record") Lunwen record, @Param("example") LunwenExample example);
24 |
25 | int updateByExample(@Param("record") Lunwen record, @Param("example") LunwenExample example);
26 |
27 | int updateByPrimaryKeySelective(Lunwen record);
28 |
29 | int updateByPrimaryKey(Lunwen record);
30 |
31 | Lunwen getLunwenBySid(String studentId);
32 |
33 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/KtbgMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Ktbg;
4 | import cn.lynu.model.KtbgExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface KtbgMapper {
9 | long countByExample(KtbgExample example);
10 |
11 | int deleteByExample(KtbgExample example);
12 |
13 | int deleteByPrimaryKey(Integer ktbgId);
14 |
15 | int insert(Ktbg record);
16 |
17 | int insertSelective(Ktbg record);
18 |
19 | List selectByExample(KtbgExample example);
20 |
21 | Ktbg selectByPrimaryKey(Integer ktbgId);
22 |
23 | int updateByExampleSelective(@Param("record") Ktbg record, @Param("example") KtbgExample example);
24 |
25 | int updateByExample(@Param("record") Ktbg record, @Param("example") KtbgExample example);
26 |
27 | int updateByPrimaryKeySelective(Ktbg record);
28 |
29 | int updateByPrimaryKey(Ktbg record);
30 |
31 | Ktbg getKtbgByStudentId(String studentId);
32 |
33 | int updateColumn(Ktbg ktbg);
34 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/ProjectFromMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.ProjectFrom;
4 | import cn.lynu.model.ProjectFromExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface ProjectFromMapper {
9 | long countByExample(ProjectFromExample example);
10 |
11 | int deleteByExample(ProjectFromExample example);
12 |
13 | int deleteByPrimaryKey(Integer projectFromId);
14 |
15 | int insert(ProjectFrom record);
16 |
17 | int insertSelective(ProjectFrom record);
18 |
19 | List selectByExample(ProjectFromExample example);
20 |
21 | ProjectFrom selectByPrimaryKey(Integer projectFromId);
22 |
23 | int updateByExampleSelective(@Param("record") ProjectFrom record, @Param("example") ProjectFromExample example);
24 |
25 | int updateByExample(@Param("record") ProjectFrom record, @Param("example") ProjectFromExample example);
26 |
27 | int updateByPrimaryKeySelective(ProjectFrom record);
28 |
29 | int updateByPrimaryKey(ProjectFrom record);
30 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/WorkTimeMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.WorkTime;
4 | import cn.lynu.model.WorkTimeExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface WorkTimeMapper {
9 | long countByExample(WorkTimeExample example);
10 |
11 | int deleteByExample(WorkTimeExample example);
12 |
13 | int deleteByPrimaryKey(Integer workTimeId);
14 |
15 | int insert(WorkTime record);
16 |
17 | int insertSelective(WorkTime record);
18 |
19 | List selectByExample(WorkTimeExample example);
20 |
21 | WorkTime selectByPrimaryKey(Integer workTimeId);
22 |
23 | int updateByExampleSelective(@Param("record") WorkTime record, @Param("example") WorkTimeExample example);
24 |
25 | int updateByExample(@Param("record") WorkTime record, @Param("example") WorkTimeExample example);
26 |
27 | int updateByPrimaryKeySelective(WorkTime record);
28 |
29 | int updateByPrimaryKey(WorkTime record);
30 |
31 | WorkTime getWorkTime(String thisDate);
32 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/InformService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import java.util.List;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.context.annotation.Scope;
6 | import org.springframework.context.annotation.ScopedProxyMode;
7 | import org.springframework.stereotype.Service;
8 | import org.springframework.transaction.annotation.Propagation;
9 | import org.springframework.transaction.annotation.Transactional;
10 | import cn.lynu.mapper.InformMapper;
11 | import cn.lynu.model.Inform;
12 |
13 | @Service
14 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
15 | public class InformService {
16 |
17 | @Autowired
18 | private InformMapper informMapper;
19 |
20 | @Transactional(propagation=Propagation.SUPPORTS)
21 | public List getAllInfrom(){
22 | return informMapper.selectTitleAndId();
23 | }
24 |
25 | @Transactional(propagation=Propagation.SUPPORTS)
26 | public Inform getSubInformById(int informId) {
27 | return informMapper.selectByPrimaryKey(informId);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/ClassInfoMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.ClassInfo;
4 | import cn.lynu.model.ClassInfoExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface ClassInfoMapper {
9 | long countByExample(ClassInfoExample example);
10 |
11 | int deleteByExample(ClassInfoExample example);
12 |
13 | int deleteByPrimaryKey(Integer classId);
14 |
15 | int insert(ClassInfo record);
16 |
17 | int insertSelective(ClassInfo record);
18 |
19 | List selectByExample(ClassInfoExample example);
20 |
21 | ClassInfo selectByPrimaryKey(Integer classId);
22 |
23 | ClassInfo selectProjectAndGradeAndSubjectByCid(Integer classId);
24 |
25 | int updateByExampleSelective(@Param("record") ClassInfo record, @Param("example") ClassInfoExample example);
26 |
27 | int updateByExample(@Param("record") ClassInfo record, @Param("example") ClassInfoExample example);
28 |
29 | int updateByPrimaryKeySelective(ClassInfo record);
30 |
31 | int updateByPrimaryKey(ClassInfo record);
32 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/YansouTeamMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.YansouTeam;
4 | import cn.lynu.model.YansouTeamExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface YansouTeamMapper {
9 | long countByExample(YansouTeamExample example);
10 |
11 | int deleteByExample(YansouTeamExample example);
12 |
13 | int deleteByPrimaryKey(Integer yansouTeamId);
14 |
15 | int insert(YansouTeam record);
16 |
17 | int insertSelective(YansouTeam record);
18 |
19 | List selectByExample(YansouTeamExample example);
20 |
21 | YansouTeam selectByPrimaryKey(Integer yansouTeamId);
22 |
23 | YansouTeam selectYanSouInfoByid(Integer yansouTeamId);
24 |
25 | int updateByExampleSelective(@Param("record") YansouTeam record, @Param("example") YansouTeamExample example);
26 |
27 | int updateByExample(@Param("record") YansouTeam record, @Param("example") YansouTeamExample example);
28 |
29 | int updateByPrimaryKeySelective(YansouTeam record);
30 |
31 | int updateByPrimaryKey(YansouTeam record);
32 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/UserMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.User;
4 | import cn.lynu.model.UserExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface UserMapper {
9 | long countByExample(UserExample example);
10 |
11 | int deleteByExample(UserExample example);
12 |
13 | int deleteByPrimaryKey(String userId);
14 |
15 | int insert(User record);
16 |
17 | int insertSelective(User record);
18 |
19 | List selectByExample(UserExample example);
20 |
21 | User selectByPrimaryKey(String userId);
22 |
23 | int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
24 |
25 | int updateByExample(@Param("record") User record, @Param("example") UserExample example);
26 |
27 | int updateByPrimaryKeySelective(User record);
28 |
29 | int updateByPrimaryKey(User record);
30 |
31 | User isUser(String account);
32 |
33 | User login(@Param("account")String account,@Param("password")String password);
34 |
35 | User ispassword(String password);
36 |
37 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/YansouTeam.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | public class YansouTeam implements Serializable{
7 | private static final long serialVersionUID = 1735629356395690707L;
8 |
9 | private Integer yansouTeamId;
10 |
11 | private String yansouTeamName;
12 |
13 | //级联属性
14 | private List yansouTeachers;
15 |
16 |
17 | public List getYansouTeachers() {
18 | return yansouTeachers;
19 | }
20 |
21 | public void setYansouTeachers(List yansouTeachers) {
22 | this.yansouTeachers = yansouTeachers;
23 | }
24 |
25 | public Integer getYansouTeamId() {
26 | return yansouTeamId;
27 | }
28 |
29 | public void setYansouTeamId(Integer yansouTeamId) {
30 | this.yansouTeamId = yansouTeamId;
31 | }
32 |
33 | public String getYansouTeamName() {
34 | return yansouTeamName;
35 | }
36 |
37 | public void setYansouTeamName(String yansouTeamName) {
38 | this.yansouTeamName = yansouTeamName == null ? null : yansouTeamName.trim();
39 | }
40 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/util/Utils.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.util;
2 |
3 | import java.io.IOException;
4 | import java.net.URLEncoder;
5 | import java.util.UUID;
6 | import javax.servlet.http.HttpServletRequest;
7 | import org.springframework.util.DigestUtils;
8 | import sun.misc.BASE64Encoder;
9 |
10 | public class Utils {
11 |
12 | public static String getUUID() {
13 | return UUID.randomUUID().toString().replaceAll("-", "");
14 | }
15 |
16 | public static String md5(String password) {
17 | return DigestUtils.md5DigestAsHex(password.getBytes());
18 | }
19 |
20 | //用来对下载文件名进行编码
21 | public static String filenameEncoding(String filename, HttpServletRequest request) throws IOException {
22 | String agent = request.getHeader("User-Agent"); //获取浏览器
23 | if (agent.contains("Firefox")) {
24 | BASE64Encoder base64Encoder = new BASE64Encoder();
25 | filename = "=?utf-8?B?"
26 | + base64Encoder.encode(filename.getBytes("utf-8"))
27 | + "?=";
28 | }else {
29 | filename = URLEncoder.encode(filename, "utf-8");
30 | }
31 | return filename;
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/YansouTeacherMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.YansouTeacher;
4 | import cn.lynu.model.YansouTeacherExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface YansouTeacherMapper {
9 | long countByExample(YansouTeacherExample example);
10 |
11 | int deleteByExample(YansouTeacherExample example);
12 |
13 | int deleteByPrimaryKey(Integer id);
14 |
15 | int insert(YansouTeacher record);
16 |
17 | int insertSelective(YansouTeacher record);
18 |
19 | List selectByExample(YansouTeacherExample example);
20 |
21 | YansouTeacher selectByPrimaryKey(Integer id);
22 |
23 | int updateByExampleSelective(@Param("record") YansouTeacher record, @Param("example") YansouTeacherExample example);
24 |
25 | int updateByExample(@Param("record") YansouTeacher record, @Param("example") YansouTeacherExample example);
26 |
27 | int updateByPrimaryKeySelective(YansouTeacher record);
28 |
29 | int updateByPrimaryKey(YansouTeacher record);
30 |
31 | YansouTeacher selectTeacherInfoByYansouTeamId(Integer yansouTeamId);
32 |
33 | YansouTeacher selectYansouTeacherByTeacherId(String teacherId);
34 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/WorkTime.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class WorkTime implements Serializable{
7 | private static final long serialVersionUID = -6603077902200027098L;
8 |
9 | private Integer workTimeId;
10 |
11 | private String workTimeInfo;
12 |
13 | private Date workTimeStart;
14 |
15 | private Date workTimeEnd;
16 |
17 | public Integer getWorkTimeId() {
18 | return workTimeId;
19 | }
20 |
21 | public void setWorkTimeId(Integer workTimeId) {
22 | this.workTimeId = workTimeId;
23 | }
24 |
25 | public String getWorkTimeInfo() {
26 | return workTimeInfo;
27 | }
28 |
29 | public void setWorkTimeInfo(String workTimeInfo) {
30 | this.workTimeInfo = workTimeInfo == null ? null : workTimeInfo.trim();
31 | }
32 |
33 | public Date getWorkTimeStart() {
34 | return workTimeStart;
35 | }
36 |
37 | public void setWorkTimeStart(Date workTimeStart) {
38 | this.workTimeStart = workTimeStart;
39 | }
40 |
41 | public Date getWorkTimeEnd() {
42 | return workTimeEnd;
43 | }
44 |
45 | public void setWorkTimeEnd(Date workTimeEnd) {
46 | this.workTimeEnd = workTimeEnd;
47 | }
48 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/ZqjcService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.ZqjcMapper;
10 | import cn.lynu.model.Zqjc;
11 |
12 | @Service
13 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
14 | public class ZqjcService {
15 |
16 | @Autowired
17 | private ZqjcMapper zqjcMapper;
18 |
19 | @Transactional(propagation=Propagation.REQUIRED)
20 | public boolean insertSelective(Zqjc zqjc) {
21 | if(zqjcMapper.insertSelective(zqjc)>0){
22 | return true;
23 | }
24 | return false;
25 | }
26 |
27 | @Transactional(propagation=Propagation.SUPPORTS)
28 | public Zqjc getzqjcByStudentId(String studentId) {
29 | return zqjcMapper.getzqjcByStudentId(studentId);
30 | }
31 |
32 | @Transactional(propagation=Propagation.REQUIRED)
33 | public boolean updateByPrimaryKeySelective(Zqjc zqjc) {
34 | if(zqjcMapper.updateByPrimaryKeySelective(zqjc)>0) {
35 | return true;
36 | }
37 | return false;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/springDispatcherServlet-servlet.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/webapp/code.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" import="java.util.*,java.awt.*" pageEncoding="UTF-8"%>
2 | <%@ page import="javax.imageio.*"%>
3 | <%@ page import="java.awt.image.*" %>
4 |
5 |
6 |
7 | 验证码
8 |
9 |
10 |
11 | <%
12 | response.setHeader("Cache-Control","no-cache");
13 | //内存中创建图像
14 | int width=60,height=20;
15 | BufferedImage image=new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB);
16 | //获取画笔
17 | Graphics g=image.getGraphics();
18 | //设定背景色,并填充整个图像区(创建画布)
19 | g.setColor(new Color(200,200,200));
20 | g.fillRect(0,0,width,height);
21 | //随机数
22 | Random rnd=new Random();
23 | int randNum=rnd.nextInt(8999)+1000;
24 | String randStr=String.valueOf(randNum);
25 | //将验证码存入session
26 | session.setAttribute("randStr",randStr);
27 | //将验证码显示在画布
28 | g.setColor(Color.black);
29 | g.setFont(new Font("",Font.PLAIN,20));
30 | g.drawString(randStr,10,17);
31 | //生成100个干扰点(就是图片上的噪点)
32 | for(int i=0;i<100;i++){
33 | int x=rnd.nextInt(width);
34 | int y=rnd.nextInt(height);
35 | g.drawOval(x,y,1,1);
36 | }
37 | //输出图像
38 | ImageIO.write(image,"JPEG",response.getOutputStream());
39 | out.clear();
40 | out=pageContext.pushBody();
41 | %>
42 |
43 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/InformController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Controller;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RequestMethod;
9 | import org.springframework.web.bind.annotation.ResponseBody;
10 |
11 | import com.github.pagehelper.PageHelper;
12 | import com.github.pagehelper.PageInfo;
13 |
14 | import cn.lynu.model.Inform;
15 | import cn.lynu.service.InformService;
16 |
17 | @Controller
18 | @RequestMapping("/informController")
19 | public class InformController {
20 |
21 | @Autowired
22 | private InformService informService;
23 |
24 | @ResponseBody
25 | @RequestMapping(value="/getSubInform",method=RequestMethod.GET)
26 | public PageInfo getSubInform(int pageNum,int pageSize,int navigatePages) {
27 | //传入当前页和每页记录数
28 | PageHelper.startPage(pageNum, pageSize);
29 | List list = informService.getAllInfrom();
30 | PageInfo pageInfo=new PageInfo(list,navigatePages);
31 | return pageInfo;
32 | }
33 |
34 | @ResponseBody
35 | @RequestMapping(value="/getSubInformById",method=RequestMethod.GET)
36 | public Inform getSubInformById(int informId) {
37 | return informService.getSubInformById(informId);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/YansouTeacher.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class YansouTeacher implements Serializable{
6 | private static final long serialVersionUID = 3228891451232583789L;
7 |
8 | private Integer id;
9 |
10 | private Integer yansouTeamId;
11 |
12 | private String teacherId;
13 |
14 | private Integer isLeader;
15 |
16 | //级联属性
17 | private Teacher teacher;
18 |
19 |
20 | public Teacher getTeacher() {
21 | return teacher;
22 | }
23 |
24 | public void setTeacher(Teacher teacher) {
25 | this.teacher = teacher;
26 | }
27 |
28 | public Integer getId() {
29 | return id;
30 | }
31 |
32 | public void setId(Integer id) {
33 | this.id = id;
34 | }
35 |
36 | public Integer getYansouTeamId() {
37 | return yansouTeamId;
38 | }
39 |
40 | public void setYansouTeamId(Integer yansouTeamId) {
41 | this.yansouTeamId = yansouTeamId;
42 | }
43 |
44 | public String getTeacherId() {
45 | return teacherId;
46 | }
47 |
48 | public void setTeacherId(String teacherId) {
49 | this.teacherId = teacherId == null ? null : teacherId.trim();
50 | }
51 |
52 | public Integer getIsLeader() {
53 | return isLeader;
54 | }
55 |
56 | public void setIsLeader(Integer isLeader) {
57 | this.isLeader = isLeader;
58 | }
59 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/TeacherMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Project;
4 | import cn.lynu.model.Teacher;
5 | import cn.lynu.model.TeacherExample;
6 | import java.util.List;
7 | import org.apache.ibatis.annotations.Param;
8 |
9 | public interface TeacherMapper {
10 | long countByExample(TeacherExample example);
11 |
12 | int deleteByExample(TeacherExample example);
13 |
14 | int deleteByPrimaryKey(String teacherId);
15 |
16 | int insert(Teacher record);
17 |
18 | int insertSelective(Teacher record);
19 |
20 | List selectByExample(TeacherExample example);
21 |
22 | Teacher selectByPrimaryKey(String teacherId);
23 |
24 | int updateByExampleSelective(@Param("record") Teacher record, @Param("example") TeacherExample example);
25 |
26 | int updateByExample(@Param("record") Teacher record, @Param("example") TeacherExample example);
27 |
28 | int updateByPrimaryKeySelective(Teacher record);
29 |
30 | int updateByPrimaryKey(Teacher record);
31 |
32 | List getAllTeacher();
33 |
34 | Teacher findTeacherByTeacherId(String teacherId);
35 |
36 | List findTeacherByTeacherName(@Param("teacherName")String teacherName);
37 |
38 | Teacher findTeacherAndProject(String teacherId);
39 |
40 | Teacher findTeacherByUserId(String userId);
41 |
42 | boolean addProjectAfter(String teacherId);
43 |
44 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/DabianService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.DaBianMapper;
10 | import cn.lynu.model.DaBian;
11 |
12 | @Service
13 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
14 | public class DabianService {
15 |
16 | @Autowired
17 | private DaBianMapper daBianMapper;
18 |
19 | @Transactional(propagation=Propagation.SUPPORTS)
20 | public Integer getThisStudentScore(String studentId) {
21 | DaBian daBian = daBianMapper.getThisStudentScore(studentId);
22 | if(daBian!=null) {
23 | return daBian.getDabianScore();
24 | }
25 | return -1;
26 | }
27 |
28 | @Transactional(propagation=Propagation.REQUIRED)
29 | public boolean insertDabian(DaBian daBian) {
30 | if(daBianMapper.insertSelective(daBian)>0) {
31 | return true;
32 | }
33 | return false;
34 | }
35 |
36 | @Transactional(propagation=Propagation.REQUIRED)
37 | public boolean updateDabian(DaBian daBian) {
38 | if(daBianMapper.updateByPrimaryKeySelective(daBian)>0) {
39 | return true;
40 | }
41 | return false;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Ktbg.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Ktbg implements Serializable{
6 | private static final long serialVersionUID = 5666133656817701116L;
7 |
8 | private Integer ktbgId;
9 |
10 | private String column1;
11 |
12 | private String column2;
13 |
14 | private String studentId;
15 |
16 | private Integer ktbgStatus;
17 |
18 | public Integer getKtbgId() {
19 | return ktbgId;
20 | }
21 |
22 | public void setKtbgId(Integer ktbgId) {
23 | this.ktbgId = ktbgId;
24 | }
25 |
26 | public String getColumn1() {
27 | return column1;
28 | }
29 |
30 | public void setColumn1(String column1) {
31 | this.column1 = column1 == null ? null : column1.trim();
32 | }
33 |
34 | public String getColumn2() {
35 | return column2;
36 | }
37 |
38 | public void setColumn2(String column2) {
39 | this.column2 = column2 == null ? null : column2.trim();
40 | }
41 |
42 | public String getStudentId() {
43 | return studentId;
44 | }
45 |
46 | public void setStudentId(String studentId) {
47 | this.studentId = studentId == null ? null : studentId.trim();
48 | }
49 |
50 | public Integer getKtbgStatus() {
51 | return ktbgStatus;
52 | }
53 |
54 | public void setKtbgStatus(Integer ktbgStatus) {
55 | this.ktbgStatus = ktbgStatus;
56 | }
57 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Down.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class Down implements Serializable{
7 | private static final long serialVersionUID = -3835701865423130130L;
8 |
9 | private Integer downId;
10 |
11 | private String downTitle;
12 |
13 | private String downPath;
14 |
15 | private Date createDate;
16 |
17 | private String adminId;
18 |
19 | public Integer getDownId() {
20 | return downId;
21 | }
22 |
23 | public void setDownId(Integer downId) {
24 | this.downId = downId;
25 | }
26 |
27 | public String getDownTitle() {
28 | return downTitle;
29 | }
30 |
31 | public void setDownTitle(String downTitle) {
32 | this.downTitle = downTitle == null ? null : downTitle.trim();
33 | }
34 |
35 | public String getDownPath() {
36 | return downPath;
37 | }
38 |
39 | public void setDownPath(String downPath) {
40 | this.downPath = downPath == null ? null : downPath.trim();
41 | }
42 |
43 | public Date getCreateDate() {
44 | return createDate;
45 | }
46 |
47 | public void setCreateDate(Date createDate) {
48 | this.createDate = createDate;
49 | }
50 |
51 | public String getAdminId() {
52 | return adminId;
53 | }
54 |
55 | public void setAdminId(String adminId) {
56 | this.adminId = adminId == null ? null : adminId.trim();
57 | }
58 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/MdbService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.MdbMapper;
10 | import cn.lynu.model.Mdb;
11 |
12 | @Service
13 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
14 | public class MdbService {
15 |
16 | @Autowired
17 | private MdbMapper mdbMapper;
18 |
19 | @Transactional(propagation=Propagation.REQUIRED)
20 | public boolean insertSelective(Mdb mdb) {
21 | if(mdbMapper.insertSelective(mdb)>0) {
22 | return true;
23 | }
24 | return false;
25 | }
26 |
27 | @Transactional(propagation=Propagation.SUPPORTS)
28 | public Mdb getMdbByStudentId(String studentId) {
29 | return mdbMapper.getMdbByStudentId(studentId);
30 | }
31 |
32 | @Transactional(propagation=Propagation.REQUIRED)
33 | public boolean updateColumn(Mdb mdb) {
34 | if(mdbMapper.updateColumn(mdb)>0) {
35 | return true;
36 | }
37 | return false;
38 | }
39 |
40 | @Transactional(propagation=Propagation.REQUIRED)
41 | public boolean updateColumnById(Mdb mdb) {
42 | if(mdbMapper.updateByPrimaryKeySelective(mdb)>0) {
43 | return true;
44 | }
45 | return false;
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/ClassInfo.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class ClassInfo implements Serializable{
6 | private static final long serialVersionUID = -5068568524778234955L;
7 |
8 | private Integer classId;
9 |
10 | private String className;
11 |
12 | private Integer gradeId;
13 |
14 | private Integer subjectId;
15 |
16 | private Grade grade;
17 |
18 | private Subject subject;
19 |
20 | public Grade getGrade() {
21 | return grade;
22 | }
23 |
24 | public void setGrade(Grade grade) {
25 | this.grade = grade;
26 | }
27 |
28 | public Subject getSubject() {
29 | return subject;
30 | }
31 |
32 | public void setSubject(Subject subject) {
33 | this.subject = subject;
34 | }
35 |
36 | public Integer getClassId() {
37 | return classId;
38 | }
39 |
40 | public void setClassId(Integer classId) {
41 | this.classId = classId;
42 | }
43 |
44 | public String getClassName() {
45 | return className;
46 | }
47 |
48 | public void setClassName(String className) {
49 | this.className = className == null ? null : className.trim();
50 | }
51 |
52 | public Integer getGradeId() {
53 | return gradeId;
54 | }
55 |
56 | public void setGradeId(Integer gradeId) {
57 | this.gradeId = gradeId;
58 | }
59 |
60 | public Integer getSubjectId() {
61 | return subjectId;
62 | }
63 |
64 | public void setSubjectId(Integer subjectId) {
65 | this.subjectId = subjectId;
66 | }
67 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/DabianController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import javax.servlet.http.HttpSession;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Controller;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RequestMethod;
9 | import org.springframework.web.bind.annotation.ResponseBody;
10 |
11 | import cn.lynu.model.DaBian;
12 | import cn.lynu.model.Project;
13 | import cn.lynu.model.Student;
14 | import cn.lynu.model.User;
15 | import cn.lynu.service.DabianService;
16 | import cn.lynu.service.StudentService;
17 |
18 | @Controller
19 | @RequestMapping("/dabianController")
20 | public class DabianController {
21 |
22 | @Autowired
23 | private DabianService dabianService;
24 | @Autowired
25 | private StudentService studentService;
26 |
27 | @ResponseBody
28 | @RequestMapping("/getThisStudentScore")
29 | public Integer getThisStudentScore(HttpSession session) {
30 | User user=(User) session.getAttribute("user");
31 | if(user!=null) {
32 | Student student = studentService.getStudentByUserId(user.getUserId());
33 | if(student!=null) {
34 | return dabianService.getThisStudentScore(student.getStudentId());
35 | }
36 | }
37 | return -1;
38 | }
39 |
40 | @ResponseBody
41 | @RequestMapping(value="/insertOrUpdate",method=RequestMethod.POST)
42 | public boolean insertOrUpdate(DaBian daBian) {
43 | if(daBian.getId()==null) {
44 | return dabianService.insertDabian(daBian);
45 | }else {
46 | return dabianService.updateDabian(daBian);
47 | }
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Mdb.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Mdb implements Serializable{
6 | private static final long serialVersionUID = -6217898367611951524L;
7 |
8 | private Integer mdbId;
9 |
10 | private String column1;
11 |
12 | private String column2;
13 |
14 | private String column3;
15 |
16 | private String studentId;
17 |
18 | private Integer mdbStatus;
19 |
20 |
21 | public Integer getMdbStatus() {
22 | return mdbStatus;
23 | }
24 |
25 | public void setMdbStatus(Integer mdbStatus) {
26 | this.mdbStatus = mdbStatus;
27 | }
28 |
29 | public Integer getMdbId() {
30 | return mdbId;
31 | }
32 |
33 | public void setMdbId(Integer mdbId) {
34 | this.mdbId = mdbId;
35 | }
36 |
37 | public String getColumn1() {
38 | return column1;
39 | }
40 |
41 | public void setColumn1(String column1) {
42 | this.column1 = column1 == null ? null : column1.trim();
43 | }
44 |
45 | public String getColumn2() {
46 | return column2;
47 | }
48 |
49 | public void setColumn2(String column2) {
50 | this.column2 = column2 == null ? null : column2.trim();
51 | }
52 |
53 | public String getColumn3() {
54 | return column3;
55 | }
56 |
57 | public void setColumn3(String column3) {
58 | this.column3 = column3 == null ? null : column3.trim();
59 | }
60 |
61 | public String getStudentId() {
62 | return studentId;
63 | }
64 |
65 | public void setStudentId(String studentId) {
66 | this.studentId = studentId == null ? null : studentId.trim();
67 | }
68 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/ProjectMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Project;
4 | import cn.lynu.model.ProjectExample;
5 | import java.util.List;
6 | import org.apache.ibatis.annotations.Param;
7 |
8 | public interface ProjectMapper {
9 | long countByExample(ProjectExample example);
10 |
11 | int deleteByExample(ProjectExample example);
12 |
13 | int deleteByPrimaryKey(Integer projectId);
14 |
15 | int insert(Project record);
16 |
17 | int insertSelective(Project record);
18 |
19 | List selectByExample(ProjectExample example);
20 |
21 | Project selectByPrimaryKey(Integer projectId);
22 |
23 | Project selectProjectAndFromByPid(Integer projectId);
24 |
25 | int updateByExampleSelective(@Param("record") Project record, @Param("example") ProjectExample example);
26 |
27 | int updateByExample(@Param("record") Project record, @Param("example") ProjectExample example);
28 |
29 | int updateByPrimaryKeySelective(Project record);
30 |
31 | int updateByPrimaryKey(Project record);
32 |
33 | int noChooseProject(String teacherId);
34 |
35 | List getProjectListByTeacherId(String teacherId);
36 |
37 | Project getProjectByStudentId(String studentId);
38 |
39 | boolean updateProjectByStudentId(@Param("studentId")String studentId,@Param("projectId")String projectId);
40 |
41 | List getProjectAndStudent(String teacher_id);
42 |
43 | boolean updateNoStudent(String projectId);
44 |
45 | int getCountProjectNum();
46 |
47 | int thisTeacherYesProjectNum(String teacherId);
48 |
49 | List getProjectByTeacherId(String teacherId);
50 |
51 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/LunwenService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.LunwenMapper;
10 | import cn.lynu.model.Lunwen;
11 |
12 | @Service
13 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
14 | public class LunwenService {
15 |
16 | @Autowired
17 | private LunwenMapper lunwenMapper;
18 |
19 | @Transactional(propagation=Propagation.SUPPORTS)
20 | public Lunwen getLunwenBySid(String studentId) {
21 | return lunwenMapper.getLunwenBySid(studentId);
22 | }
23 |
24 | @Transactional(propagation=Propagation.REQUIRED)
25 | public boolean upLunwenBySid(Lunwen lunwen) {
26 | if(lunwenMapper.updateByPrimaryKeySelective(lunwen)>0) {
27 | return true;
28 | }
29 | return false;
30 | }
31 |
32 | @Transactional(propagation=Propagation.REQUIRED)
33 | public boolean insertOrUpdate(String studentId,Lunwen lw) {
34 | Lunwen lunwen=lunwenMapper.getLunwenBySid(studentId);
35 | if(lunwen!=null) {
36 | lunwen.setLunwenDate(lw.getLunwenDate());
37 | lunwen.setLunwenName(lw.getLunwenName());
38 | lunwen.setLunwenPath(lw.getLunwenPath());
39 | lunwenMapper.updateByPrimaryKeySelective(lunwen);
40 | return true;
41 | }else {
42 | lw.setStudentId(studentId);
43 | lunwenMapper.insertSelective(lw);
44 | return true;
45 | }
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/UserService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.UserMapper;
10 | import cn.lynu.model.User;
11 |
12 | @Service
13 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
14 | public class UserService {
15 |
16 | @Autowired
17 | private UserMapper userMapper;
18 |
19 | @Transactional(propagation=Propagation.SUPPORTS)
20 | public boolean isUser(String account) {
21 | User user = userMapper.isUser(account);
22 | if(user!=null) {
23 | return true;
24 | }
25 | return false;
26 | }
27 |
28 | @Transactional(propagation=Propagation.SUPPORTS)
29 | public User login(String account,String password) {
30 | return userMapper.login(account, password);
31 | }
32 |
33 | @Transactional(propagation=Propagation.SUPPORTS)
34 | public boolean ispassword(String password, String userId) {
35 | User user = userMapper.selectByPrimaryKey(userId);
36 | if(user!=null) {
37 | if(password.equals(user.getUserPassword())) {
38 | return true;
39 | }
40 | }
41 | return false;
42 | }
43 |
44 | @Transactional(propagation=Propagation.REQUIRED)
45 | public boolean updateUserInfo(User user) {
46 | int bool = userMapper.updateByPrimaryKeySelective(user);
47 | if(bool>0) {
48 | return true;
49 | }
50 | return false;
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Zqjc.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Zqjc implements Serializable{
6 | private static final long serialVersionUID = 2234223632477485386L;
7 |
8 | private Integer zqjcId;
9 |
10 | private String column1;
11 |
12 | private String column2;
13 |
14 | private String column3;
15 |
16 | private String column4;
17 |
18 | private String studentId;
19 |
20 | public Integer getZqjcId() {
21 | return zqjcId;
22 | }
23 |
24 | public void setZqjcId(Integer zqjcId) {
25 | this.zqjcId = zqjcId;
26 | }
27 |
28 | public String getColumn1() {
29 | return column1;
30 | }
31 |
32 | public void setColumn1(String column1) {
33 | this.column1 = column1 == null ? null : column1.trim();
34 | }
35 |
36 | public String getColumn2() {
37 | return column2;
38 | }
39 |
40 | public void setColumn2(String column2) {
41 | this.column2 = column2 == null ? null : column2.trim();
42 | }
43 |
44 | public String getColumn3() {
45 | return column3;
46 | }
47 |
48 | public void setColumn3(String column3) {
49 | this.column3 = column3 == null ? null : column3.trim();
50 | }
51 |
52 | public String getColumn4() {
53 | return column4;
54 | }
55 |
56 | public void setColumn4(String column4) {
57 | this.column4 = column4 == null ? null : column4.trim();
58 | }
59 |
60 | public String getStudentId() {
61 | return studentId;
62 | }
63 |
64 | public void setStudentId(String studentId) {
65 | this.studentId = studentId == null ? null : studentId.trim();
66 | }
67 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/KtbgService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.KtbgMapper;
10 | import cn.lynu.model.Ktbg;
11 |
12 | @Service
13 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
14 | public class KtbgService {
15 |
16 | @Autowired
17 | private KtbgMapper ktbgMapper;
18 |
19 | @Transactional(propagation=Propagation.REQUIRED)
20 | public boolean insertSelective(Ktbg ktbg) {
21 | if(ktbgMapper.insertSelective(ktbg)>0) {
22 | return true;
23 | }
24 | return false;
25 | }
26 |
27 | @Transactional(propagation=Propagation.SUPPORTS)
28 | public Ktbg getKtbgByStudentId(String studentId) {
29 | return ktbgMapper.getKtbgByStudentId(studentId);
30 | }
31 |
32 | @Transactional(propagation=Propagation.REQUIRED)
33 | public boolean updateColumn(Ktbg ktbg) {
34 | if(ktbgMapper.updateColumn(ktbg)>0) {
35 | return true;
36 | }
37 | return false;
38 | }
39 |
40 | @Transactional(propagation=Propagation.SUPPORTS)
41 | public Ktbg getKtbgStatus(String ktbgId) {
42 | return ktbgMapper.selectByPrimaryKey(Integer.valueOf(ktbgId));
43 | }
44 |
45 | @Transactional(propagation=Propagation.REQUIRED)
46 | public boolean updateByPrimaryKeySelective(Ktbg ktbg) {
47 | if(ktbgMapper.updateByPrimaryKeySelective(ktbg)>0) {
48 | return true;
49 | }
50 | return false;
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/main/webapp/student/smdbinfo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 学生界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
免答辩申请结果
24 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Lunwen.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class Lunwen implements Serializable{
7 | private static final long serialVersionUID = 8314940987124771477L;
8 |
9 | private Integer lunwenId;
10 |
11 | private String lunwenName;
12 |
13 | private String lunwenPath;
14 |
15 | private Date lunwenDate;
16 |
17 | private String studentId;
18 |
19 | private Integer lunwenStatus;
20 |
21 |
22 | public Integer getLunwenId() {
23 | return lunwenId;
24 | }
25 |
26 | public void setLunwenId(Integer lunwenId) {
27 | this.lunwenId = lunwenId;
28 | }
29 |
30 | public String getLunwenName() {
31 | return lunwenName;
32 | }
33 |
34 | public void setLunwenName(String lunwenName) {
35 | this.lunwenName = lunwenName == null ? null : lunwenName.trim();
36 | }
37 |
38 | public String getLunwenPath() {
39 | return lunwenPath;
40 | }
41 |
42 | public void setLunwenPath(String lunwenPath) {
43 | this.lunwenPath = lunwenPath == null ? null : lunwenPath.trim();
44 | }
45 |
46 | public Date getLunwenDate() {
47 | return lunwenDate;
48 | }
49 |
50 | public void setLunwenDate(Date lunwenDate) {
51 | this.lunwenDate = lunwenDate;
52 | }
53 |
54 | public String getStudentId() {
55 | return studentId;
56 | }
57 |
58 | public void setStudentId(String studentId) {
59 | this.studentId = studentId == null ? null : studentId.trim();
60 | }
61 |
62 | public Integer getLunwenStatus() {
63 | return lunwenStatus;
64 | }
65 |
66 | public void setLunwenStatus(Integer lunwenStatus) {
67 | this.lunwenStatus = lunwenStatus;
68 | }
69 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Message.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class Message implements Serializable{
7 | private static final long serialVersionUID = 6054416957113212044L;
8 |
9 | private Integer messageId;
10 |
11 | private String messageBody;
12 |
13 | private Integer messageType;
14 |
15 | private String teacherId;
16 |
17 | private String studentId;
18 |
19 | private Date createDate;
20 |
21 | private Date responseDate;
22 |
23 | public Integer getMessageId() {
24 | return messageId;
25 | }
26 |
27 | public void setMessageId(Integer messageId) {
28 | this.messageId = messageId;
29 | }
30 |
31 | public String getMessageBody() {
32 | return messageBody;
33 | }
34 |
35 | public void setMessageBody(String messageBody) {
36 | this.messageBody = messageBody == null ? null : messageBody.trim();
37 | }
38 |
39 | public Integer getMessageType() {
40 | return messageType;
41 | }
42 |
43 | public void setMessageType(Integer messageType) {
44 | this.messageType = messageType;
45 | }
46 |
47 | public String getTeacherId() {
48 | return teacherId;
49 | }
50 |
51 | public void setTeacherId(String teacherId) {
52 | this.teacherId = teacherId == null ? null : teacherId.trim();
53 | }
54 |
55 | public String getStudentId() {
56 | return studentId;
57 | }
58 |
59 | public void setStudentId(String studentId) {
60 | this.studentId = studentId == null ? null : studentId.trim();
61 | }
62 |
63 | public Date getCreateDate() {
64 | return createDate;
65 | }
66 |
67 | public void setCreateDate(Date createDate) {
68 | this.createDate = createDate;
69 | }
70 |
71 | public Date getResponseDate() {
72 | return responseDate;
73 | }
74 |
75 | public void setResponseDate(Date responseDate) {
76 | this.responseDate = responseDate;
77 | }
78 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Inform.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class Inform implements Serializable {
7 |
8 | private static final long serialVersionUID = 6362674348755025887L;
9 |
10 | private Integer informId;
11 |
12 | private String informTitle;
13 |
14 | private String informBody;
15 |
16 | private Integer isAttachment;
17 |
18 | private String attachmentPath;
19 |
20 | private Date createDate;
21 |
22 | private String adminId;
23 |
24 | public Integer getInformId() {
25 | return informId;
26 | }
27 |
28 | public void setInformId(Integer informId) {
29 | this.informId = informId;
30 | }
31 |
32 | public String getInformTitle() {
33 | return informTitle;
34 | }
35 |
36 | public void setInformTitle(String informTitle) {
37 | this.informTitle = informTitle == null ? null : informTitle.trim();
38 | }
39 |
40 | public String getInformBody() {
41 | return informBody;
42 | }
43 |
44 | public void setInformBody(String informBody) {
45 | this.informBody = informBody == null ? null : informBody.trim();
46 | }
47 |
48 | public Integer getIsAttachment() {
49 | return isAttachment;
50 | }
51 |
52 | public void setIsAttachment(Integer isAttachment) {
53 | this.isAttachment = isAttachment;
54 | }
55 |
56 | public String getAttachmentPath() {
57 | return attachmentPath;
58 | }
59 |
60 | public void setAttachmentPath(String attachmentPath) {
61 | this.attachmentPath = attachmentPath == null ? null : attachmentPath.trim();
62 | }
63 |
64 | public Date getCreateDate() {
65 | return createDate;
66 | }
67 |
68 | public void setCreateDate(Date createDate) {
69 | this.createDate = createDate;
70 | }
71 |
72 | public String getAdminId() {
73 | return adminId;
74 | }
75 |
76 | public void setAdminId(String adminId) {
77 | this.adminId = adminId == null ? null : adminId.trim();
78 | }
79 | }
--------------------------------------------------------------------------------
/src/main/webapp/student/sdbinfo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 学生界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
答辩/验收组信息
24 |
25 |
26 |
27 | - 所在答辩/验收组:
28 | - 答辩/验收组组长:
29 | -
30 | 答辩/验收组其他成员:
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/mapper/StudentMapper.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.mapper;
2 |
3 | import cn.lynu.model.Student;
4 | import cn.lynu.model.StudentExample;
5 | import cn.lynu.model.User;
6 |
7 | import java.util.List;
8 | import org.apache.ibatis.annotations.Param;
9 |
10 | public interface StudentMapper {
11 | long countByExample(StudentExample example);
12 |
13 | int deleteByExample(StudentExample example);
14 |
15 | int deleteByPrimaryKey(String studentId);
16 |
17 | int insert(Student record);
18 |
19 | int insertSelective(Student record);
20 |
21 | List selectByExample(StudentExample example);
22 |
23 | Student selectByPrimaryKey(String studentId);
24 |
25 | int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);
26 |
27 | int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);
28 |
29 | int updateByPrimaryKeySelective(Student record);
30 |
31 | int updateByPrimaryKey(Student record);
32 |
33 | Student getStudentByUserId(String userId);
34 |
35 | User getUserByStudentId(String studentId);
36 |
37 | Student getStudentByStudentId(String studentId);
38 |
39 | boolean updateProjectNum(@Param("studentId")String studentId,
40 | @Param("teacherId")String teacherId,@Param("projectId")String projectId);
41 |
42 | boolean updateNoProjectNum(String studentId);
43 |
44 | Student getStuAndProject(String studentId);
45 |
46 | Student getStuAndProjectAndTeacher(String studentId);
47 |
48 | boolean updateTeacherId(@Param("teacherId")String teacherId,@Param("studentId") String studentId);
49 |
50 | int thisTeacherUndefinedStudentNum(String teacherId);
51 |
52 | List getStudentByTeacherId(String teacherId);
53 |
54 | Student getStudentAndKtbgBySid(String studentId);
55 |
56 | Student getStudentAndZqjcBySid(String studentId);
57 |
58 | boolean addProjectAfter(String teacherId);
59 |
60 | Integer getThisStudentScore(String studentId);
61 |
62 | List getStudentByTeacherId2(String teacherId);
63 |
64 | Student getStudentAndMdbBySid(String studentId);
65 |
66 | List findStudentsByYansouId(Integer yansouTeamId);
67 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/KtbgController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import javax.servlet.http.HttpServletResponse;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.stereotype.Controller;
6 | import org.springframework.web.bind.annotation.RequestMapping;
7 | import org.springframework.web.bind.annotation.RequestMethod;
8 | import org.springframework.web.bind.annotation.RequestParam;
9 | import org.springframework.web.bind.annotation.ResponseBody;
10 | import cn.lynu.model.Ktbg;
11 | import cn.lynu.service.KtbgService;
12 |
13 | @Controller
14 | @RequestMapping("/ktbgController")
15 | public class KtbgController {
16 |
17 | @Autowired
18 | private KtbgService ktbgService;
19 |
20 | @ResponseBody
21 | @RequestMapping(value="/insertSelective",method=RequestMethod.POST)
22 | public boolean insertSelective(Ktbg ktbg) {
23 | if(ktbg.getKtbgId()==null) {
24 | return ktbgService.insertSelective(ktbg);
25 | }else {
26 | return ktbgService.updateColumn(ktbg);
27 | }
28 | }
29 |
30 | @ResponseBody
31 | @RequestMapping("/getKtbgByStudentId")
32 | public Ktbg getKtbgByStudentId(String studentId,HttpServletResponse response) {
33 | response.setContentType("application/json;charset=utf-8");
34 | Ktbg ktbg = ktbgService.getKtbgByStudentId(studentId);
35 | if(ktbg!=null) {
36 | return ktbg;
37 | }
38 | return new Ktbg();
39 | }
40 |
41 | @ResponseBody
42 | @RequestMapping(value="/updateColumn",method=RequestMethod.PUT)
43 | public boolean updateColumn(Ktbg ktbg) {
44 | return ktbgService.updateColumn(ktbg);
45 | }
46 |
47 | @RequestMapping("/gotoTktbg")
48 | public String gotoTktbg(@RequestParam(required=true)String studentId) {
49 | return "redirect:http://localhost:8080/graduation/teacher/tktbg.html?studentId="+studentId;
50 | }
51 |
52 | @ResponseBody
53 | @RequestMapping("/getKtbgStatus")
54 | public Ktbg getKtbgStatus(String ktbgId) {
55 | return ktbgService.getKtbgStatus(ktbgId);
56 | }
57 |
58 | @ResponseBody
59 | @RequestMapping(value="/updateByPrimaryKeySelective",method=RequestMethod.POST)
60 | public boolean updateByPrimaryKeySelective(Ktbg ktbg) {
61 | return ktbgService.updateByPrimaryKeySelective(ktbg);
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/src/main/webapp/js/util.js:
--------------------------------------------------------------------------------
1 | //封装cookie
2 | function setCookie(name,value,iDay){
3 | var oDate=new Date();
4 | oDate.setDate(oDate.getDate()+iDay);
5 | document.cookie=name+'='+value+';expires='+oDate;
6 | }
7 | //移除cookie
8 | function removeCookie(name){
9 | setCookie(name, '', '-1');
10 | }
11 | //读取cookie
12 | function getCookie(name) {
13 | var arr=document.cookie.split('; ');
14 | // var i=0;
15 | for(i=0;i
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [全目录地址:https://www.blog996.com/md/2021-09-22-1632317852192.html](https://www.blog996.com/md/2021-09-22-1632317852192.html)
2 | # 65.GraduationProjectThesisManagementSystem
3 |
4 | 群: 123300273(入群获取sql文件)
5 | QQ: 1095737364(加好友获取sql文件)
6 |
7 | 65.毕业设计(论文)管理系统
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | ## 简介
18 |
19 |
20 | > 本代码来源于网络,仅供学习参考使用, 请入群(123300273)后联系群主索要sql文件!
21 | >
22 | > 注意: 只有学生和老师两个角色
23 | >
24 | > 提供1.远程部署/2.修改代码/3.设计文档指导/4.框架代码讲解等服务
25 | >
26 | > 用户登录地址:http://localhost:8080/graduation/
27 | >
28 | > 学生用户名: 123456 密码: 123456
29 | >
30 | > 老师用户名: teacher 密码: 123456
31 | >
32 | >
33 |
34 |
35 | >毕业设计管理系统可以分为五个模块:登录模块,选题模块,信息管理模块,流程管理模块,文件管理模块。
36 | - 该系统在技术上使用Spring+SpringMVC+MyBatis整合框架作为后台开发框架,AmazeUI作为前端开发框架。
37 | 并使用Ehcache作为项目的缓存,druid作为项目的数据库连接池,使用FreeMarker实现word的导出,使用Shiro完成项目的登录认证,数据库使用的则是MySQL。
38 | - 该系统可以分为三类角色:学生,教师,教务管理员。
39 | - 该系统前端界面使用纯HTML实现,与后台的交互则都是通过Ajax完成。
40 | > 登录模块
41 | - 登录模块主要完成教务管理员,教师,学生用户的登录功能,每个角色登录之后会看到不同的操作界面。
42 | > 选题模块
43 | - 选题模块主要完成师生双选这一业务流程。
44 | > 信息管理模块
45 | - 信息管理模块主要完成对各种信息的crud操作。
46 | > 流程管理模块
47 | - 流程管理主要完成对开题报告,中期检查,免答辩申请,验收/答辩,论文审核,盲审的流程的管理。
48 | > 文件管理模块
49 | - 文件管理模块主要对文件的上传与下载。
50 |
51 | ## 环境
52 |
53 | - IntelliJ IDEA 2009.3
54 |
55 | - Mysql 5.7.26
56 |
57 | - Tomcat 7.0.73
58 |
59 | - JDK 1.8
60 |
61 |
62 |
63 |
64 | ## 缩略图
65 |
66 | 
67 | 
68 | 
69 | 
70 | 
71 |
72 |
73 | ## License
74 |
75 | ##### [个人站点: 全栈九九六(Java全栈知识资料下载)](https://www.blog996.com/)
76 | ##### [个人博客: 博客园精品博客](https://www.cnblogs.com/yysbolg/)
77 | # [更多论文: 全目录查看](https://www.blog996.com/md/2021-09-22-1632317852192.html)
78 |
79 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/ZqjcController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import javax.servlet.http.HttpSession;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.stereotype.Controller;
6 | import org.springframework.web.bind.annotation.RequestMapping;
7 | import org.springframework.web.bind.annotation.RequestMethod;
8 | import org.springframework.web.bind.annotation.RequestParam;
9 | import org.springframework.web.bind.annotation.ResponseBody;
10 | import cn.lynu.model.Student;
11 | import cn.lynu.model.User;
12 | import cn.lynu.model.Zqjc;
13 | import cn.lynu.service.StudentService;
14 | import cn.lynu.service.ZqjcService;
15 |
16 | @Controller
17 | @RequestMapping("/zqjcController")
18 | public class ZqjcController {
19 |
20 | @Autowired
21 | private ZqjcService zqjcService;
22 | @Autowired
23 | private StudentService studentService;
24 |
25 | @ResponseBody
26 | @RequestMapping(value="/insertSelective",method=RequestMethod.POST)
27 | public boolean insertSelective(Zqjc zqjc) {
28 | if(zqjc.getZqjcId()==null) {
29 | return zqjcService.insertSelective(zqjc);
30 | }else {
31 | return zqjcService.updateByPrimaryKeySelective(zqjc);
32 | }
33 | }
34 |
35 | @ResponseBody
36 | @RequestMapping("/getzqjcByStudentId")
37 | public Zqjc getzqjcByStudentId(@RequestParam(value="studentId",required=false)String studentId,
38 | HttpSession session) {
39 | if(studentId!=null&&!studentId.isEmpty()) {
40 | Zqjc zqjc = zqjcService.getzqjcByStudentId(studentId);
41 | if(zqjc!=null) {
42 | return zqjc;
43 | }
44 | }else {
45 | User user = (User) session.getAttribute("user");
46 | if(user!=null) {
47 | Student student = studentService.getStudentByUserId(user.getUserId());
48 | if(student!=null) {
49 | Zqjc zqjc = zqjcService.getzqjcByStudentId(student.getStudentId());
50 | if(zqjc!=null) {
51 | return zqjc;
52 | }
53 | }
54 | }
55 | }
56 | return new Zqjc();
57 | }
58 |
59 | @RequestMapping("/gotoTzqjc")
60 | public String gotoTzqjc(@RequestParam(required=true)String studentId) {
61 | return "redirect:http://localhost:8080/graduation/teacher/tzqjc.html?studentId="+studentId;
62 | }
63 |
64 | @ResponseBody
65 | @RequestMapping(value="/updateByPrimaryKeySelective",method=RequestMethod.PUT)
66 | public boolean updateByPrimaryKeySelective(Zqjc zqjc) {
67 | return zqjcService.updateByPrimaryKeySelective(zqjc);
68 | }
69 |
70 | }
71 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/DownController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import java.io.IOException;
4 | import java.nio.file.Files;
5 | import java.nio.file.Path;
6 | import java.nio.file.Paths;
7 | import java.util.List;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 | import javax.servlet.http.HttpSession;
11 | import org.springframework.beans.factory.annotation.Autowired;
12 | import org.springframework.stereotype.Controller;
13 | import org.springframework.web.bind.annotation.RequestMapping;
14 | import org.springframework.web.bind.annotation.RequestMethod;
15 | import org.springframework.web.bind.annotation.RequestParam;
16 | import org.springframework.web.bind.annotation.ResponseBody;
17 | import com.github.pagehelper.PageHelper;
18 | import com.github.pagehelper.PageInfo;
19 | import cn.lynu.model.Down;
20 | import cn.lynu.service.DownService;
21 | import cn.lynu.util.Utils;
22 |
23 | @Controller
24 | @RequestMapping("/downController")
25 | public class DownController {
26 |
27 | @Autowired
28 | private DownService downService;
29 |
30 | @ResponseBody
31 | @RequestMapping(value="/getSubDown",method=RequestMethod.GET)
32 | public PageInfo getSubDown(@RequestParam(defaultValue="1")int pageNum,
33 | @RequestParam(defaultValue="6")int pageSize,@RequestParam(defaultValue="1")int navigatePages) {
34 | PageHelper.startPage(pageNum, pageSize);
35 | List list = downService.getAllDown();
36 | return new PageInfo<>(list, navigatePages);
37 | }
38 |
39 | @RequestMapping("/downloadResource")
40 | public @ResponseBody String downloadResource(HttpSession session,HttpServletResponse response,
41 | HttpServletRequest request,@RequestParam(required=true)String fileName) throws Exception {
42 | if(fileName==null||fileName=="") {
43 | return null;
44 | }
45 | String dataDir=request.getServletContext().getRealPath("/WEB-INF/file");
46 | Path path=Paths.get(dataDir, fileName);
47 | if(Files.exists(path)) {
48 | response.setContentType("application/octet-stream");
49 | response.addHeader("Content-Disposition", "attachment;filename="+Utils.filenameEncoding(fileName, request));
50 | try {
51 | Files.copy(path, response.getOutputStream());
52 | } catch (IOException e) {
53 | e.printStackTrace();
54 | }
55 | }
56 | return null;
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | graduation
7 |
8 |
9 | login.html
10 |
11 |
12 |
13 | characterEncodingFilter
14 | org.springframework.web.filter.CharacterEncodingFilter
15 |
16 | encoding
17 | utf-8
18 |
19 |
20 | forceRequestEncoding
21 | true
22 |
23 |
24 | forceResponseEncoding
25 | true
26 |
27 |
28 |
29 | characterEncodingFilter
30 | /*
31 |
32 |
33 | HiddenHttpMethodFilter
34 | org.springframework.web.filter.HiddenHttpMethodFilter
35 |
36 |
37 | HiddenHttpMethodFilter
38 | /*
39 |
40 |
41 | HttpPutFormContentFilter
42 | org.springframework.web.filter.HttpPutFormContentFilter
43 |
44 |
45 | HttpPutFormContentFilter
46 | /*
47 |
48 |
49 |
50 |
51 | springDispatcherServlet
52 | org.springframework.web.servlet.DispatcherServlet
53 | 1
54 |
55 |
56 | springDispatcherServlet
57 | /
58 |
59 |
60 |
61 | contextConfigLocation
62 | classpath:spring/applicationContext.xml
63 |
64 |
65 | org.springframework.web.context.ContextLoaderListener
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/js/app.js:
--------------------------------------------------------------------------------
1 | $(function() {
2 |
3 | var $fullText = $('.admin-fullText');
4 | $('#admin-fullscreen').on('click', function() {
5 | $.AMUI.fullscreen.toggle();
6 | });
7 |
8 | $(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() {
9 | $fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏');
10 | });
11 |
12 | $('.tpl-switch').find('.tpl-switch-btn-view').on('click', function() {
13 | $(this).prev('.tpl-switch-btn').prop("checked", function() {
14 | if ($(this).is(':checked')) {
15 | return false
16 | } else {
17 | return true
18 | }
19 | })
20 |
21 | })
22 | })
23 | // ==========================
24 | // 侧边导航下拉列表
25 | // ==========================
26 |
27 | $('.tpl-left-nav-link-list').on('click', function() {
28 | $(this).siblings('.tpl-left-nav-sub-menu').slideToggle(80)
29 | .end()
30 | .find('.tpl-left-nav-more-ico').toggleClass('tpl-left-nav-more-ico-rotate');
31 | })
32 | // ==========================
33 | // 头部导航隐藏菜单
34 | // ==========================
35 |
36 | $('.tpl-header-nav-hover-ico').on('click', function() {
37 | $('.tpl-left-nav').toggle();
38 | $('.tpl-content-wrapper').toggleClass('tpl-content-wrapper-hover');
39 | })
40 |
41 | //禁用提交按钮(按钮id 成功信息)
42 | function disableBtn(id,text){
43 | $('#'+id).text(text);
44 | $('#'+id).removeClass('am-btn-primary').addClass('am-disabled am-btn-danger');
45 | }
46 |
47 | $(function(){
48 |
49 | //点击文件上传按钮出现模态框
50 | $('#open_file_btn').click(function() {
51 | $('#file-modal').modal('open');
52 | });
53 |
54 | //显示上传文件名
55 | $('#doc-ipt-file-2').on(
56 | 'change',
57 | function() {
58 | var fileNames = '';
59 | $.each(this.files, function() {
60 | fileNames += '' + this.name
61 | + ' ';
62 | });
63 | $('#file-list').html(fileNames);
64 | });
65 |
66 | });
67 |
68 | function isNull(data) {
69 | if(data==null||data==''||data==' '||data=='undefined'){
70 | return true;
71 | }
72 | return false;
73 | }
74 |
75 | //正则获得url参数
76 | function getQueryString(name) {
77 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
78 | var r = window.location.search.substr(1).match(reg);
79 | if (r != null) return unescape(r[2]); return null;
80 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Project.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Project implements Serializable{
6 | private static final long serialVersionUID = -7818290024619870851L;
7 |
8 | private Integer projectId;
9 |
10 | private String projectName;
11 |
12 | private String projectDescribe;
13 |
14 | private Integer projectFromId;
15 |
16 | private String teacherId;
17 |
18 | private String studentId;
19 |
20 | private Teacher teacher;
21 | private ProjectFrom projectFrom;
22 | private Student student;
23 |
24 | public Student getStudent() {
25 | return student;
26 | }
27 |
28 | public void setStudent(Student student) {
29 | this.student = student;
30 | }
31 |
32 | public Integer getProjectId() {
33 | return projectId;
34 | }
35 |
36 | public void setProjectId(Integer projectId) {
37 | this.projectId = projectId;
38 | }
39 |
40 | public String getProjectName() {
41 | return projectName;
42 | }
43 |
44 | public void setProjectName(String projectName) {
45 | this.projectName = projectName == null ? null : projectName.trim();
46 | }
47 |
48 | public String getProjectDescribe() {
49 | return projectDescribe;
50 | }
51 |
52 | public void setProjectDescribe(String projectDescribe) {
53 | this.projectDescribe = projectDescribe == null ? null : projectDescribe.trim();
54 | }
55 |
56 | public Integer getProjectFromId() {
57 | return projectFromId;
58 | }
59 |
60 | public void setProjectFromId(Integer projectFromId) {
61 | this.projectFromId = projectFromId;
62 | }
63 |
64 | public String getTeacherId() {
65 | return teacherId;
66 | }
67 |
68 | public void setTeacherId(String teacherId) {
69 | this.teacherId = teacherId == null ? null : teacherId.trim();
70 | }
71 |
72 | public String getStudentId() {
73 | return studentId;
74 | }
75 |
76 | public void setStudentId(String studentId) {
77 | this.studentId = studentId == null ? null : studentId.trim();
78 | }
79 |
80 | public Teacher getTeacher() {
81 | return teacher;
82 | }
83 |
84 | public void setTeacher(Teacher teacher) {
85 | this.teacher = teacher;
86 | }
87 |
88 | public ProjectFrom getProjectFrom() {
89 | return projectFrom;
90 | }
91 |
92 | public void setProjectFrom(ProjectFrom projectFrom) {
93 | this.projectFrom = projectFrom;
94 | }
95 |
96 | }
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tinfo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
教师分组信息
24 |
41 |
42 |
43 |
44 |
45 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/MdbController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import javax.servlet.http.HttpSession;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Controller;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RequestMethod;
9 | import org.springframework.web.bind.annotation.RequestParam;
10 | import org.springframework.web.bind.annotation.ResponseBody;
11 | import org.springframework.web.servlet.ModelAndView;
12 |
13 | import cn.lynu.model.Mdb;
14 | import cn.lynu.model.Student;
15 | import cn.lynu.model.User;
16 | import cn.lynu.service.MdbService;
17 | import cn.lynu.service.StudentService;
18 |
19 | @Controller
20 | @RequestMapping("/mdbController")
21 | public class MdbController {
22 |
23 | @Autowired
24 | private MdbService mdbService;
25 | @Autowired
26 | private StudentService studentService;
27 |
28 | @ResponseBody
29 | @RequestMapping(value="/insertSelective",method=RequestMethod.POST)
30 | public boolean insertSelective(Mdb mdb) {
31 | if(mdb.getMdbId()==null) {
32 | return mdbService.insertSelective(mdb);
33 | }else {
34 | return mdbService.updateColumnById(mdb);
35 | }
36 | }
37 |
38 | @ResponseBody
39 | @RequestMapping("/getMdbByStudentId")
40 | public Mdb getMdbByStudentId(String studentId,HttpSession session) {
41 | if(studentId!=null&&!"".equals(studentId)) {
42 | Mdb mdb=mdbService.getMdbByStudentId(studentId);
43 | if(mdb!=null) {
44 | return mdb;
45 | }
46 | }else {
47 | User user=(User) session.getAttribute("user");
48 | if(user!=null) {
49 | Student student = studentService.getStudentByUserId(user.getUserId());
50 | if(student!=null) {
51 | Mdb mdb=mdbService.getMdbByStudentId(student.getStudentId());
52 | if(mdb!=null) {
53 | return mdb;
54 | }
55 | }
56 | }
57 | }
58 | return new Mdb();
59 | }
60 |
61 | @ResponseBody
62 | @RequestMapping(value="/updateColumn",method=RequestMethod.PUT)
63 | public boolean updateColumn(Mdb mdb) {
64 | return mdbService.updateColumn(mdb);
65 | }
66 |
67 | @ResponseBody
68 | @RequestMapping(value="/updateColumnById",method=RequestMethod.PUT)
69 | public boolean updateColumnById(Mdb mdb) {
70 | return mdbService.updateColumnById(mdb);
71 | }
72 |
73 | @RequestMapping("/gotoTsureMdb")
74 | public ModelAndView gotoTsureMdb(@RequestParam(required=true)String studentId) {
75 | return new ModelAndView("/teacher/tsuremdb.html?studentId="+studentId);
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tstudentlist2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
24 |
44 |
45 |
46 |
47 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/ProjectService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import java.util.List;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.context.annotation.Scope;
6 | import org.springframework.context.annotation.ScopedProxyMode;
7 | import org.springframework.stereotype.Service;
8 | import org.springframework.transaction.annotation.Propagation;
9 | import org.springframework.transaction.annotation.Transactional;
10 | import cn.lynu.mapper.ProjectMapper;
11 | import cn.lynu.mapper.TeacherMapper;
12 | import cn.lynu.model.Project;
13 |
14 | @Service
15 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
16 | public class ProjectService {
17 |
18 | @Autowired
19 | private ProjectMapper projectMapper;
20 | @Autowired
21 | private TeacherMapper teacherMapper;
22 |
23 | @Transactional(propagation=Propagation.SUPPORTS)
24 | public List getProjectListByTeacherId(String teacherId){
25 | return projectMapper.getProjectListByTeacherId(teacherId);
26 | }
27 |
28 | @Transactional(propagation=Propagation.SUPPORTS)
29 | public Project getProjectByStudentId(String studentId) {
30 | return projectMapper.getProjectByStudentId(studentId);
31 | }
32 |
33 | @Transactional(propagation=Propagation.REQUIRED)
34 | public boolean updateStudentIdByProjectId(String studentId,String projectId) {
35 | return projectMapper.updateProjectByStudentId(studentId, projectId);
36 | }
37 |
38 | @Transactional(propagation=Propagation.REQUIRED)
39 | public boolean updateNoStudent(String projectId) {
40 | return projectMapper.updateNoStudent(projectId);
41 | }
42 |
43 | @Transactional(propagation=Propagation.SUPPORTS)
44 | public int getCountProjectNum() {
45 | return projectMapper.getCountProjectNum();
46 | }
47 |
48 | @Transactional(propagation=Propagation.SUPPORTS)
49 | public int thisTeacherYesProjectNum(String teacherId) {
50 | return projectMapper.thisTeacherYesProjectNum(teacherId);
51 | }
52 |
53 | @Transactional(propagation=Propagation.REQUIRED)
54 | public boolean insertSelective(Project project,String teacherId) {
55 | if(teacherMapper.addProjectAfter(teacherId)) {
56 | int num = projectMapper.insertSelective(project);
57 | if(num>0) {
58 | return true;
59 | }
60 | }
61 | return false;
62 | }
63 |
64 | @Transactional(propagation=Propagation.SUPPORTS)
65 | public List getProjectByTeacherId(String teacherId) {
66 | return projectMapper.getProjectByTeacherId(teacherId);
67 | }
68 |
69 | @Transactional(propagation=Propagation.REQUIRED)
70 | public boolean updateByPrimaryKeySelective(Project project) {
71 | int num = projectMapper.updateByPrimaryKeySelective(project);
72 | if(num>0) {
73 | return true;
74 | }
75 | return false;
76 | }
77 |
78 | }
79 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Teacher.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 | import java.util.List;
5 |
6 | public class Teacher implements Serializable{
7 | private static final long serialVersionUID = -7142905687688445947L;
8 |
9 | private String teacherId;
10 |
11 | private String teacherDescribe;
12 |
13 | private String teacherProjectNum;
14 |
15 | private String userId;
16 |
17 | private Integer deptId;
18 |
19 | private String zhicheng;
20 |
21 | //级联属性
22 | private User user;
23 |
24 | private Integer noChooseProject;
25 |
26 | private List projectList;
27 |
28 | private Dept dept;
29 |
30 |
31 | public Dept getDept() {
32 | return dept;
33 | }
34 |
35 | public void setDept(Dept dept) {
36 | this.dept = dept;
37 | }
38 |
39 | public String getTeacherId() {
40 | return teacherId;
41 | }
42 |
43 | public void setTeacherId(String teacherId) {
44 | this.teacherId = teacherId == null ? null : teacherId.trim();
45 | }
46 |
47 | public String getTeacherDescribe() {
48 | return teacherDescribe;
49 | }
50 |
51 | public void setTeacherDescribe(String teacherDescribe) {
52 | this.teacherDescribe = teacherDescribe == null ? null : teacherDescribe.trim();
53 | }
54 |
55 | public String getTeacherProjectNum() {
56 | return teacherProjectNum;
57 | }
58 |
59 | public void setTeacherProjectNum(String teacherProjectNum) {
60 | this.teacherProjectNum = teacherProjectNum == null ? null : teacherProjectNum.trim();
61 | }
62 |
63 | public String getUserId() {
64 | return userId;
65 | }
66 |
67 | public void setUserId(String userId) {
68 | this.userId = userId == null ? null : userId.trim();
69 | }
70 |
71 | public Integer getDeptId() {
72 | return deptId;
73 | }
74 |
75 | public void setDeptId(Integer deptId) {
76 | this.deptId = deptId;
77 | }
78 |
79 | public User getUser() {
80 | return user;
81 | }
82 |
83 | public void setUser(User user) {
84 | this.user = user;
85 | }
86 |
87 | public Integer getNoChooseProject() {
88 | return noChooseProject;
89 | }
90 |
91 | public void setNoChooseProject(Integer noChooseProject) {
92 | this.noChooseProject = noChooseProject;
93 | }
94 |
95 | public List getProjectList() {
96 | return projectList;
97 | }
98 |
99 | public void setProjectList(List projectList) {
100 | this.projectList = projectList;
101 | }
102 |
103 | public String getZhicheng() {
104 | return zhicheng;
105 | }
106 |
107 | public void setZhicheng(String zhicheng) {
108 | this.zhicheng = zhicheng;
109 | }
110 |
111 | }
--------------------------------------------------------------------------------
/src/main/webapp/student/score.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 学生界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
得分信息
24 |
25 |
26 |
27 |
28 | | 指导老师打分 |
29 | 答辩组打分 |
30 | 总分 |
31 |
32 |
33 | |
34 | |
35 | |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/main/webapp/student/js/app.js:
--------------------------------------------------------------------------------
1 | $(function() {
2 |
3 | var $fullText = $('.admin-fullText');
4 | $('#admin-fullscreen').on('click', function() {
5 | $.AMUI.fullscreen.toggle();
6 | });
7 |
8 | $(document).on($.AMUI.fullscreen.raw.fullscreenchange, function() {
9 | $fullText.text($.AMUI.fullscreen.isFullscreen ? '退出全屏' : '开启全屏');
10 | });
11 |
12 | $('.tpl-switch').find('.tpl-switch-btn-view').on('click', function() {
13 | $(this).prev('.tpl-switch-btn').prop("checked", function() {
14 | if ($(this).is(':checked')) {
15 | return false
16 | } else {
17 | return true
18 | }
19 | })
20 |
21 | })
22 | })
23 | // ==========================
24 | // 侧边导航下拉列表
25 | // ==========================
26 |
27 | $('.tpl-left-nav-link-list').on('click', function() {
28 | $(this).siblings('.tpl-left-nav-sub-menu').slideToggle(80)
29 | .end()
30 | .find('.tpl-left-nav-more-ico').toggleClass('tpl-left-nav-more-ico-rotate');
31 | })
32 | // ==========================
33 | // 头部导航隐藏菜单
34 | // ==========================
35 |
36 | $('.tpl-header-nav-hover-ico').on('click', function() {
37 | $('.tpl-left-nav').toggle();
38 | $('.tpl-content-wrapper').toggleClass('tpl-content-wrapper-hover');
39 | })
40 |
41 | //禁用提交按钮(按钮id 成功信息)
42 | function disableBtn(id,text){
43 | $('#'+id).text(text);
44 | $('#'+id).removeClass('am-btn-primary').addClass('am-disabled am-btn-danger');
45 | }
46 |
47 | $(function(){
48 |
49 | //点击文件上传按钮出现模态框
50 | $('#open_file_btn').click(function() {
51 | $.ajax({
52 | url: "/graduation/lunwenController/getLunwenBySid",
53 | type: 'get',
54 | dataType:'json',
55 | success: function(data){
56 | if(!isNull(data.lunwenId)){
57 | if(!isNull(data.lunwenStatus)&&data.lunwenStatus==1){
58 | console.log(data.lunwenStatus);
59 | disableBtn('lunwen_uploadBtn','已审核');
60 | return;
61 | }
62 | $('#lunwen_uploadBtn').removeAttr('disabled').removeClass('am-disabled am-btn-danger').addClass('am-btn-primary');
63 | $('#lunwen_uploadBtn').text('更新(上次提交的论文是: '+data.lunwenName.substring(0,30)+')');
64 | }
65 | }
66 | });
67 | $('#file-modal').modal('open');
68 | });
69 |
70 | //显示上传文件名
71 | $('#doc-ipt-file-2').on(
72 | 'change',
73 | function() {
74 | var fileNames = '';
75 | $.each(this.files, function() {
76 | fileNames += '' + this.name
77 | + ' ';
78 | });
79 | $('#file-list').html(fileNames);
80 | });
81 |
82 | });
83 |
84 | function isNull(data) {
85 | if(data==null||data==''||data==' '||data=='undefined'){
86 | return true;
87 | }
88 | return false;
89 | }
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tstudentlist.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
24 |
44 |
45 |
46 |
47 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/main/webapp/student/sdownload.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 学生界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
下载表格
24 |
25 |
26 |
27 |
28 | | 开题报告表 |
29 |
30 |
34 | |
35 |
36 |
37 | | 中期检查反馈表 |
38 |
39 |
43 | |
44 |
45 |
46 | | 免答辩申请表 |
47 |
48 |
52 | |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tstudentlunwen.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
审核论文
24 |
25 |
26 | - 学生列表
27 | - 论文
28 |
29 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/util/WordUtils.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.util;
2 |
3 | import java.io.File;
4 | import java.io.FileInputStream;
5 | import java.io.FileOutputStream;
6 | import java.io.IOException;
7 | import java.io.InputStream;
8 | import java.io.OutputStreamWriter;
9 | import java.io.Writer;
10 | import java.net.URLEncoder;
11 | import java.util.Map;
12 | import javax.servlet.ServletOutputStream;
13 | import javax.servlet.http.HttpServletRequest;
14 | import javax.servlet.http.HttpServletResponse;
15 | import freemarker.template.Configuration;
16 | import freemarker.template.Template;
17 |
18 | public class WordUtils {
19 | //配置信息,代码本身写的还是很可读的,就不过多注解了
20 |
21 | //这里注意的是利用WordUtils的类加载器动态获得模板文件的位置
22 |
23 | public static void exportMillCertificateWord(HttpServletRequest request, HttpServletResponse response,
24 | Map map, String templeteName, String fileName) throws IOException {
25 | //Template freemarkerTemplate = configuration.getTemplate("开题报告.ftl");
26 | Configuration configuration = new Configuration();
27 | configuration.setDefaultEncoding("utf-8");
28 |
29 | String ss=request.getSession().getServletContext().getRealPath("/WEB-INF/templete/");
30 | try {
31 | configuration.setDirectoryForTemplateLoading(new File(ss));
32 | } catch (IOException e) {
33 | e.printStackTrace();
34 | }
35 | Template freemarkerTemplate = configuration.getTemplate(templeteName);
36 | File file = null;
37 | InputStream fin = null;
38 | ServletOutputStream out = null;
39 | try {
40 | // 调用工具类的createDoc方法生成Word文档
41 | file = createDoc(map,freemarkerTemplate);
42 | fin = new FileInputStream(file);
43 |
44 | // response.setCharacterEncoding("utf-8");
45 | response.setContentType("application/msword;charset=utf-8");
46 | // 设置浏览器以下载的方式处理该文件名
47 | // String fileName = "开题报告.doc";
48 | response.setHeader("Content-Disposition", "attachment;filename="
49 | // .concat(String.valueOf(URLEncoder.encode(fileName, "UTF-8"))));
50 | .concat(String.valueOf(Utils.filenameEncoding(fileName, request))));
51 |
52 | out = response.getOutputStream();
53 | byte[] buffer = new byte[512]; // 缓冲区
54 | int bytesToRead = -1;
55 | // 通过循环将读入的Word文件的内容输出到浏览器中
56 | while((bytesToRead = fin.read(buffer)) != -1) {
57 | out.write(buffer, 0, bytesToRead);
58 | }
59 | } finally {
60 | if(fin != null) fin.close();
61 | if(out != null) out.close();
62 | if(file != null) file.delete(); // 删除临时文件
63 | }
64 | }
65 |
66 | private static File createDoc(Map, ?> dataMap, Template template) {
67 | String name = "test.doc";
68 | File f = new File(name);
69 | Template t = template;
70 | try {
71 | // 这个地方不能使用FileWriter因为需要指定编码类型否则生成的Word文档会因为有无法识别的编码而无法打开
72 | Writer w = new OutputStreamWriter(new FileOutputStream(f), "utf-8");
73 | t.process(dataMap, w);
74 | w.close();
75 | } catch (Exception ex) {
76 | ex.printStackTrace();
77 | throw new RuntimeException(ex);
78 | }
79 | return f;
80 | }
81 | }
--------------------------------------------------------------------------------
/src/main/webapp/js/autosize.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | Autosize 4.0.0
3 | license: MIT
4 | http://www.jacklmoore.com/autosize
5 | */
6 | !function(e,t){if("function"==typeof define&&define.amd)define(["exports","module"],t);else if("undefined"!=typeof exports&&"undefined"!=typeof module)t(exports,module);else{var n={exports:{}};t(n.exports,n),e.autosize=n.exports}}(this,function(e,t){"use strict";function n(e){function t(){var t=window.getComputedStyle(e,null);"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),s="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(s)&&(s=0),l()}function n(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function o(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function r(){var t=e.style.height,n=o(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="";var i=e.scrollHeight+s;return 0===e.scrollHeight?void(e.style.height=t):(e.style.height=i+"px",u=e.clientWidth,n.forEach(function(e){e.node.scrollTop=e.scrollTop}),void(r&&(document.documentElement.scrollTop=r)))}function l(){r();var t=Math.round(parseFloat(e.style.height)),o=window.getComputedStyle(e,null),i="content-box"===o.boxSizing?Math.round(parseFloat(o.height)):e.offsetHeight;if(i!==t?"hidden"===o.overflowY&&(n("scroll"),r(),i="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==o.overflowY&&(n("hidden"),r(),i="content-box"===o.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),a!==i){a=i;var l=d("autosize:resized");try{e.dispatchEvent(l)}catch(e){}}}if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var s=null,u=e.clientWidth,a=null,c=function(){e.clientWidth!==u&&l()},p=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",l,!1),e.removeEventListener("keyup",l,!1),e.removeEventListener("autosize:destroy",p,!1),e.removeEventListener("autosize:update",l,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),i.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",p,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",l,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",l,!1),e.addEventListener("autosize:update",l,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",i.set(e,{destroy:p,update:l}),t()}}function o(e){var t=i.get(e);t&&t.destroy()}function r(e){var t=i.get(e);t&&t.update()}var i="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,o){e.indexOf(n)===-1&&(e.push(n),t.push(o))},delete:function(n){var o=e.indexOf(n);o>-1&&(e.splice(o,1),t.splice(o,1))}}}(),d=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){d=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(l=function(e){return e},l.destroy=function(e){return e},l.update=function(e){return e}):(l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return n(e,t)}),e},l.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e}),t.exports=l});
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tstudentinfo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
查看学生信息
24 |
47 |
48 |
49 |
50 |
51 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tmdbstudentlist.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
申请免答辩的学生
24 |
47 |
48 |
49 |
50 |
51 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/StudentService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.context.annotation.Scope;
5 | import org.springframework.context.annotation.ScopedProxyMode;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.transaction.annotation.Propagation;
8 | import org.springframework.transaction.annotation.Transactional;
9 | import cn.lynu.mapper.StudentMapper;
10 | import cn.lynu.model.Student;
11 | import cn.lynu.model.User;
12 |
13 | @Service
14 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
15 | public class StudentService {
16 |
17 | @Autowired
18 | private StudentMapper studentMapper;
19 |
20 | @Transactional(propagation=Propagation.SUPPORTS)
21 | public Student getStudentByUserId(String userId) {
22 | return studentMapper.getStudentByUserId(userId);
23 | }
24 |
25 | @Transactional(propagation=Propagation.SUPPORTS)
26 | public User getUserByStudentId(String studentId) {
27 | return studentMapper.getUserByStudentId(studentId);
28 | }
29 |
30 | @Transactional(propagation=Propagation.REQUIRED)
31 | public boolean updateProjectNum(String studentId,String teacherId,String projectId) {
32 | return studentMapper.updateProjectNum(studentId,teacherId,projectId);
33 | }
34 |
35 | @Transactional(propagation=Propagation.SUPPORTS)
36 | public Student projectNum(String studentId) {
37 | return studentMapper.getStudentByStudentId(studentId);
38 | }
39 |
40 | @Transactional(propagation=Propagation.SUPPORTS)
41 | public boolean updateNoProjectNum(String studentId) {
42 | return studentMapper.updateNoProjectNum(studentId);
43 | }
44 |
45 | @Transactional(propagation=Propagation.SUPPORTS)
46 | public Student getStuAndProject(String studentId) {
47 | return studentMapper.getStuAndProject(studentId);
48 | }
49 |
50 | @Transactional(propagation=Propagation.SUPPORTS)
51 | public Student getStuAndProjectAndTeacher(String studentId) {
52 | return studentMapper.getStuAndProjectAndTeacher(studentId);
53 | }
54 |
55 | @Transactional(propagation=Propagation.REQUIRED)
56 | public boolean updateTeacherId(String teacherId, String studentId) {
57 | return studentMapper.updateTeacherId(teacherId,studentId);
58 | }
59 |
60 | @Transactional(propagation=Propagation.SUPPORTS)
61 | public int thisTeacherUndefinedStudentNum(String teacherId) {
62 | return studentMapper.thisTeacherUndefinedStudentNum(teacherId);
63 | }
64 |
65 | @Transactional(propagation=Propagation.SUPPORTS)
66 | public Student getStudentAndKtbgBySid(String studentId) {
67 | return studentMapper.getStudentAndKtbgBySid(studentId);
68 | }
69 |
70 | @Transactional(propagation=Propagation.SUPPORTS)
71 | public Student getStudentAndZqjcBySid(String studentId) {
72 | return studentMapper.getStudentAndZqjcBySid(studentId);
73 | }
74 |
75 | /* @Transactional(propagation=Propagation.REQUIRED)
76 | public boolean updateStudentInfo(Student student) {
77 | int bool = userMapper.updateByPrimaryKeySelective(student.getUser());
78 | if(bool>0) {
79 | return true;
80 | }
81 | return false;
82 | }*/
83 |
84 | @Transactional(propagation=Propagation.REQUIRED)
85 | public boolean updateStudent(Student student) {
86 | if(studentMapper.updateByPrimaryKeySelective(student)>0) {
87 | return true;
88 | }
89 | return false;
90 | }
91 |
92 | @Transactional(propagation=Propagation.SUPPORTS)
93 | public Integer getThisStudentScore(String studentId) {
94 | Integer score=studentMapper.getThisStudentScore(studentId);
95 | if(score!=null) {
96 | return score;
97 | }
98 | return -1;
99 | }
100 |
101 | @Transactional(propagation=Propagation.SUPPORTS)
102 | public Student getStudentAndMdbBySid(String studentId) {
103 | Student student=studentMapper.getStudentAndMdbBySid(studentId);
104 | if(student!=null) {
105 | return student;
106 | }
107 | return null;
108 | }
109 |
110 | }
111 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/service/TeacherService.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.service;
2 |
3 | import java.util.List;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.context.annotation.Scope;
6 | import org.springframework.context.annotation.ScopedProxyMode;
7 | import org.springframework.stereotype.Service;
8 | import org.springframework.transaction.annotation.Propagation;
9 | import org.springframework.transaction.annotation.Transactional;
10 | import cn.lynu.mapper.StudentMapper;
11 | import cn.lynu.mapper.TeacherMapper;
12 | import cn.lynu.mapper.UserMapper;
13 | import cn.lynu.mapper.YansouTeacherMapper;
14 | import cn.lynu.mapper.YansouTeamMapper;
15 | import cn.lynu.model.Student;
16 | import cn.lynu.model.Teacher;
17 | import cn.lynu.model.User;
18 | import cn.lynu.model.YansouTeacher;
19 | import cn.lynu.model.YansouTeam;
20 |
21 | @Service
22 | @Scope(value="singleton",proxyMode=ScopedProxyMode.TARGET_CLASS)
23 | public class TeacherService {
24 |
25 | @Autowired
26 | private TeacherMapper teacherMapper;
27 | @Autowired
28 | private StudentMapper studentMapper;
29 | @Autowired
30 | private UserMapper userMapper;
31 | @Autowired
32 | private YansouTeamMapper yansouTeamMapper;
33 | @Autowired
34 | private YansouTeacherMapper yansouTeacherMapper;
35 |
36 | @Transactional(propagation=Propagation.SUPPORTS)
37 | public List getSubTeacher(){
38 | return teacherMapper.getAllTeacher();
39 | }
40 |
41 | @Transactional(propagation=Propagation.SUPPORTS)
42 | public List findTeacherByTeacherName(String teacherName){
43 | return teacherMapper.findTeacherByTeacherName(teacherName);
44 | }
45 |
46 | @Transactional(propagation=Propagation.SUPPORTS)
47 | public Teacher findTeacherAndProject(String teacherId) {
48 | return teacherMapper.findTeacherAndProject(teacherId);
49 | }
50 |
51 | @Transactional(propagation=Propagation.SUPPORTS)
52 | public Teacher findTeacherByUserId(String userId) {
53 | return teacherMapper.findTeacherByUserId(userId);
54 | }
55 |
56 | @Transactional(propagation=Propagation.SUPPORTS)
57 | public List getStudentByTeacherId(String teacherId) {
58 | return studentMapper.getStudentByTeacherId(teacherId);
59 | }
60 |
61 | @Transactional(propagation=Propagation.SUPPORTS)
62 | public Teacher findTeacherByTeacherId(String teacherId) {
63 | return teacherMapper.findTeacherByTeacherId(teacherId);
64 | }
65 |
66 | @Transactional(propagation=Propagation.REQUIRED)
67 | public boolean updateTeacherInfo(Teacher teacher) {
68 | int bool1 = teacherMapper.updateByPrimaryKeySelective(teacher);
69 | int bool2 = userMapper.updateByPrimaryKeySelective(teacher.getUser());
70 | if(bool1>0&&bool2>0) {
71 | return true;
72 | }
73 | return false;
74 | }
75 |
76 | @Transactional(propagation=Propagation.SUPPORTS)
77 | public YansouTeam getTeacherYansouInfo(String teacherId) {
78 | YansouTeacher yansouTeacher = yansouTeacherMapper.selectYansouTeacherByTeacherId(teacherId);
79 | return yansouTeamMapper.selectYanSouInfoByid(yansouTeacher.getYansouTeamId());
80 | }
81 |
82 | @Transactional(propagation=Propagation.SUPPORTS)
83 | public List getStudentByTeacherId2(String teacherId) {
84 | return studentMapper.getStudentByTeacherId2(teacherId);
85 | }
86 |
87 | @Transactional(propagation=Propagation.SUPPORTS)
88 | public List getYansouTeamStu(String teacherId) {
89 | YansouTeacher yansouTeacher = yansouTeacherMapper.selectYansouTeacherByTeacherId(teacherId);
90 | return studentMapper.findStudentsByYansouId(yansouTeacher.getYansouTeamId());
91 | }
92 |
93 | @Transactional(propagation=Propagation.SUPPORTS)
94 | public YansouTeacher thisTeacherisLeader(User user) {
95 | Teacher teacher = teacherMapper.findTeacherByUserId(user.getUserId());
96 | if(teacher!=null) {
97 | return yansouTeacherMapper.selectYansouTeacherByTeacherId(teacher.getTeacherId());
98 | }
99 | return null;
100 | }
101 |
102 | }
103 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/ProjectController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import java.util.List;
4 | import javax.servlet.http.HttpSession;
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Controller;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RequestMethod;
9 | import org.springframework.web.bind.annotation.RequestParam;
10 | import org.springframework.web.bind.annotation.ResponseBody;
11 | import com.github.pagehelper.PageHelper;
12 | import com.github.pagehelper.PageInfo;
13 | import cn.lynu.model.Project;
14 | import cn.lynu.model.Teacher;
15 | import cn.lynu.model.User;
16 | import cn.lynu.service.ProjectService;
17 | import cn.lynu.service.StudentService;
18 | import cn.lynu.service.TeacherService;
19 |
20 | @Controller
21 | @RequestMapping("/projectController")
22 | public class ProjectController {
23 |
24 | @Autowired
25 | private ProjectService projectService;
26 | @Autowired
27 | private TeacherService teacherService;
28 | @Autowired
29 | private StudentService studentService;
30 |
31 | @ResponseBody
32 | @RequestMapping(value="/getProjectListByTeacherId",method=RequestMethod.GET)
33 | public PageInfo getProjectListByTeacherId(@RequestParam(required=true)String teacherId,
34 | @RequestParam(defaultValue="1")int pageNum,@RequestParam(defaultValue="8")int pageSize) {
35 | PageHelper.startPage(pageNum, pageSize);
36 | List list = projectService.getProjectListByTeacherId(teacherId);
37 | return new PageInfo<>(list);
38 | }
39 |
40 | @ResponseBody
41 | @RequestMapping(value="/getCountProjectNum",method=RequestMethod.GET)
42 | public int getCountProjectNum() {
43 | return projectService.getCountProjectNum();
44 | }
45 |
46 | @ResponseBody
47 | @RequestMapping(value="/thisTeacherYesProjectNum",method=RequestMethod.GET)
48 | public int thisTeacherYesProjectNum(HttpSession session) {
49 | User user=(User) session.getAttribute("user");
50 | if(user!=null) {
51 | Teacher teacher = teacherService.findTeacherByUserId(user.getUserId());
52 | if(teacher!=null) {
53 | String teacherId = teacher.getTeacherId();
54 | return projectService.thisTeacherYesProjectNum(teacherId);
55 | }
56 | }
57 | return 0;
58 | }
59 |
60 | @ResponseBody
61 | @RequestMapping(value="/thisTeacherUndefinedStudentNum",method=RequestMethod.GET)
62 | public int thisTeacherUndefinedStudentNum(HttpSession session) {
63 | User user=(User) session.getAttribute("user");
64 | if(user!=null) {
65 | Teacher teacher = teacherService.findTeacherByUserId(user.getUserId());
66 | if(teacher!=null) {
67 | String teacherId = teacher.getTeacherId();
68 | return studentService.thisTeacherUndefinedStudentNum(teacherId);
69 | }
70 | }
71 | return 0;
72 | }
73 |
74 | /**
75 | * 添加与更新方法
76 | * @param project
77 | * @param session
78 | * @return
79 | */
80 | @ResponseBody
81 | @RequestMapping(value="/insertSelective",method=RequestMethod.POST)
82 | public boolean insertSelective(Project project,HttpSession session) {
83 | User user=(User) session.getAttribute("user");
84 | if(user!=null) {
85 | Teacher teacher = teacherService.findTeacherByUserId(user.getUserId());
86 | if(teacher!=null) {
87 | project.setTeacherId(teacher.getTeacherId());
88 | if(project.getProjectId()!=null) {
89 | return projectService.updateByPrimaryKeySelective(project);
90 | }else {
91 | return projectService.insertSelective(project,teacher.getTeacherId());
92 | }
93 | }
94 | }
95 | return false;
96 | }
97 |
98 | @ResponseBody
99 | @RequestMapping(value="/getProjectByTeacherId")
100 | public List getProjectByTeacherId(HttpSession session){
101 | User user=(User) session.getAttribute("user");
102 | if(user!=null) {
103 | Teacher teacher = teacherService.findTeacherByUserId(user.getUserId());
104 | if(teacher!=null) {
105 | return projectService.getProjectByTeacherId(teacher.getTeacherId());
106 | }
107 | }
108 | return null;
109 | }
110 |
111 | }
112 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tcontent.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 内容概要
24 |
25 | - 首页
26 | - 内容
27 |
28 |
29 |
66 |
68 |
69 |
70 | 相关提示 :
71 |
72 |
73 | -
74 | 教师可以申报8个毕业论文课题,请在规定时间内完成申报
75 | -
76 | 如需修改已申报的课题,请在申报课题阶段进行修改,注意当前所处阶段
77 | -
78 | 学生选题后,老师需在【确认选题】处确认选择学生以完成双选,如果超时未选择,将默认该学生选择成功
79 | -
80 | 教师可以在【流程管理】处对学生的开题报告,论文,免答辩申请给出审核意见,对学生成绩进行评定
81 | -
82 | 使用原始密码登录的教师,请尽快更改密码
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
117 |
118 |
119 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/UserController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import java.io.File;
4 | import javax.servlet.http.HttpServletRequest;
5 | import javax.servlet.http.HttpSession;
6 |
7 |
8 |
9 | import org.springframework.beans.factory.annotation.Autowired;
10 | import org.springframework.stereotype.Controller;
11 | import org.springframework.web.bind.annotation.RequestMapping;
12 | import org.springframework.web.bind.annotation.RequestMethod;
13 | import org.springframework.web.bind.annotation.RequestParam;
14 | import org.springframework.web.bind.annotation.ResponseBody;
15 | import org.springframework.web.multipart.MultipartFile;
16 | import cn.lynu.model.User;
17 | import cn.lynu.service.UserService;
18 | import cn.lynu.util.Utils;
19 |
20 | @Controller
21 | @RequestMapping("/userController")
22 | public class UserController {
23 |
24 | @Autowired
25 | private UserService userService;
26 |
27 | @ResponseBody
28 | @RequestMapping(value="/isuser",method=RequestMethod.POST)
29 | public boolean isUser(String account) {
30 | return userService.isUser(account);
31 | }
32 |
33 | @ResponseBody
34 | @RequestMapping(value="/ispassword",method=RequestMethod.POST)
35 | public boolean ispassword(@RequestParam("password")String password,HttpSession session) {
36 | User user = (User) session.getAttribute("user");
37 | if(user!=null) {
38 | return userService.ispassword(Utils.md5(password),user.getUserId());
39 | }
40 | return false;
41 | }
42 |
43 | @ResponseBody
44 | @RequestMapping(value="/login",method=RequestMethod.POST)
45 | public String login(HttpSession session,String randStr,String account,String password) {
46 | String randStr2=(String) session.getAttribute("randStr");
47 | if(randStr2!=null&&randStr2.equals(randStr)) {
48 | password=Utils.md5(password);
49 | return toUI(session,account,password);
50 | }else {
51 | return "randStrError";
52 | }
53 | }
54 |
55 | private String toUI(HttpSession session,String account,String password) {
56 | User user = userService.login(account, password);
57 | if(user!=null) {
58 | if(2==user.getUserRoles()) {
59 | session.setAttribute("user", user);
60 | return "student/sindex.html";
61 | }
62 | if(1==user.getUserRoles()) {
63 | session.setAttribute("user", user);
64 | return "teacher/tindex.html";
65 | }
66 | }
67 | return "passwordError";
68 | }
69 |
70 | @RequestMapping("/logout")
71 | public String logout(HttpSession session) {
72 | session.removeAttribute("user");
73 | return "redirect:http://localhost:8080/graduation/login.html";
74 | }
75 |
76 |
77 | @ResponseBody
78 | @RequestMapping(value="/updateInfo",method=RequestMethod.POST)
79 | public boolean updateStudentInfo(User user,
80 | @RequestParam(value="portrait",required=false)MultipartFile portrait,HttpServletRequest request) {
81 | if(portrait!=null&&portrait.getSize()>0) {
82 | if(portrait.getSize()>(10*1024*1024)) {
83 | return false;
84 | }
85 | String filename=portrait.getOriginalFilename();
86 | String dbPath=request.getServletContext().getContextPath()+"/portrait/"+user.getUserId();
87 | String basePath=request.getServletContext().getRealPath("/portrait/"+user.getUserId());
88 | new File(basePath).mkdir();
89 | File portraitFile=new File(basePath,filename);
90 | try {
91 | portrait.transferTo(portraitFile);
92 | user.setUserPortrait(dbPath+"/"+filename);
93 | return userService.updateUserInfo(user);
94 | } catch (Exception e) {
95 | e.printStackTrace();
96 | }
97 |
98 | }
99 | return userService.updateUserInfo(user);
100 | }
101 |
102 | @ResponseBody
103 | @RequestMapping(value="/updatePwd",method=RequestMethod.PUT)
104 | public boolean updateStudentPwd(User user,HttpSession session) {
105 | String password=user.getUserPassword();
106 | if(password!=null&&!password.isEmpty()) {
107 | user.setUserPassword(Utils.md5(password));
108 | boolean bool = userService.updateUserInfo(user);
109 | if(bool==true) {
110 | session.removeAttribute("user");
111 | return true;
112 | }
113 | }
114 | return false;
115 | }
116 |
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/src/main/webapp/student/scontent.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 学生界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 内容概要
24 |
25 | - 首页
26 | - 内容
27 |
28 |
29 |
66 |
68 |
69 |
70 | 相关提示 :
71 |
72 |
73 | -
74 | 学生在选择课题阶段,只能选择一位导师的一个课题。所以请尽早与导师联系,导师审核同意才会被选上
75 | -
76 | 如果选择某导师的课题未被通过或已经被他人选择,请尽快选择其他课题,注意及时关注个人选题状态
77 | -
78 | 请按时填写开题报告,中期检查反馈表,系统验收表和上传论文
79 | -
80 | 所有的修改项,如果已经被审核则不再允许修改
81 | -
82 | 使用原始密码登录的同学,请尽快更改密码
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
122 |
123 |
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/model/Student.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.model;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Student implements Serializable{
6 | private static final long serialVersionUID = 6462341393652342296L;
7 |
8 | private String studentId;
9 |
10 | private Integer projectNum;
11 |
12 | private Integer goodBoy;
13 |
14 | private Integer projectId;
15 |
16 | private String teacherId;
17 |
18 | private String userId;
19 |
20 | private Integer classId;
21 |
22 | private Integer studentScore;
23 |
24 | private String teacherEvaluate;
25 |
26 | private String yansouTeamId;
27 |
28 | //级联属性
29 | private User user;
30 | private Project project;
31 | private ClassInfo classInfo;
32 | private Teacher teacher;
33 | private Ktbg ktbg;
34 | private Zqjc zqjc;
35 | private Mdb mdb;
36 | private Lunwen lunwen;
37 | private DaBian daBian;
38 |
39 |
40 | public DaBian getDaBian() {
41 | return daBian;
42 | }
43 |
44 | public void setDaBian(DaBian daBian) {
45 | this.daBian = daBian;
46 | }
47 |
48 | public Lunwen getLunwen() {
49 | return lunwen;
50 | }
51 |
52 | public void setLunwen(Lunwen lunwen) {
53 | this.lunwen = lunwen;
54 | }
55 |
56 | public Mdb getMdb() {
57 | return mdb;
58 | }
59 |
60 | public void setMdb(Mdb mdb) {
61 | this.mdb = mdb;
62 | }
63 |
64 | public String getYansouTeamId() {
65 | return yansouTeamId;
66 | }
67 |
68 | public void setYansouTeamId(String yansouTeamId) {
69 | this.yansouTeamId = yansouTeamId;
70 | }
71 |
72 | public Zqjc getZqjc() {
73 | return zqjc;
74 | }
75 |
76 | public void setZqjc(Zqjc zqjc) {
77 | this.zqjc = zqjc;
78 | }
79 |
80 | public Ktbg getKtbg() {
81 | return ktbg;
82 | }
83 |
84 | public void setKtbg(Ktbg ktbg) {
85 | this.ktbg = ktbg;
86 | }
87 |
88 | public Teacher getTeacher() {
89 | return teacher;
90 | }
91 |
92 | public void setTeacher(Teacher teacher) {
93 | this.teacher = teacher;
94 | }
95 |
96 | public ClassInfo getClassInfo() {
97 | return classInfo;
98 | }
99 |
100 | public void setClassInfo(ClassInfo classInfo) {
101 | this.classInfo = classInfo;
102 | }
103 |
104 | public Project getProject() {
105 | return project;
106 | }
107 |
108 | public void setProject(Project project) {
109 | this.project = project;
110 | }
111 |
112 | public String getStudentId() {
113 | return studentId;
114 | }
115 |
116 | public void setStudentId(String studentId) {
117 | this.studentId = studentId == null ? null : studentId.trim();
118 | }
119 |
120 | public Integer getProjectNum() {
121 | return projectNum;
122 | }
123 |
124 | public void setProjectNum(Integer projectNum) {
125 | this.projectNum = projectNum;
126 | }
127 |
128 | public Integer getGoodBoy() {
129 | return goodBoy;
130 | }
131 |
132 | public void setGoodBoy(Integer goodBoy) {
133 | this.goodBoy = goodBoy;
134 | }
135 |
136 | public Integer getProjectId() {
137 | return projectId;
138 | }
139 |
140 | public void setProjectId(Integer projectId) {
141 | this.projectId = projectId;
142 | }
143 |
144 | public String getTeacherId() {
145 | return teacherId;
146 | }
147 |
148 | public void setTeacherId(String teacherId) {
149 | this.teacherId = teacherId == null ? null : teacherId.trim();
150 | }
151 |
152 | public String getUserId() {
153 | return userId;
154 | }
155 |
156 | public void setUserId(String userId) {
157 | this.userId = userId == null ? null : userId.trim();
158 | }
159 |
160 | public Integer getClassId() {
161 | return classId;
162 | }
163 |
164 | public void setClassId(Integer classId) {
165 | this.classId = classId;
166 | }
167 |
168 |
169 | public Integer getStudentScore() {
170 | return studentScore;
171 | }
172 |
173 | public void setStudentScore(Integer studentScore) {
174 | this.studentScore = studentScore;
175 | }
176 |
177 | public String getTeacherEvaluate() {
178 | return teacherEvaluate;
179 | }
180 |
181 | public void setTeacherEvaluate(String teacherEvaluate) {
182 | this.teacherEvaluate = teacherEvaluate == null ? null : teacherEvaluate.trim();
183 | }
184 |
185 | public User getUser() {
186 | return user;
187 | }
188 |
189 | public void setUser(User user) {
190 | this.user = user;
191 | }
192 |
193 |
194 | }
--------------------------------------------------------------------------------
/src/main/java/cn/lynu/controller/LunwenController.java:
--------------------------------------------------------------------------------
1 | package cn.lynu.controller;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.nio.file.Files;
6 | import java.nio.file.Path;
7 | import java.nio.file.Paths;
8 | import java.util.Date;
9 | import javax.servlet.http.HttpServletRequest;
10 | import javax.servlet.http.HttpServletResponse;
11 | import javax.servlet.http.HttpSession;
12 | import org.springframework.beans.factory.annotation.Autowired;
13 | import org.springframework.stereotype.Controller;
14 | import org.springframework.web.bind.annotation.RequestMapping;
15 | import org.springframework.web.bind.annotation.RequestMethod;
16 | import org.springframework.web.bind.annotation.RequestParam;
17 | import org.springframework.web.bind.annotation.ResponseBody;
18 | import org.springframework.web.multipart.MultipartFile;
19 | import cn.lynu.model.Lunwen;
20 | import cn.lynu.model.Student;
21 | import cn.lynu.model.User;
22 | import cn.lynu.service.LunwenService;
23 | import cn.lynu.service.StudentService;
24 | import cn.lynu.util.Utils;
25 |
26 | @Controller
27 | @RequestMapping("/lunwenController")
28 | public class LunwenController {
29 |
30 | @Autowired
31 | private LunwenService lunwenService;
32 | @Autowired
33 | private StudentService studentService;
34 |
35 | @RequestMapping("/gotoTstudentlunwen")
36 | public String gotoTstudentlunwen(String studentId) {
37 | return "redirect:http://localhost:8080/graduation/teacher/tstudentlunwen.html?studentId="+studentId;
38 | }
39 |
40 | @ResponseBody
41 | @RequestMapping("/getLunwenBySid")
42 | public Lunwen getLunwenBySid(String studentId,HttpSession session) {
43 | if(studentId!=null&&!studentId.isEmpty()) {
44 | Lunwen lunwen = lunwenService.getLunwenBySid(studentId);
45 | if(lunwen!=null) {
46 | return lunwen;
47 | }
48 | }else {
49 | User user = (User) session.getAttribute("user");
50 | if(user!=null) {
51 | Student student = studentService.getStudentByUserId(user.getUserId());
52 | Lunwen lunwen = lunwenService.getLunwenBySid(student.getStudentId());
53 | if(lunwen!=null) {
54 | return lunwen;
55 | }
56 | }
57 | }
58 | return new Lunwen();
59 | }
60 |
61 | @ResponseBody
62 | @RequestMapping(value="/upLunwenBySid",method=RequestMethod.PUT)
63 | public boolean upLunwenBySid(Lunwen lunwen) {
64 | return lunwenService.upLunwenBySid(lunwen);
65 | }
66 |
67 | @ResponseBody
68 | @RequestMapping(value="/upload_lunwen",method=RequestMethod.POST)
69 | public boolean saveProduct(@RequestParam(value="lunwen",required=true)MultipartFile lunwen,
70 | @RequestParam("userId")String userId,HttpServletRequest request) {
71 | if(lunwen!=null&&lunwen.getSize()>0) {
72 | if(lunwen.getSize()>(10*1024*1024)) {
73 | return false;
74 | }
75 | String filename = lunwen.getOriginalFilename();
76 | String basePath=request.getServletContext().getRealPath("/WEB-INF/lunwen/"+userId);
77 | new File(basePath).mkdir();
78 | File lunewenFile=new File(basePath,filename);
79 | try {
80 | HttpSession session = request.getSession();
81 | User user = (User) session.getAttribute("user");
82 | if(user!=null) {
83 | Student student = studentService.getStudentByUserId(userId);
84 | Lunwen lw=new Lunwen();
85 | lw.setLunwenDate(new Date());
86 | lw.setLunwenName(filename);
87 | lw.setLunwenPath(basePath+"/"+filename);
88 | lunwenService.insertOrUpdate(student.getStudentId(),lw);
89 | }else {
90 | return false;
91 | }
92 | //相同文件会覆盖
93 | lunwen.transferTo(lunewenFile);
94 | return true;
95 | } catch (Exception e) {
96 | e.printStackTrace();
97 | }
98 | }
99 | return false;
100 | }
101 |
102 | @RequestMapping("/downloadResource")
103 | public @ResponseBody void downloadResource(HttpServletResponse response,
104 | HttpServletRequest request,String studentId) throws Exception {
105 | if(studentId==null||studentId.isEmpty()) {
106 | return;
107 | }
108 | Lunwen lunwen = lunwenService.getLunwenBySid(studentId);
109 | if(lunwen==null) {
110 | return;
111 | }
112 | String dataDir=lunwen.getLunwenPath();
113 | String fileName=lunwen.getLunwenName();
114 | Path path=Paths.get(dataDir);
115 | if(Files.exists(path)) {
116 | response.setContentType("application/octet-stream");
117 | response.addHeader("Content-Disposition", "attachment;filename="+Utils.filenameEncoding(fileName, request));
118 | try {
119 | Files.copy(path, response.getOutputStream());
120 | } catch (IOException e) {
121 | e.printStackTrace();
122 | }
123 | }
124 | return;
125 | }
126 |
127 | }
128 |
--------------------------------------------------------------------------------
/src/main/webapp/js/login.js:
--------------------------------------------------------------------------------
1 | //刷新验证码
2 | $('#imgValidate').css('src',"/graduation/code.jsp?"+new Date());
3 | function refresh(){
4 | document.getElementById("imgValidate").src="/graduation/code.jsp?"+new Date();
5 | }
6 |
7 | $(function() {
8 |
9 | $('#imgValidate_a').click(function () {
10 | refresh();
11 | return false;
12 | });
13 |
14 | //失去焦点进行查询账户
15 | $('#user-account').blur(function() {
16 | var account=$('#user-account').val().trim();
17 | if(account==null||account==''){
18 | return;
19 | }
20 | $.ajax({
21 | url:'/graduation/userController/isuser',
22 | dataType:'json',
23 | type:'post',
24 | data:{
25 | account:account
26 | },
27 | success:function(result){
28 | var accountParent=$('#user-account').parent();
29 | if(result==true){
30 | accountParent.removeClass('am-form-error');
31 | accountParent.addClass('am-form-success');
32 | $('#user-account').css('border-color','#5eb95e');
33 | }else{
34 | accountParent.removeClass('am-form-success');
35 | accountParent.addClass('am-form-error');
36 | $('#user-account').css('border-color','#dd514c');
37 | }
38 | }
39 | });
40 | });
41 |
42 | //登录
43 | $(document).keyup(function(event){
44 | if(event.keyCode ==13){
45 | var account=$('#user-account').val().trim();
46 | var password=$('#user-password').val().trim();
47 | var randStr=$('#randStr').val().trim();
48 | if(account==''||password==''||randStr==''){
49 | return;
50 | }
51 | login(account,password,randStr);
52 | }
53 | });
54 | $('#login_btn').click(function() {
55 | var account=$('#user-account').val().trim();
56 | var password=$('#user-password').val().trim();
57 | var randStr=$('#randStr').val().trim();
58 | if(account==''||password==''||randStr==''){
59 | return;
60 | }
61 | login(account,password,randStr);
62 | });
63 | function login(account,password,randStr) {
64 | $.post("/graduation/userController/login", {
65 | account: account,
66 | password: password,
67 | randStr: randStr
68 | },
69 | function(data){
70 | if(data=="randStrError"){
71 | $('#randStr').css('border-color','#dd514c');
72 | refresh();
73 | }else if(data=='passwordError'){
74 | $('#user-password').popover({
75 | theme: 'danger sm',
76 | content: '密码错误'
77 | });
78 | $('#user-password').popover('open');
79 | $('#user-password').parent().addClass('am-form-error');
80 | $('#user-password').css('border-color','#dd514c');
81 | }else{
82 | if($('#remember-me').is(':checked')){
83 | var account=$('#user-account').val().trim();
84 | var password=$('#user-password').val().trim();
85 | setCookie('account',getAES(account),7);
86 | setCookie('password',getAES(password),7);
87 | }
88 | window.location.href=data;
89 | }
90 | }, "text");
91 | }
92 | //账号密码回现
93 | showup();
94 | function showup(){
95 | if(getCookie('account')!=null&&getCookie('account')!=''){
96 | $('#user-account').val(getDAes(getCookie('account')));
97 | }
98 |
99 | if(getCookie('password')!=null && getCookie('password')!=''){
100 | $('#user-password').val(getDAes(getCookie('password')));
101 | }
102 |
103 | $('#remember-me').attr('checked', false);
104 | }
105 |
106 | //得到通知
107 | $.get('/graduation/informController/getSubInform',{
108 | pageNum:'1',
109 | pageSize:'6',
110 | navigatePages:'1'
111 | },function(data){
112 | for(var i=0;i<6;i++){
113 | var a=$('').attr('href','#').addClass('am-text-truncate');
114 | a.append($('').text(data.list[i].informTitle));
115 | a.append($('').text(getMyDate(data.list[i].createDate)));
116 | a.append($('').text(data.list[i].informId).css('display','none'));
117 | a.on('click',function(){
118 | $.get('/graduation/informController/getSubInformById',{
119 | 'informId':$(this).find('span').eq(2).text()
120 | },function(data){
121 | $('#model_body').html(data.informBody);
122 | });
123 | $('#inform-modal').modal({width:'600px'});
124 | $('#inform-modal').modal('open');
125 | return false;
126 | });
127 | var li=$("#inform_ul").append($('').append(a));
128 | }
129 | });
130 |
131 | //得到下载列表
132 | $.get('/graduation/downController/getSubDown',{
133 | pageNum:'1',
134 | pageSize:'6',
135 | navigatePages:'1'
136 | },function(data){
137 | for(var i=0;i<6;i++){
138 | var a=$('').attr('href','#').addClass('am-text-truncate');
139 | a.append($('').text(data.list[i].downTitle));
140 | a.append($('').text(getMyDate(data.list[i].createDate)));
141 | a.append($('').css('display','none').text(data.list[i].downPath));
142 | var fileName=data.list[i].downPath;
143 | if(fileName!=null&&fileName!=''){
144 | a.attr('href',encodeURI('/graduation/downController/downloadResource?fileName='+fileName));
145 | }
146 | var li=$("#down_ul").append($('').append(a));
147 | }
148 | });
149 |
150 | });
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tsuremdb.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 学生界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
审核免答辩申请表
24 |
25 |
26 | - 申请学生
27 | - 免答辩申请表
28 |
29 |
30 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
140 |
141 |
142 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tsure.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
45 |
46 |
47 |
48 |
134 |
135 |
136 |
--------------------------------------------------------------------------------
/src/main/webapp/teacher/tzqjc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 教师界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
审阅中期检查
24 |
25 |
26 | - 学生列表
27 | - 中期检查
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | | 洛阳师范学院本科毕业论文(设计)中期检查 |
36 |
37 |
38 | | 院(系): |
39 | 信息技术学院 |
40 | 专业: |
41 | |
42 | 年级: |
43 | |
44 |
45 |
46 |
47 |
48 | | 题目 |
49 | |
50 |
51 |
52 | | 学号 |
53 | |
54 | 姓名 |
55 | |
56 |
57 |
58 | | 指导老师 |
59 | |
60 | 职称 |
61 | |
62 |
63 |
64 | |
65 |
66 | |
67 |
68 |
69 | |
70 |
71 | |
72 |
73 |
74 | |
75 |
76 | |
77 |
78 |
79 | |
80 |
81 | |
82 |
83 |
84 |
85 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
159 |
160 |
161 |
--------------------------------------------------------------------------------
/src/main/webapp/login.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 登录页
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
30 |
31 |
72 |
73 |
87 |
101 |
102 |
118 |
119 |
125 |
126 |
127 |
135 |
136 |
137 |
138 |
139 |
140 |
145 |
146 |
147 |
148 |
149 |
150 |
--------------------------------------------------------------------------------
/src/main/webapp/student/sktbg.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 学生界面
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
填写开题报告
24 |
25 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
168 |
169 |
170 |
--------------------------------------------------------------------------------