diff --git a/target/classes/com/giit/www/college/dao/BookDao.xml b/target/classes/com/giit/www/college/dao/BookDao.xml
new file mode 100644
index 0000000..f9b03e7
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/BookDao.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+ INSERT INTO book(book_title,isbn,date_of_printing,author,press,category,unit_price)
+ VALUES(#{bookTitle},#{isbn},#{dateOfPrinting},#{author},#{press},#{category},#{unitPrice})
+
+
+
+ SELECT * FROM book WHERE book_title = #{bookTitle} AND isbn = #{isbn}
+
+
+
+ DELETE FROM book WHERE book_title = #{bookTitle} AND isbn = #{isbn}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/ClazzDao.xml b/target/classes/com/giit/www/college/dao/ClazzDao.xml
new file mode 100644
index 0000000..6477267
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/ClazzDao.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM class
+
+
+
+ INSERT INTO class(class_id,class_name,year,spec_name) VALUES (#{clazzId},#{className},#{year},#{specName})
+
+
+
+ DELETE FROM class WHERE class_id = #{value}
+
+
+
+ SELECT count(class_id) FROM class WHERE spec_name = #{specName} AND year = #{year}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/CourseDao.xml b/target/classes/com/giit/www/college/dao/CourseDao.xml
new file mode 100644
index 0000000..9c39a96
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/CourseDao.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM course
+
+
+
+ INSERT INTO course(course_title,type,credits,speciality) VALUES(#{courseTitle},#{type},#{credits},#{speciality})
+
+
+
+ DELETE FROM course WHERE course_title=#{value}
+
+
+
+ SELECT course_title FROM course
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/DeptDao.xml b/target/classes/com/giit/www/college/dao/DeptDao.xml
new file mode 100644
index 0000000..f1c8d59
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/DeptDao.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM department
+
+
+
+ SELECT dept_name FROM department
+
+
+
+ SELECT * FROM department WHERE dept_id = #{value}
+
+
+
+ SELECT dept_id FROM department WHERE dept_name = #{value}
+
+
+ UPDATE department SET dept_name = #{deptName} WHERE dept_id = #{deptId}
+
+
+
+ INSERT INTO department(dept_name) VALUES(#{value})
+
+
+
+ DELETE FROM department WHERE dept_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/OrderBookDao.xml b/target/classes/com/giit/www/college/dao/OrderBookDao.xml
new file mode 100644
index 0000000..3ea6df3
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/OrderBookDao.xml
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO order_book(staff_id,sec_id,book_title,isbn,remark,approval) VALUES(#{staffId},#{secId},#{bookTitle},#{isbn},#{remark},#{approval})
+
+
+
+ SELECT section.sec_id,section.course_title,book.isbn,book.book_title,date_of_printing,author,press,category,unit_price,remark
+ FROM order_book
+ INNER JOIN book ON order_book.book_title = book.book_title AND order_book.isbn = book.isbn
+ INNER JOIN section ON order_book.sec_id = section.sec_id
+ WHERE order_book.staff_id = #{value}
+
+
+
+ SELECT count(*) FROM order_book WHERE book_title = #{bookTitle} AND isbn = #{isbn} AND sec_id != #{secId}
+
+
+
+ SELECT section.sec_id,speciality,course.course_title,book.isbn,book.book_title,
+ date_of_printing,author,press,category,unit_price,remark
+ FROM order_book
+ INNER JOIN book ON order_book.isbn = book.isbn AND order_book.book_title = book.book_title
+ INNER JOIN section ON order_book.sec_id = section.sec_id
+ INNER JOIN course ON section.course_title = course.course_title
+ WHERE approval = 0
+
+
+
+ SELECT book.isbn,book.book_title,
+ date_of_printing,author,press,category,
+ (SELECT count(student_id) FROM takes WHERE order_book.sec_id = takes.sec_id) AS count
+ FROM order_book
+ INNER JOIN book ON order_book.isbn = book.isbn AND order_book.book_title = book.book_title
+ WHERE approval = 1
+
+
+
+
+ DELETE FROM order_book WHERE sec_id = #{secId} AND book_title = #{bookTitle} AND isbn = #{isbn}
+
+
+
+ UPDATE order_book SET approval = 1 WHERE sec_id = #{secId} AND book_title = #{bookTitle} AND isbn=#{isbn}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/SectionDao.xml b/target/classes/com/giit/www/college/dao/SectionDao.xml
new file mode 100644
index 0000000..6cc7ecc
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/SectionDao.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT sec_id,course_title FROM section WHERE staff_id = #{staffId} AND year = #{year}
+
+
+
+ SELECT * FROM section
+
+
+
+ SELECT section.sec_id,course_title,year,staff_name,time,week,weeks,classroom FROM section
+ INNER JOIN staff ON section.staff_id = staff.staff_id
+ LEFT JOIN timetable ON section.sec_id = timetable.sec_id
+
+
+
+ INSERT INTO section(course_title,year,staff_id) VALUES(#{courseTitle},#{year},#{staffId})
+
+
+
+ DELETE FROM section WHERE sec_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/SpecDao.xml b/target/classes/com/giit/www/college/dao/SpecDao.xml
new file mode 100644
index 0000000..478dfc7
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/SpecDao.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT dept_name,spec_name FROM speciality
+
+
+
+ SELECT * FROM speciality
+
+
+
+ SELECT spec_name FROM speciality
+
+
+
+ SELECT spec_id FROM speciality WHERE spec_name = #{value}
+
+
+
+ UPDATE speciality SET spec_name = #{newSpecName} WHERE spec_name = #{specName}
+
+
+
+ INSERT INTO speciality(dept_name,spec_name) VALUES(#{deptName},#{specName})
+
+
+
+ DELETE FROM speciality WHERE spec_name = #{value}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/StaffDao.xml b/target/classes/com/giit/www/college/dao/StaffDao.xml
new file mode 100644
index 0000000..65c8504
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/StaffDao.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT staff_name FROM staff
+
+
+
+ SELECT * FROM staff
+
+
+
+ SELECT staff_id FROM staff WHERE staff_id = #{value}
+
+
+
+ UPDATE staff SET spec_name = #{newSpecName} WHERE spec_name = #{specName}
+
+
+
+ INSERT INTO staff(staff_id,staff_name) VALUES(#{staffId},#{staffName})
+
+
+
+ DELETE FROM staff WHERE staff_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/StudentDao.xml b/target/classes/com/giit/www/college/dao/StudentDao.xml
new file mode 100644
index 0000000..bed5638
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/StudentDao.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM student
+
+
+
+ INSERT INTO student
+ (
+ student_id,student_name,id_card,year,class_name,
+ telephone_number,student_origin_base,gender,pic_path
+ )
+ VALUES
+ (
+ #{studentId},
+ #{studentName},
+ #{idCard},
+ #{year},
+ #{className},
+ #{telephoneNumber},
+ #{studentOriginBase},
+ #{gender},
+ #{picPath})
+
+
+ DELETE FROM student WHERE student_id = #{value}
+
+
+
+ UPDATE student
+ SET student_name = #{studentName},id_card = #{IdCard},
+ year = #{year},class_name = #{className},telephone_number = #{telephoneNumber},
+ student_origin_base = #{studentOriginBase},gender = #{gender},photo = #{photo}
+ WHERE student_id = #{studentId}
+
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/TakesDao.xml b/target/classes/com/giit/www/college/dao/TakesDao.xml
new file mode 100644
index 0000000..d56c7f1
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/TakesDao.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+ SELECT count(student_id) FROM takes WHERE sec_id = #{value}
+
+
+
+ INSERT INTO takes(student_id,sec_Id) VALUES(#{stdId},#{secId})
+
+
+
+ DELETE FROM takes WHERE student_id = #{stdId} AND sec_id = #{secId}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/college/dao/TimetableDao.xml b/target/classes/com/giit/www/college/dao/TimetableDao.xml
new file mode 100644
index 0000000..255f1bf
--- /dev/null
+++ b/target/classes/com/giit/www/college/dao/TimetableDao.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+ INSERT INTO timetable(sec_id,time,week,weeks,classroom) VALUES(#{secId},#{time},#{week},#{weeks},#{classroom})
+
+
+
+ DELETE FROM timetable WHERE sec_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/system/dao/ResourceDao.xml b/target/classes/com/giit/www/system/dao/ResourceDao.xml
new file mode 100644
index 0000000..466a480
--- /dev/null
+++ b/target/classes/com/giit/www/system/dao/ResourceDao.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/system/dao/RoleDao.xml b/target/classes/com/giit/www/system/dao/RoleDao.xml
new file mode 100644
index 0000000..f6c6e98
--- /dev/null
+++ b/target/classes/com/giit/www/system/dao/RoleDao.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO role(role,description,resource_ids,available) VALUES(#{role},#{description},#{resourceIdsStr},#{available})
+
+
+
+ UPDATE role SET role=#{role}, description=#{description}, resource_ids=#{resourceIde}, available=#{avaliable} where id={id}
+
+
+
+ DELETE FROM role where id=#{id}
+
+
+
+ SELECT id, role, description, resource_ids, available FROM role WHERE id=#{id}
+
+
+
+
+ SELECT id, role, description, resource_ids , available FROM role WHERE role.id != 1
+
+
+ SELECT id, role, description, resource_ids, available FROM role WHERE description=#{description}
+
+
+
\ No newline at end of file
diff --git a/target/classes/com/giit/www/system/dao/UserDao.xml b/target/classes/com/giit/www/system/dao/UserDao.xml
new file mode 100644
index 0000000..864ab68
--- /dev/null
+++ b/target/classes/com/giit/www/system/dao/UserDao.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM user WHERE user_id != 'admin'
+
+
+
+ SELECT * FROM user WHERE user_id = #{value}
+
+
+
+ UPDATE user SET password = #{password} ,authority = #{authority} WHERE user_id = #{userId}
+
+
+
+ UPDATE user SET password = #{password} WHERE user_id = #{userId}
+
+
+
+ INSERT INTO user(user_id,password,salt,role_ids,locked) VALUES(#{userId},#{password},#{salt},#{roleIdsStr},#{locked})
+
+
+
+ SELECT * FROM user WHERE user_id = #{id} AND password = #{password}
+
+
+
+ DELETE FROM user WHERE user_id = #{value}
+
+
+
+
\ No newline at end of file
diff --git a/target/classes/db.properties b/target/classes/db.properties
index 7732dfa..e4b4340 100644
--- a/target/classes/db.properties
+++ b/target/classes/db.properties
@@ -1,4 +1,4 @@
jdbc.driver=com.mysql.jdbc.Driver
-jdbc.url=jdbc:mysql://localhost:3306/giit
+jdbc.url=jdbc:mysql://localhost/giit?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.username=root
-jdbc.password=0313
+jdbc.password=123456
diff --git a/target/classes/mybatis-config.xml b/target/classes/mybatis-config.xml
new file mode 100644
index 0000000..4009578
--- /dev/null
+++ b/target/classes/mybatis-config.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/classes/spring-mvc-shiro.xml b/target/classes/spring-mvc-shiro.xml
new file mode 100644
index 0000000..212e848
--- /dev/null
+++ b/target/classes/spring-mvc-shiro.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/classes/spring-mvc.xml b/target/classes/spring-mvc.xml
new file mode 100644
index 0000000..19c5e9c
--- /dev/null
+++ b/target/classes/spring-mvc.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/classes/spring-shiro.xml b/target/classes/spring-shiro.xml
new file mode 100644
index 0000000..1ca55af
--- /dev/null
+++ b/target/classes/spring-shiro.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /login = authc
+ /logout = logout
+
+
+
+
+
\ No newline at end of file
diff --git a/target/classes/spring.xml b/target/classes/spring.xml
new file mode 100644
index 0000000..5183bd8
--- /dev/null
+++ b/target/classes/spring.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/META-INF/MANIFEST.MF b/target/giit/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..4056bda
--- /dev/null
+++ b/target/giit/META-INF/MANIFEST.MF
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Built-By: dongning
+Created-By: IntelliJ IDEA
+Build-Jdk: 1.8.0_60
+
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/BookDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/BookDao.xml
new file mode 100644
index 0000000..f9b03e7
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/BookDao.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+ INSERT INTO book(book_title,isbn,date_of_printing,author,press,category,unit_price)
+ VALUES(#{bookTitle},#{isbn},#{dateOfPrinting},#{author},#{press},#{category},#{unitPrice})
+
+
+
+ SELECT * FROM book WHERE book_title = #{bookTitle} AND isbn = #{isbn}
+
+
+
+ DELETE FROM book WHERE book_title = #{bookTitle} AND isbn = #{isbn}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/ClazzDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/ClazzDao.xml
new file mode 100644
index 0000000..6477267
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/ClazzDao.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM class
+
+
+
+ INSERT INTO class(class_id,class_name,year,spec_name) VALUES (#{clazzId},#{className},#{year},#{specName})
+
+
+
+ DELETE FROM class WHERE class_id = #{value}
+
+
+
+ SELECT count(class_id) FROM class WHERE spec_name = #{specName} AND year = #{year}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/CourseDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/CourseDao.xml
new file mode 100644
index 0000000..9c39a96
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/CourseDao.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM course
+
+
+
+ INSERT INTO course(course_title,type,credits,speciality) VALUES(#{courseTitle},#{type},#{credits},#{speciality})
+
+
+
+ DELETE FROM course WHERE course_title=#{value}
+
+
+
+ SELECT course_title FROM course
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/DeptDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/DeptDao.xml
new file mode 100644
index 0000000..f1c8d59
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/DeptDao.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM department
+
+
+
+ SELECT dept_name FROM department
+
+
+
+ SELECT * FROM department WHERE dept_id = #{value}
+
+
+
+ SELECT dept_id FROM department WHERE dept_name = #{value}
+
+
+ UPDATE department SET dept_name = #{deptName} WHERE dept_id = #{deptId}
+
+
+
+ INSERT INTO department(dept_name) VALUES(#{value})
+
+
+
+ DELETE FROM department WHERE dept_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/OrderBookDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/OrderBookDao.xml
new file mode 100644
index 0000000..3ea6df3
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/OrderBookDao.xml
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO order_book(staff_id,sec_id,book_title,isbn,remark,approval) VALUES(#{staffId},#{secId},#{bookTitle},#{isbn},#{remark},#{approval})
+
+
+
+ SELECT section.sec_id,section.course_title,book.isbn,book.book_title,date_of_printing,author,press,category,unit_price,remark
+ FROM order_book
+ INNER JOIN book ON order_book.book_title = book.book_title AND order_book.isbn = book.isbn
+ INNER JOIN section ON order_book.sec_id = section.sec_id
+ WHERE order_book.staff_id = #{value}
+
+
+
+ SELECT count(*) FROM order_book WHERE book_title = #{bookTitle} AND isbn = #{isbn} AND sec_id != #{secId}
+
+
+
+ SELECT section.sec_id,speciality,course.course_title,book.isbn,book.book_title,
+ date_of_printing,author,press,category,unit_price,remark
+ FROM order_book
+ INNER JOIN book ON order_book.isbn = book.isbn AND order_book.book_title = book.book_title
+ INNER JOIN section ON order_book.sec_id = section.sec_id
+ INNER JOIN course ON section.course_title = course.course_title
+ WHERE approval = 0
+
+
+
+ SELECT book.isbn,book.book_title,
+ date_of_printing,author,press,category,
+ (SELECT count(student_id) FROM takes WHERE order_book.sec_id = takes.sec_id) AS count
+ FROM order_book
+ INNER JOIN book ON order_book.isbn = book.isbn AND order_book.book_title = book.book_title
+ WHERE approval = 1
+
+
+
+
+ DELETE FROM order_book WHERE sec_id = #{secId} AND book_title = #{bookTitle} AND isbn = #{isbn}
+
+
+
+ UPDATE order_book SET approval = 1 WHERE sec_id = #{secId} AND book_title = #{bookTitle} AND isbn=#{isbn}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/SectionDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/SectionDao.xml
new file mode 100644
index 0000000..6cc7ecc
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/SectionDao.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT sec_id,course_title FROM section WHERE staff_id = #{staffId} AND year = #{year}
+
+
+
+ SELECT * FROM section
+
+
+
+ SELECT section.sec_id,course_title,year,staff_name,time,week,weeks,classroom FROM section
+ INNER JOIN staff ON section.staff_id = staff.staff_id
+ LEFT JOIN timetable ON section.sec_id = timetable.sec_id
+
+
+
+ INSERT INTO section(course_title,year,staff_id) VALUES(#{courseTitle},#{year},#{staffId})
+
+
+
+ DELETE FROM section WHERE sec_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/SpecDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/SpecDao.xml
new file mode 100644
index 0000000..478dfc7
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/SpecDao.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT dept_name,spec_name FROM speciality
+
+
+
+ SELECT * FROM speciality
+
+
+
+ SELECT spec_name FROM speciality
+
+
+
+ SELECT spec_id FROM speciality WHERE spec_name = #{value}
+
+
+
+ UPDATE speciality SET spec_name = #{newSpecName} WHERE spec_name = #{specName}
+
+
+
+ INSERT INTO speciality(dept_name,spec_name) VALUES(#{deptName},#{specName})
+
+
+
+ DELETE FROM speciality WHERE spec_name = #{value}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/StaffDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/StaffDao.xml
new file mode 100644
index 0000000..65c8504
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/StaffDao.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT staff_name FROM staff
+
+
+
+ SELECT * FROM staff
+
+
+
+ SELECT staff_id FROM staff WHERE staff_id = #{value}
+
+
+
+ UPDATE staff SET spec_name = #{newSpecName} WHERE spec_name = #{specName}
+
+
+
+ INSERT INTO staff(staff_id,staff_name) VALUES(#{staffId},#{staffName})
+
+
+
+ DELETE FROM staff WHERE staff_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/StudentDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/StudentDao.xml
new file mode 100644
index 0000000..bed5638
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/StudentDao.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM student
+
+
+
+ INSERT INTO student
+ (
+ student_id,student_name,id_card,year,class_name,
+ telephone_number,student_origin_base,gender,pic_path
+ )
+ VALUES
+ (
+ #{studentId},
+ #{studentName},
+ #{idCard},
+ #{year},
+ #{className},
+ #{telephoneNumber},
+ #{studentOriginBase},
+ #{gender},
+ #{picPath})
+
+
+ DELETE FROM student WHERE student_id = #{value}
+
+
+
+ UPDATE student
+ SET student_name = #{studentName},id_card = #{IdCard},
+ year = #{year},class_name = #{className},telephone_number = #{telephoneNumber},
+ student_origin_base = #{studentOriginBase},gender = #{gender},photo = #{photo}
+ WHERE student_id = #{studentId}
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/TakesDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/TakesDao.xml
new file mode 100644
index 0000000..d56c7f1
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/TakesDao.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+ SELECT count(student_id) FROM takes WHERE sec_id = #{value}
+
+
+
+ INSERT INTO takes(student_id,sec_Id) VALUES(#{stdId},#{secId})
+
+
+
+ DELETE FROM takes WHERE student_id = #{stdId} AND sec_id = #{secId}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/college/dao/TimetableDao.xml b/target/giit/WEB-INF/classes/com/giit/www/college/dao/TimetableDao.xml
new file mode 100644
index 0000000..255f1bf
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/college/dao/TimetableDao.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+ INSERT INTO timetable(sec_id,time,week,weeks,classroom) VALUES(#{secId},#{time},#{week},#{weeks},#{classroom})
+
+
+
+ DELETE FROM timetable WHERE sec_id = #{value}
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/system/dao/ResourceDao.xml b/target/giit/WEB-INF/classes/com/giit/www/system/dao/ResourceDao.xml
new file mode 100644
index 0000000..466a480
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/system/dao/ResourceDao.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/system/dao/RoleDao.xml b/target/giit/WEB-INF/classes/com/giit/www/system/dao/RoleDao.xml
new file mode 100644
index 0000000..f6c6e98
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/system/dao/RoleDao.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO role(role,description,resource_ids,available) VALUES(#{role},#{description},#{resourceIdsStr},#{available})
+
+
+
+ UPDATE role SET role=#{role}, description=#{description}, resource_ids=#{resourceIde}, available=#{avaliable} where id={id}
+
+
+
+ DELETE FROM role where id=#{id}
+
+
+
+ SELECT id, role, description, resource_ids, available FROM role WHERE id=#{id}
+
+
+
+
+ SELECT id, role, description, resource_ids , available FROM role WHERE role.id != 1
+
+
+ SELECT id, role, description, resource_ids, available FROM role WHERE description=#{description}
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/com/giit/www/system/dao/UserDao.xml b/target/giit/WEB-INF/classes/com/giit/www/system/dao/UserDao.xml
new file mode 100644
index 0000000..864ab68
--- /dev/null
+++ b/target/giit/WEB-INF/classes/com/giit/www/system/dao/UserDao.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT * FROM user WHERE user_id != 'admin'
+
+
+
+ SELECT * FROM user WHERE user_id = #{value}
+
+
+
+ UPDATE user SET password = #{password} ,authority = #{authority} WHERE user_id = #{userId}
+
+
+
+ UPDATE user SET password = #{password} WHERE user_id = #{userId}
+
+
+
+ INSERT INTO user(user_id,password,salt,role_ids,locked) VALUES(#{userId},#{password},#{salt},#{roleIdsStr},#{locked})
+
+
+
+ SELECT * FROM user WHERE user_id = #{id} AND password = #{password}
+
+
+
+ DELETE FROM user WHERE user_id = #{value}
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/db.properties b/target/giit/WEB-INF/classes/db.properties
index 7732dfa..e4b4340 100644
--- a/target/giit/WEB-INF/classes/db.properties
+++ b/target/giit/WEB-INF/classes/db.properties
@@ -1,4 +1,4 @@
jdbc.driver=com.mysql.jdbc.Driver
-jdbc.url=jdbc:mysql://localhost:3306/giit
+jdbc.url=jdbc:mysql://localhost/giit?useSSL=false&useUnicode=true&characterEncoding=utf-8
jdbc.username=root
-jdbc.password=0313
+jdbc.password=123456
diff --git a/target/giit/WEB-INF/classes/mybatis-config.xml b/target/giit/WEB-INF/classes/mybatis-config.xml
new file mode 100644
index 0000000..4009578
--- /dev/null
+++ b/target/giit/WEB-INF/classes/mybatis-config.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/spring-mvc-shiro.xml b/target/giit/WEB-INF/classes/spring-mvc-shiro.xml
new file mode 100644
index 0000000..212e848
--- /dev/null
+++ b/target/giit/WEB-INF/classes/spring-mvc-shiro.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/spring-mvc.xml b/target/giit/WEB-INF/classes/spring-mvc.xml
new file mode 100644
index 0000000..19c5e9c
--- /dev/null
+++ b/target/giit/WEB-INF/classes/spring-mvc.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/spring-shiro.xml b/target/giit/WEB-INF/classes/spring-shiro.xml
new file mode 100644
index 0000000..1ca55af
--- /dev/null
+++ b/target/giit/WEB-INF/classes/spring-shiro.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /login = authc
+ /logout = logout
+
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/classes/spring.xml b/target/giit/WEB-INF/classes/spring.xml
new file mode 100644
index 0000000..5183bd8
--- /dev/null
+++ b/target/giit/WEB-INF/classes/spring.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/target/giit/WEB-INF/view/admin/system/resource/resource.jsp b/target/giit/WEB-INF/view/admin/system/resource/resource.jsp
new file mode 100644
index 0000000..b928fda
--- /dev/null
+++ b/target/giit/WEB-INF/view/admin/system/resource/resource.jsp
@@ -0,0 +1,68 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+
+<%--
--%>
+
+
+
+
+
+
+
+
+
+
+
+
+ 用户信息
+
+
+
+
+
+
+
+ 角色名称
+ 角色描述
+ 拥有的资源
+ 操作
+
+
+
+
+
+
+ ${role}
+ ${role}
+ ${role}
+ ${role}
+
+ 删除
+
+
+
+
+
+
添加角色
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+