Compare commits
No commits in common. 'main' and 'main' have entirely different histories.
@ -1,54 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.8">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="java"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v9.0">
|
||||
<attributes>
|
||||
<attribute name="owner.project.facets" value="jst.web"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aopalliance-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/aspectjweaver-1.6.9.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/classmate-1.3.1.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-dbcp-1.4.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io-2.4.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-pool-1.6.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/gson-2.8.0.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jackson-annotations-2.4.0.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jackson-core-2.4.2.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jackson-databind-2.4.2.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jboss-logging-3.3.0.Final.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-1.2.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mybatis-3.2.2.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/mybatis-spring-1.2.0.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/servlet-api.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aop-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-aspects-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-beans-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-context-support-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-core-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-expression-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jdbc-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-jms-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-messaging-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-tx-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-web-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/spring-webmvc-4.1.3.RELEASE.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/validation-api-2.0.0.Final.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-pool2-2.6.2.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/druid-1.0.9.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/jsqlparser-1.0.jar"/>
|
||||
<classpathentry kind="lib" path="WebContent/WEB-INF/lib/pagehelper-5.1.0-beta2.jar"/>
|
||||
<classpathentry kind="output" path="build/classes"/>
|
||||
</classpath>
|
@ -1,31 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>dormManage</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
||||
<attributes>
|
||||
<attribute name="hide" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
@ -1,7 +0,0 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
<wb-module deploy-name="dormManage">
|
||||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/resources"/>
|
||||
<property name="context-root" value="dormManage"/>
|
||||
<property name="java-output-path" value="/dormManage/build/classes"/>
|
||||
</wb-module>
|
||||
</project-modules>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faceted-project>
|
||||
<runtime name="Apache Tomcat v9.0"/>
|
||||
<fixed facet="java"/>
|
||||
<fixed facet="wst.jsdt.web"/>
|
||||
<fixed facet="jst.web"/>
|
||||
<installed facet="java" version="1.8"/>
|
||||
<installed facet="jst.web" version="4.0"/>
|
||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
||||
</faceted-project>
|
@ -1 +0,0 @@
|
||||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
@ -1 +0,0 @@
|
||||
Window
|
@ -1,66 +0,0 @@
|
||||
package com.cya.entity;
|
||||
|
||||
// Admin实体代表管理员
|
||||
public class Admin {
|
||||
private int adminId; // 管理员的唯一标识符
|
||||
private String userName; // 登录用户名
|
||||
private String password; // 登录密码
|
||||
private String name; // 管理员姓名
|
||||
private String sex; // 管理员性别
|
||||
private String tel; // 管理员电话号码
|
||||
|
||||
// 获取adminId的getter和setter方法
|
||||
public int getAdminId() {
|
||||
return adminId;
|
||||
}
|
||||
public void setAdminId(int adminId) {
|
||||
this.adminId = adminId;
|
||||
}
|
||||
|
||||
// 获取userName的getter和setter方法
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
// 获取password的getter和setter方法
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
// 获取name的getter和setter方法
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
// 获取sex的getter和setter方法
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
// 获取tel的getter和setter方法
|
||||
public String getTel() {
|
||||
return tel;
|
||||
}
|
||||
public void setTel(String tel) {
|
||||
this.tel = tel;
|
||||
}
|
||||
|
||||
// 返回Admin对象的字符串表示形式的方法
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Admin [adminId=" + adminId + ", userName=" + userName + ", password=" + password + ", name=" + name
|
||||
+ ", sex=" + sex + ", tel=" + tel + "]";
|
||||
}
|
||||
}
|
@ -1,549 +0,0 @@
|
||||
package com.cya.controller;
|
||||
/**
|
||||
* 系统管理员
|
||||
*
|
||||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Date;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpRequest;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cya.entity.Admin;
|
||||
import com.cya.entity.Dorm;
|
||||
import com.cya.entity.DormBuild;
|
||||
import com.cya.entity.DormManage;
|
||||
import com.cya.entity.Notice;
|
||||
import com.cya.entity.PageResult;
|
||||
import com.cya.entity.PunchClock;
|
||||
import com.cya.entity.PunchClockRecord;
|
||||
import com.cya.entity.Result;
|
||||
import com.cya.entity.Student;
|
||||
import com.cya.service.IAdminService;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
@Controller
|
||||
@ResponseBody
|
||||
public class AdminController {
|
||||
|
||||
@Autowired
|
||||
private IAdminService adminServiceImpl;
|
||||
|
||||
/*-------------------------宿管---------------------------*/
|
||||
|
||||
@RequestMapping("/getDormManage")// 宿管管理模块
|
||||
public PageResult getDormManage(HttpServletRequest request){
|
||||
// 获取宿管信息
|
||||
Integer pageNum=1;
|
||||
Integer pageSize=20;
|
||||
String filter=request.getParameter("filter");
|
||||
String key=request.getParameter("key");
|
||||
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
|
||||
pageNum=Integer.parseInt(request.getParameter("pageNum"));
|
||||
}
|
||||
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
|
||||
pageSize=Integer.parseInt(request.getParameter("pageSize"));
|
||||
}
|
||||
System.out.println("pageNum="+pageNum);
|
||||
System.out.println("pageSize="+pageSize);
|
||||
return adminServiceImpl.getDormManage(pageNum,pageSize,filter,key);
|
||||
}
|
||||
|
||||
@RequestMapping("addDormManage")
|
||||
public Result addDormManage(@RequestBody DormManage dormManage) {
|
||||
// 添加宿管信息
|
||||
try {
|
||||
adminServiceImpl.addDormManage(dormManage);
|
||||
return new Result(true, "添加成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "添加失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("getDormMangerById")
|
||||
public DormManage getDormMangerById(Integer dormManId) {
|
||||
return adminServiceImpl.getDormMangerById(dormManId);
|
||||
}
|
||||
|
||||
@RequestMapping("updataDormManageById")
|
||||
public Result updataDormManageById(@RequestBody DormManage dormManage) {
|
||||
try {
|
||||
adminServiceImpl.updataDormManageById(dormManage);
|
||||
return new Result(true, "更新成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("dormManagerDeleteById")
|
||||
public Result dormManagerDeleteById(HttpServletRequest request) {
|
||||
Integer dormManId=0;
|
||||
if(request.getParameter("dormManId")!=null && request.getParameter("dormManId")!="") {
|
||||
dormManId=Integer.parseInt(request.getParameter("dormManId"));
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.deleteDormManageById(dormManId);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------宿管---------------------------*/
|
||||
|
||||
/*-------------------------学生---------------------------*/
|
||||
// 学生管理模块
|
||||
@RequestMapping("/getStudentManage")
|
||||
public PageResult getStudentManage(HttpServletRequest request){
|
||||
// 获取学生信息
|
||||
Integer pageNum=1;
|
||||
Integer pageSize=20;
|
||||
String filter=request.getParameter("filter");
|
||||
String key=request.getParameter("key");
|
||||
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
|
||||
pageNum=Integer.parseInt(request.getParameter("pageNum"));
|
||||
}
|
||||
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
|
||||
pageSize=Integer.parseInt(request.getParameter("pageSize"));
|
||||
}
|
||||
System.out.println("pageNum="+pageNum);
|
||||
System.out.println("pageSize="+pageSize);
|
||||
return adminServiceImpl.getStudentManage(pageNum, pageSize, filter, key);
|
||||
}
|
||||
|
||||
@RequestMapping("addStudentManage")
|
||||
public Result addStudentManage(@RequestBody Student student) {
|
||||
// 添加学生信息
|
||||
try {
|
||||
adminServiceImpl.addStudentManage(student);
|
||||
return new Result(true, "添加成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "添加失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("getStudentMangerById")
|
||||
public Student getStudentMangerById(Integer studentId) {
|
||||
return adminServiceImpl.getStudentMangerById(studentId);
|
||||
}
|
||||
|
||||
@RequestMapping("updataStudentManageById")
|
||||
public Result updataStudentManageById(@RequestBody Student student) {
|
||||
try {
|
||||
System.out.println(student);
|
||||
adminServiceImpl.updataStudentManageById(student);
|
||||
return new Result(true, "更新成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("studentManagerDeleteById")
|
||||
public Result studentManagerDeleteById(HttpServletRequest request) {
|
||||
Integer studentId=0;
|
||||
if(request.getParameter("studentId")!=null && request.getParameter("studentId")!="") {
|
||||
studentId=Integer.parseInt(request.getParameter("studentId"));
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.studentManagerDeleteById(studentId);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------学生---------------------------*/
|
||||
|
||||
|
||||
/*-------------------------宿舍楼---------------------------*/
|
||||
// 宿舍楼管理模块
|
||||
@RequestMapping("/getBuildManage")
|
||||
public PageResult getBuildManage(HttpServletRequest request){
|
||||
Integer pageNum=1;
|
||||
Integer pageSize=20;
|
||||
String filter=request.getParameter("filter");
|
||||
String key=request.getParameter("key");
|
||||
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
|
||||
pageNum=Integer.parseInt(request.getParameter("pageNum"));
|
||||
}
|
||||
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
|
||||
pageSize=Integer.parseInt(request.getParameter("pageSize"));
|
||||
}
|
||||
System.out.println("pageNum="+pageNum);
|
||||
System.out.println("pageSize="+pageSize);
|
||||
return adminServiceImpl.getBuildManage(pageNum,pageSize,filter,key);
|
||||
}
|
||||
|
||||
@RequestMapping("addBuildManage")
|
||||
public Result addBuildManage(@RequestBody DormBuild dormBuild) {
|
||||
try {
|
||||
adminServiceImpl.addBuildManage(dormBuild);
|
||||
return new Result(true, "添加成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "添加失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("getBuildMangerById")
|
||||
public DormBuild getBuildMangerById(Integer dormBuildId) {
|
||||
return adminServiceImpl.getBuildMangerById(dormBuildId);
|
||||
}
|
||||
|
||||
@RequestMapping("updataBuildManageById")
|
||||
public Result updataBuildManageById(@RequestBody DormBuild dormBuild) {
|
||||
try {
|
||||
adminServiceImpl.updataBuildManageById(dormBuild);
|
||||
return new Result(true, "更新成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("buildManagerDeleteById")
|
||||
public Result buildManagerDeleteById(HttpServletRequest request) {
|
||||
Integer dormBuildId=0;
|
||||
if(request.getParameter("dormBuildId")!=null && request.getParameter("dormBuildId")!="") {
|
||||
dormBuildId=Integer.parseInt(request.getParameter("dormBuildId"));
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.buildManagerDeleteById(dormBuildId);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("getDormMangerByBuildId")
|
||||
public List<DormManage> getDormMangerByBuildId(Integer dormBuildId){
|
||||
System.out.println("dormBuildId="+dormBuildId);
|
||||
return adminServiceImpl.getDormMangerByBuildId(dormBuildId);
|
||||
}
|
||||
|
||||
@RequestMapping("getDormManage2")
|
||||
public List<DormManage> getDormManage(){
|
||||
return adminServiceImpl.getDormManage2();
|
||||
}
|
||||
|
||||
@RequestMapping("addDormManageToBuild")
|
||||
public Result addDormManageToBuild(HttpServletRequest request) {
|
||||
Integer dormBuildId=0;
|
||||
Integer dormManId=0;
|
||||
if(request.getParameter("dormBuildId")!=null && request.getParameter("dormBuildId")!="") {
|
||||
dormBuildId=Integer.parseInt(request.getParameter("dormBuildId"));
|
||||
}
|
||||
if(request.getParameter("dormManId")!=null && request.getParameter("dormManId")!="") {
|
||||
dormManId=Integer.parseInt(request.getParameter("dormManId"));
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.addDormManageToBuild(dormBuildId, dormManId);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping("removeaDormManageToBuild")
|
||||
public Result removeaDormManageToBuild(HttpServletRequest request) {
|
||||
Integer dormManId=0;
|
||||
if(request.getParameter("dormManId")!=null && request.getParameter("dormManId")!="") {
|
||||
dormManId=Integer.parseInt(request.getParameter("dormManId"));
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.removeaDormManageToBuild(dormManId);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------宿舍楼---------------------------*/
|
||||
|
||||
|
||||
/*-------------------------考勤---------------------------*/
|
||||
// 考勤管理模块
|
||||
@RequestMapping("/getRecordManage")
|
||||
public PageResult getRecordManage(HttpServletRequest request){
|
||||
Integer pageNum=1;
|
||||
Integer pageSize=20;
|
||||
String filter=request.getParameter("filter");
|
||||
String key=request.getParameter("key");
|
||||
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
|
||||
pageNum=Integer.parseInt(request.getParameter("pageNum"));
|
||||
}
|
||||
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
|
||||
pageSize=Integer.parseInt(request.getParameter("pageSize"));
|
||||
}
|
||||
System.out.println("pageNum="+pageNum);
|
||||
System.out.println("pageSize="+pageSize);
|
||||
return adminServiceImpl.getRecordManage(pageNum,pageSize,filter,key);
|
||||
}
|
||||
|
||||
@RequestMapping("recordManagerDeleteById")
|
||||
public Result recordManagerDeleteById(HttpServletRequest request) {
|
||||
Integer recordId=0;
|
||||
if(request.getParameter("recordId")!=null && request.getParameter("recordId")!="") {
|
||||
recordId=Integer.parseInt(request.getParameter("recordId"));
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.recordManagerDeleteById(recordId);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------考勤---------------------------*/
|
||||
|
||||
|
||||
|
||||
/*-------------------------公告---------------------------*/
|
||||
|
||||
// 公告管理模块
|
||||
@RequestMapping("/getNoticeManage")
|
||||
public PageResult getNoticeManage(HttpServletRequest request){
|
||||
Integer pageNum=1;
|
||||
Integer pageSize=20;
|
||||
String filter=request.getParameter("filter");
|
||||
String key=request.getParameter("key");
|
||||
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
|
||||
pageNum=Integer.parseInt(request.getParameter("pageNum"));
|
||||
}
|
||||
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
|
||||
pageSize=Integer.parseInt(request.getParameter("pageSize"));
|
||||
}
|
||||
System.out.println("pageNum="+pageNum);
|
||||
System.out.println("pageSize="+pageSize);
|
||||
return adminServiceImpl.getNoticeManage(pageNum,pageSize,filter,key);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("addNoticeManage")
|
||||
public Result addNoticeManage(@RequestBody Notice notice) {
|
||||
try {
|
||||
adminServiceImpl.addNoticeManage(notice);
|
||||
return new Result(true, "添加成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "添加失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("getNoticeMangerById")
|
||||
public Notice getNoticeMangerById(Integer noticeId) {
|
||||
return adminServiceImpl.getNoticeMangerById(noticeId);
|
||||
}
|
||||
|
||||
@RequestMapping("updataNoticeManageById")
|
||||
public Result updataNoticeManageById(@RequestBody Notice notice) {
|
||||
try {
|
||||
adminServiceImpl.updataNoticeManageById(notice);
|
||||
return new Result(true, "更新成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("noticeManagerDeleteById")
|
||||
public Result noticeManagerDeleteById(HttpServletRequest request) {
|
||||
Integer noticeId=0;
|
||||
if(request.getParameter("noticeId")!=null && request.getParameter("noticeId")!="") {
|
||||
noticeId=Integer.parseInt(request.getParameter("noticeId"));
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.noticeManagerDeleteById(noticeId);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------公告---------------------------*/
|
||||
|
||||
|
||||
/*-------------------------我的---------------------------*/
|
||||
// 我的模块
|
||||
@RequestMapping("getMyMsgById")
|
||||
public Admin getMyMsgById(@RequestBody Admin admin) {
|
||||
return adminServiceImpl.getMyMsgById(admin.getAdminId());
|
||||
}
|
||||
|
||||
@RequestMapping("updateMyMsgById")
|
||||
public Result updateMyMsgById(HttpServletRequest request ,@RequestBody Admin admin) {
|
||||
try {
|
||||
HttpSession session=request.getSession();
|
||||
if(session.getAttribute("admin") !=null) {
|
||||
session.removeAttribute("admin");
|
||||
}
|
||||
List list=new ArrayList();
|
||||
list.add(admin);
|
||||
session.setAttribute("admin", list);
|
||||
adminServiceImpl.updateMyMsgById(admin);
|
||||
return new Result(true, "更新成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("updatePsd")
|
||||
public Result updatePsd(@RequestBody Admin admin) {
|
||||
try {
|
||||
adminServiceImpl.updatePsd(admin);
|
||||
System.out.println(admin);
|
||||
return new Result(true, "更新成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------我的---------------------------*/
|
||||
|
||||
|
||||
/*-------------------------打卡---------------------------*/
|
||||
// 打卡管理模块
|
||||
@RequestMapping("/getPunchClockManage")
|
||||
public PageResult getPunchClockManage(HttpServletRequest request){
|
||||
Integer pageNum=1;
|
||||
Integer pageSize=20;
|
||||
String filter=request.getParameter("filter");
|
||||
String key=request.getParameter("key");
|
||||
if(request.getParameter("pageNum")!=null && request.getParameter("pageNum")!="") {
|
||||
pageNum=Integer.parseInt(request.getParameter("pageNum"));
|
||||
}
|
||||
if(request.getParameter("pageSize")!=null && request.getParameter("pageSize")!="") {
|
||||
pageSize=Integer.parseInt(request.getParameter("pageSize"));
|
||||
}
|
||||
|
||||
return adminServiceImpl.getPunchClockManage(pageNum,pageSize,filter,key);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("addPunchClockManageMsg")
|
||||
public Result addPunchClockManageMsg(@RequestBody PunchClock punchClock) {
|
||||
try {
|
||||
String punchClockId= "pcId"+System.currentTimeMillis();
|
||||
punchClock.setId(punchClockId);
|
||||
adminServiceImpl.addPunchClockManageMsg(punchClock);
|
||||
PunchClock punchClock2=adminServiceImpl.getPunchClockMangerById(punchClockId);
|
||||
//根据学生学号生成记录表record
|
||||
//获取学生学号
|
||||
List<Student> list=adminServiceImpl.getStudentMsg();
|
||||
for (Student student : list) {
|
||||
PunchClockRecord punchClockRecord=new PunchClockRecord();
|
||||
punchClockRecord.setPunchClockId(punchClock2.getId());
|
||||
punchClockRecord.setPunchClockDate(punchClock2.getDate());
|
||||
punchClockRecord.setPunchClockTheme(punchClock2.getTheme());
|
||||
punchClockRecord.setPunchClockDetail(punchClock2.getDetail());
|
||||
punchClockRecord.setPunchClockPerson(punchClock2.getPerson());
|
||||
punchClockRecord.setName(student.getName());
|
||||
punchClockRecord.setDormName(student.getDormName());
|
||||
punchClockRecord.setTel(student.getTel());
|
||||
punchClockRecord.setStuNum(student.getStuNum());
|
||||
punchClockRecord.setDormBuildId(student.getDormBuildId());
|
||||
punchClockRecord.setRecord(false);
|
||||
punchClockRecord.setPunckClockContent("");
|
||||
|
||||
adminServiceImpl.insertIntoPunchClockRecord(punchClockRecord);
|
||||
}
|
||||
|
||||
return new Result(true, "添加成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "添加失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("getPunchClockMangerById")
|
||||
public PunchClock getPunchClockMangerById(String id) {
|
||||
return adminServiceImpl.getPunchClockMangerById(id);
|
||||
}
|
||||
|
||||
@RequestMapping("updataPunchClockManageMsgById")
|
||||
public Result updataPunchClockManageMsgById(@RequestBody PunchClock punchClock) {
|
||||
try {
|
||||
adminServiceImpl.updataPunchClockManageMsgById(punchClock);
|
||||
//更新记录表
|
||||
adminServiceImpl.updateIntoPunchClockRecordById(punchClock);
|
||||
return new Result(true, "更新成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "更新失败");
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping("punchClockManagerDeleteById")
|
||||
public Result punchClockManagerDeleteById(HttpServletRequest request) {
|
||||
String id="";
|
||||
if(request.getParameter("id")!=null) {
|
||||
id=request.getParameter("id");
|
||||
}
|
||||
try {
|
||||
adminServiceImpl.punchClockManagerDeleteById(id);
|
||||
|
||||
adminServiceImpl.deletePunchClockRecordById(id);
|
||||
return new Result(true, "删除成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
e.printStackTrace();
|
||||
return new Result(false, "删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------打卡---------------------------*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,135 +0,0 @@
|
||||
package com.cya.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.type.IntegerTypeHandler;
|
||||
|
||||
import com.cya.entity.Admin;
|
||||
import com.cya.entity.DormBuild;
|
||||
import com.cya.entity.DormManage;
|
||||
import com.cya.entity.Notice;
|
||||
import com.cya.entity.PunchClock;
|
||||
import com.cya.entity.PunchClockRecord;
|
||||
import com.cya.entity.Record;
|
||||
import com.cya.entity.Student;
|
||||
import com.sun.org.glassfish.gmbal.ParameterNames;
|
||||
|
||||
public interface IAdminMapper {
|
||||
|
||||
/*-------------------------宿管---------------------------*/
|
||||
|
||||
public List<DormManage>getDormManage(@Param("filter")String filter,@Param("key")String key);
|
||||
|
||||
public void addDormManage(DormManage dormManage);
|
||||
|
||||
public DormManage getDormMangerById(@Param("dormManId") int dormManId);
|
||||
|
||||
public void updataDormManageById(DormManage dormManage);
|
||||
|
||||
public void deleteDormManageById(@Param("dormManId") Integer dormManId);
|
||||
|
||||
/*-------------------------宿管---------------------------*/
|
||||
|
||||
/*-------------------------学生---------------------------*/
|
||||
|
||||
public List<Student>getStudentManage(@Param("filter")String filter,@Param("key")String key);
|
||||
|
||||
public void addStudentManage(Student student);
|
||||
|
||||
public Student getStudentMangerById(@Param("studentId") int studentId);
|
||||
|
||||
public void updataStudentManageById(Student student);
|
||||
|
||||
public void studentManagerDeleteById(@Param("studentId") int studentId);
|
||||
|
||||
/*-------------------------学生---------------------------*/
|
||||
|
||||
|
||||
|
||||
/*-------------------------宿舍楼---------------------------*/
|
||||
|
||||
public List<DormBuild>getBuildManage(@Param("filter")String filter,@Param("key")String key);
|
||||
|
||||
public void addBuildManage(DormBuild dormBuild);
|
||||
|
||||
public DormBuild getBuildMangerById(@Param("dormBuildId") int dormBuildId);
|
||||
|
||||
public void updataBuildManageById(DormBuild dormBuild);
|
||||
|
||||
public void buildManagerDeleteById(@Param("dormBuildId") Integer dormBuildId);
|
||||
|
||||
public List<DormManage> getDormMangerByBuildId(@Param("dormBuildId") Integer dormBuildId);
|
||||
|
||||
public List<DormManage> getDormManage2();
|
||||
|
||||
public void addDormManageToBuild(@Param("dormBuildId")Integer dormBuildId,@Param("dormManId")Integer dormManId);
|
||||
|
||||
public void removeaDormManageToBuild(@Param("dormManId")Integer dormManId);
|
||||
|
||||
/*-------------------------宿舍楼---------------------------*/
|
||||
|
||||
|
||||
/*-------------------------考勤---------------------------*/
|
||||
|
||||
public List<Record>getRecordManage(@Param("filter")String filter,@Param("key")String key);
|
||||
|
||||
|
||||
public void recordManagerDeleteById(@Param("recordId")Integer recordId);
|
||||
/*-------------------------考勤---------------------------*/
|
||||
|
||||
|
||||
/*-------------------------公告---------------------------*/
|
||||
|
||||
public List<Notice>getNoticeManage(@Param("filter")String filter,@Param("key")String key);
|
||||
|
||||
public void addNoticeManage(Notice notice);
|
||||
|
||||
public Notice getNoticeMangerById(@Param("noticeId") Integer noticeId);
|
||||
|
||||
public void updataNoticeManageById(Notice notice);
|
||||
|
||||
public void noticeManagerDeleteById(@Param("noticeId") Integer noticeId);
|
||||
|
||||
/*-------------------------公告---------------------------*/
|
||||
|
||||
/*-------------------------我的---------------------------*/
|
||||
|
||||
public Admin getMyMsgById(@Param("adminId") Integer adminId);
|
||||
|
||||
public void updateMyMsgById(Admin admin);
|
||||
|
||||
public void updatePsd(Admin admin);
|
||||
|
||||
|
||||
|
||||
/*-------------------------我的---------------------------*/
|
||||
|
||||
|
||||
/*-------------------------打卡---------------------------*/
|
||||
|
||||
public List<PunchClock>getPunchClockManage(@Param("filter")String filter,@Param("key")String key);
|
||||
|
||||
public void addPunchClockManageMsg(PunchClock punchClock);
|
||||
|
||||
public PunchClock getPunchClockMangerById(@Param("id") String id);
|
||||
|
||||
public void updataPunchClockManageMsgById(PunchClock punchClock);
|
||||
|
||||
public void punchClockManagerDeleteById(@Param("id") String id);
|
||||
|
||||
public List<Student> getStudentMsg();
|
||||
|
||||
public void insertIntoPunchClockRecord(PunchClockRecord punchClockRecord);
|
||||
|
||||
public void updateIntoPunchClockRecordById(PunchClock punchClock);
|
||||
|
||||
public void deletePunchClockRecordById(String id);
|
||||
|
||||
/*-------------------------打卡---------------------------*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,249 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.cya.mapper.IAdminMapper">
|
||||
|
||||
<!-- ******************** 宿管 ******************* -->
|
||||
|
||||
<!-- 获取宿管信息 -->
|
||||
<select id="getDormManage" resultType="com.cya.entity.DormManage">
|
||||
select dormManId,userName,dormBuildId,name,sex,tel from t_dormmanager
|
||||
<where>
|
||||
<if test="filter=='name' and key !='' ">
|
||||
name like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='userName' and key !='' ">
|
||||
userName like concat("%",#{key},"%")
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="addDormManage" parameterType="com.cya.entity.DormManage">
|
||||
insert into t_dormmanager(userName,password,name,sex,tel) values(#{userName},#{password},#{name},#{sex},#{tel})
|
||||
</insert>
|
||||
|
||||
<select id="getDormMangerById" parameterType="Integer" resultType="com.cya.entity.DormManage">
|
||||
select * from t_dormmanager where dormManId=#{dormManId}
|
||||
</select>
|
||||
|
||||
<update id="updataDormManageById" parameterType="com.cya.entity.DormManage">
|
||||
update t_dormmanager set userName=#{userName},password=#{password},name=#{name},sex=#{sex},tel=#{tel} where dormManId=#{dormManId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDormManageById" parameterType="Integer">
|
||||
|
||||
delete from t_dormmanager where dormManId=#{dormManId}
|
||||
</delete>
|
||||
|
||||
<!-- ******************** 宿管 ******************* -->
|
||||
|
||||
|
||||
<!-- ******************** 学生 ******************* -->
|
||||
|
||||
<!-- 获取学生信息 -->
|
||||
<select id="getStudentManage" resultType="com.cya.entity.Student">
|
||||
select studentId,stuNum,name,dormBuildId,dormName,sex,tel
|
||||
from t_student
|
||||
<where>
|
||||
<if test="filter=='name' and key !='' ">
|
||||
name like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='stuNum' and key !='' ">
|
||||
stuNum like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='dormName' and key !='' ">
|
||||
dormName like concat("%",#{key},"%")
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="addStudentManage" parameterType="com.cya.entity.Student">
|
||||
insert into t_student(stuNum,password,name,dormBuildId,dormName,sex,tel) values(#{stuNum},#{password},#{name},#{dormBuildId},#{dormName},#{sex},#{tel})
|
||||
</insert>
|
||||
|
||||
<select id="getStudentMangerById" parameterType="Integer" resultType="com.cya.entity.Student">
|
||||
select * from t_student where studentId=#{studentId}
|
||||
</select>
|
||||
|
||||
<update id="updataStudentManageById" parameterType="com.cya.entity.Student">
|
||||
update t_student set stuNum=#{stuNum},password=#{password},name=#{name},sex=#{sex},dormBuildId=#{dormBuildId},dormName=#{dormName},tel=#{tel} where studentId=#{studentId}
|
||||
</update>
|
||||
|
||||
<delete id="studentManagerDeleteById" parameterType="Integer">
|
||||
|
||||
delete from t_student where studentId=#{studentId}
|
||||
</delete>
|
||||
|
||||
<!-- ******************** 学生 ******************* -->
|
||||
|
||||
|
||||
<!-- ******************** 宿舍楼 ******************* -->
|
||||
|
||||
<select id="getBuildManage" resultType="com.cya.entity.DormBuild">
|
||||
select * from t_dormbuild
|
||||
<where>
|
||||
<if test="filter=='dormBuildName' and key !='' ">
|
||||
dormBuildName like concat("%",#{key},"%")
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="addBuildManage" parameterType="com.cya.entity.DormBuild">
|
||||
insert into t_dormbuild(dormBuildName,dormBuildDetail) values(#{dormBuildName},#{dormBuildDetail})
|
||||
</insert>
|
||||
|
||||
<select id="getBuildMangerById" parameterType="Integer" resultType="com.cya.entity.DormBuild">
|
||||
select * from t_dormbuild where dormBuildId=#{dormBuildId}
|
||||
</select>
|
||||
|
||||
<update id="updataBuildManageById" parameterType="com.cya.entity.DormBuild">
|
||||
update t_dormbuild set dormBuildName=#{dormBuildName},dormBuildDetail=#{dormBuildDetail} where dormBuildId=#{dormBuildId}
|
||||
</update>
|
||||
|
||||
<delete id="buildManagerDeleteById" parameterType="Integer">
|
||||
|
||||
delete from t_dormbuild where dormBuildId=#{dormBuildId}
|
||||
</delete>
|
||||
|
||||
<select id="getDormMangerByBuildId" resultType="com.cya.entity.DormManage">
|
||||
select dormManId,name,sex,tel from t_dormmanager where dormBuildId=#{dormBuildId}
|
||||
</select>
|
||||
|
||||
<select id="getDormManage2" resultType="com.cya.entity.DormManage">
|
||||
select dormManId,name from t_dormmanager
|
||||
</select>
|
||||
|
||||
<update id="addDormManageToBuild" parameterType="Integer">
|
||||
update t_dormmanager set dormBuildId=#{dormBuildId} where dormManId=#{dormManId}
|
||||
</update>
|
||||
|
||||
<update id="removeaDormManageToBuild" parameterType="Integer">
|
||||
update t_dormmanager set dormBuildId=0 where dormManId=#{dormManId}
|
||||
</update>
|
||||
|
||||
<!-- ******************** 宿舍楼 ******************* -->
|
||||
|
||||
|
||||
<!-- ******************** 考勤 ******************* -->
|
||||
|
||||
<select id="getRecordManage" resultType="com.cya.entity.Record">
|
||||
select * from t_record
|
||||
<where>
|
||||
<if test="filter=='studentName' and key !='' ">
|
||||
studentName like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='studentNumber' and key !='' ">
|
||||
studentNumber like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='dormName' and key !='' ">
|
||||
dormName like concat("%",#{key},"%")
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="recordManagerDeleteById" parameterType="Integer">
|
||||
delete from t_record where recordId=#{recordId}
|
||||
</delete>
|
||||
|
||||
<!-- ******************** 考勤 ******************* -->
|
||||
|
||||
|
||||
<!-- ******************** 公告 ******************* -->
|
||||
|
||||
<select id="getNoticeManage" resultType="com.cya.entity.Notice">
|
||||
select * from t_notice
|
||||
<where>
|
||||
<if test="filter=='date' and key !='' ">
|
||||
date like concat("%",#{key},"%")
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="addNoticeManage" parameterType="com.cya.entity.Notice">
|
||||
insert into t_notice(noticePerson,date,content) values(#{noticePerson},current_date,#{content})
|
||||
</insert>
|
||||
|
||||
<select id="getNoticeMangerById" parameterType="Integer" resultType="com.cya.entity.Notice">
|
||||
select * from t_notice where noticeId=#{noticeId}
|
||||
</select>
|
||||
|
||||
<update id="updataNoticeManageById" parameterType="com.cya.entity.Notice">
|
||||
update t_notice set noticePerson=#{noticePerson},content=#{content} where noticeId=#{noticeId}
|
||||
</update>
|
||||
|
||||
<delete id="noticeManagerDeleteById" parameterType="Integer">
|
||||
|
||||
delete from t_notice where noticeId=#{noticeId}
|
||||
</delete>
|
||||
|
||||
<!-- ******************** 公告 ******************* -->
|
||||
|
||||
<!-- ******************** 我的 ******************* -->
|
||||
|
||||
<select id="getMyMsgById" resultType="com.cya.entity.Admin">
|
||||
select * from t_admin where adminId=#{adminId}
|
||||
</select>
|
||||
|
||||
<update id="updateMyMsgById" parameterType="com.cya.entity.Admin">
|
||||
update t_admin set userName=#{userName},name=#{name},tel=#{tel} where adminId=#{adminId}
|
||||
</update>
|
||||
|
||||
<update id="updatePsd" parameterType="com.cya.entity.Admin">
|
||||
update t_admin set password=#{password} where adminId=#{adminId}
|
||||
</update>
|
||||
|
||||
<!-- ******************** 我的 ******************* -->
|
||||
|
||||
|
||||
|
||||
<!-- ******************** 打卡 ******************* -->
|
||||
|
||||
<select id="getPunchClockManage" resultType="com.cya.entity.PunchClock">
|
||||
select * from t_punchclock
|
||||
<where>
|
||||
<if test="filter=='date' and key !='' ">
|
||||
date like concat("%",#{key},"%")
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="addPunchClockManageMsg" parameterType="com.cya.entity.PunchClock">
|
||||
|
||||
insert into t_punchclock(id,theme,detail,date,person) values(#{id},#{theme},#{detail},current_date,#{person})
|
||||
|
||||
</insert>
|
||||
|
||||
<select id="getPunchClockMangerById" parameterType="java.lang.String" resultType="com.cya.entity.PunchClock">
|
||||
select * from t_punchclock where id=#{id}
|
||||
</select>
|
||||
|
||||
<update id="updataPunchClockManageMsgById" parameterType="com.cya.entity.PunchClock">
|
||||
update t_punchclock set theme=#{theme},detail=#{detail} where id=#{id}
|
||||
</update>
|
||||
|
||||
<delete id="punchClockManagerDeleteById" parameterType="java.lang.String">
|
||||
|
||||
delete from t_punchclock where id=#{id}
|
||||
</delete>
|
||||
|
||||
<select id="getStudentMsg" resultType="com.cya.entity.Student">
|
||||
select * from t_student where studentId in(select min(studentId) from t_student group by stuNum)
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertIntoPunchClockRecord" parameterType="com.cya.entity.PunchClockRecord">
|
||||
insert into t_punchclockrecord
|
||||
(punchClock_id,punchClock_date,punchClock_theme,punchClock_detail,punchClock_person,name,dormName,tel,stuNum,dormBuildId,isRecord,punckClock_content)
|
||||
values(#{punchClockId},#{punchClockDate},#{punchClockTheme},#{punchClockDetail},#{punchClockPerson},#{name},#{dormName},#{tel},#{stuNum},#{dormBuildId},#{isRecord},#{punckClockContent})
|
||||
</insert>
|
||||
|
||||
<update id="updateIntoPunchClockRecordById" parameterType="com.cya.entity.PunchClock">
|
||||
update t_punchclockrecord set punchClock_theme=#{theme},punchClock_detail=#{detail} where punchClock_id=#{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePunchClockRecordById" parameterType="java.lang.String">
|
||||
delete from t_punchclockrecord where punchClock_id=#{id}
|
||||
</delete>
|
||||
|
||||
<!-- ******************** 打卡 ******************* -->
|
||||
</mapper>
|
||||
|
@ -1,45 +0,0 @@
|
||||
package com.cya.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.cya.entity.Admin;
|
||||
import com.cya.entity.DormManage;
|
||||
import com.cya.entity.Notice;
|
||||
import com.cya.entity.PunchClockRecord;
|
||||
import com.cya.entity.Record;
|
||||
import com.cya.entity.Student;
|
||||
|
||||
public interface IDormManageMapper {
|
||||
|
||||
public List<Student>getStudentMsgByBuildId(@Param("filter")String filter,@Param("key")String key,@Param("dormBuildId") Integer dormBuildId);
|
||||
|
||||
public void studentMsgDeleteById(@Param("studentId") int studentId);
|
||||
|
||||
public List<Record>getRecordMsg(@Param("filter")String filter,@Param("key")String key,@Param("dormBuildId") Integer dormBuildId);
|
||||
|
||||
public Record getRecordById(@Param("recordId") int recordId);
|
||||
|
||||
public void updataRecordMsg(Record record);
|
||||
|
||||
public void addRecordMsg(Record record);
|
||||
|
||||
public void recordManagerDeleteById1(@Param("recordId") Integer recordId);
|
||||
|
||||
|
||||
public DormManage dorm_getMyMsgById(@Param("dormManId") Integer dormManId);
|
||||
|
||||
public void dorm_updateMyMsgById(DormManage dormManage);
|
||||
|
||||
public void dorm_updatePsd(DormManage dormManage);
|
||||
|
||||
|
||||
public List<Notice> getNoticeAll();
|
||||
|
||||
|
||||
public List<PunchClockRecord>getPunchClockRecordMsgByDormBuildId(@Param("filter")String filter,@Param("key")String key,@Param("dormBuildId") Integer dormBuildId);
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,103 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.cya.mapper.IDormManageMapper">
|
||||
|
||||
<select id="getStudentMsgByBuildId" resultType="com.cya.entity.Student">
|
||||
select studentId,stuNum,name,dormBuildId,dormName,sex,tel
|
||||
from t_student where 1=1
|
||||
|
||||
<if test="filter=='name' and key !='' ">
|
||||
and name like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='stuNum' and key !='' ">
|
||||
and stuNum like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='dormName' and key !='' ">
|
||||
and dormName like concat("%",#{key},"%")
|
||||
</if>
|
||||
|
||||
<if test="dormBuildId!=null" >
|
||||
and dormBuildId=#{dormBuildId}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<delete id="studentMsgDeleteById" parameterType="Integer">
|
||||
delete from t_student where studentId=#{studentId}
|
||||
</delete>
|
||||
|
||||
|
||||
<select id="getRecordMsg" resultType="com.cya.entity.Record">
|
||||
select * from t_record where 1=1
|
||||
|
||||
<if test="filter=='studentName' and key !='' ">
|
||||
and studentName like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='studentNumber' and key !='' ">
|
||||
and studentNumber like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="filter=='dormName' and key !='' ">
|
||||
and dormName like concat("%",#{key},"%")
|
||||
</if>
|
||||
|
||||
<if test="dormBuildId!=null" >
|
||||
and dormBuildId=#{dormBuildId}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getRecordById" parameterType="Integer" resultType="com.cya.entity.Record">
|
||||
select * from t_record where recordId=#{recordId}
|
||||
</select>
|
||||
|
||||
<update id="updataRecordMsg" parameterType="com.cya.entity.Record">
|
||||
update t_record set detail=#{detail} where recordId=#{recordId}
|
||||
</update>
|
||||
|
||||
<insert id="addRecordMsg" parameterType="com.cya.entity.Record">
|
||||
insert into t_record(studentNumber,studentName,dormBuildId,dormName,date,detail) values(#{studentNumber},#{studentName},#{dormBuildId},#{dormName},current_date,#{detail})
|
||||
</insert>
|
||||
|
||||
<delete id="recordManagerDeleteById1" parameterType="Integer">
|
||||
delete from t_record where recordId=#{recordId}
|
||||
</delete>
|
||||
|
||||
<!-- ******************** 我的 ******************* -->
|
||||
|
||||
<select id="dorm_getMyMsgById" resultType="com.cya.entity.DormManage">
|
||||
select * from t_dormmanager where dormManId=#{dormManId}
|
||||
</select>
|
||||
|
||||
<update id="dorm_updateMyMsgById" parameterType="com.cya.entity.DormManage">
|
||||
update t_dormmanager set userName=#{userName},name=#{name},tel=#{tel} where dormManId=#{dormManId}
|
||||
</update>
|
||||
|
||||
<update id="dorm_updatePsd" parameterType="com.cya.entity.DormManage">
|
||||
update t_dormmanager set password=#{password} where dormManId=#{dormManId}
|
||||
</update>
|
||||
|
||||
<!-- ******************** 我的 ******************* -->
|
||||
|
||||
<select id="getNoticeAll" resultType="com.cya.entity.Notice">
|
||||
select * from t_notice
|
||||
</select>
|
||||
|
||||
<!-- ******************** 打卡 ******************* -->
|
||||
|
||||
<select id="getPunchClockRecordMsgByDormBuildId" resultType="com.cya.entity.PunchClockRecord">
|
||||
select * from t_punchclockrecord where 1=1
|
||||
|
||||
<if test="filter=='date' and key !='' ">
|
||||
and punchClock_date like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="dormBuildId!=null" >
|
||||
and dormBuildId=#{dormBuildId}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<!-- ******************** 打卡 ******************* -->
|
||||
|
||||
</mapper>
|
@ -1,17 +0,0 @@
|
||||
package com.cya.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.cya.entity.Admin;
|
||||
import com.cya.entity.DormManage;
|
||||
import com.cya.entity.Login;
|
||||
import com.cya.entity.Student;
|
||||
|
||||
public interface ILoginMapper {
|
||||
|
||||
public List<Admin> loginToAdmin(Login login);
|
||||
|
||||
public List<DormManage> loginToDormManage(Login login);
|
||||
|
||||
public List<Student> loginToStudent(Login login);
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.cya.mapper.ILoginMapper">
|
||||
|
||||
<select id="loginToAdmin" resultType="com.cya.entity.Admin">
|
||||
select * from t_admin where userName=#{userName} and password=#{password}
|
||||
</select>
|
||||
|
||||
<select id="loginToDormManage" resultType="com.cya.entity.DormManage">
|
||||
select * from t_dormmanager where userName=#{userName} and password=#{password}
|
||||
</select>
|
||||
|
||||
<select id="loginToStudent" resultType="com.cya.entity.Student">
|
||||
select * from t_student where stuNum=#{userName} and password=#{password}
|
||||
</select>
|
||||
</mapper>
|
@ -1,11 +0,0 @@
|
||||
package com.cya.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.cya.entity.Login;
|
||||
|
||||
public interface ILoginService {
|
||||
|
||||
public List login(Login login);
|
||||
}
|
||||
//验证用户登录的服务接口
|
@ -1,28 +0,0 @@
|
||||
package com.cya.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.cya.entity.PunchClockRecord;
|
||||
import com.cya.entity.Record;
|
||||
import com.cya.entity.Student;
|
||||
|
||||
|
||||
public interface IStudentMapper {
|
||||
|
||||
public List<Record>getRecordMsgByStuNum(@Param("filter") String filter,@Param("key")String key,@Param("studentNumber") String studentNumber);
|
||||
|
||||
public Student student_getMyMsgById(@Param("studentId") Integer studentId);
|
||||
|
||||
public void student_updateMyMsgById(Student student);
|
||||
|
||||
public void student_updatePsd(Student student);
|
||||
|
||||
public List<PunchClockRecord>getPunchClockRecordMsgByStuNum(@Param("filter") String filter,@Param("key")String key,@Param("studentNumber") String studentNumber);
|
||||
|
||||
public PunchClockRecord getPunckColcokRecordById(@Param("id")Integer id);
|
||||
|
||||
public void updataPunchClockRecordMsg(PunchClockRecord punchClockRecord);
|
||||
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.cya.mapper.IStudentMapper">
|
||||
|
||||
|
||||
<select id="getRecordMsgByStuNum" resultType="com.cya.entity.Record">
|
||||
select * from t_record where 1=1
|
||||
<if test="filter=='date' and key !='' ">
|
||||
and date like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="studentNumber!=null" >
|
||||
and studentNumber=#{studentNumber}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- ******************** 我的 ******************* -->
|
||||
|
||||
<select id="student_getMyMsgById" resultType="com.cya.entity.Student">
|
||||
select * from t_student where studentId=#{studentId}
|
||||
</select>
|
||||
|
||||
<update id="student_updateMyMsgById" parameterType="com.cya.entity.Student">
|
||||
update t_student set name=#{name},tel=#{tel} where studentId=#{studentId}
|
||||
</update>
|
||||
|
||||
<update id="student_updatePsd" parameterType="com.cya.entity.Student">
|
||||
update t_student set password=#{password} where studentId=#{studentId}
|
||||
</update>
|
||||
|
||||
<!-- ******************** 我的 ******************* -->
|
||||
|
||||
|
||||
<!-- ******************** 打卡 ******************* -->
|
||||
<select id="getPunchClockRecordMsgByStuNum" resultType="com.cya.entity.PunchClockRecord">
|
||||
select * from t_punchclockrecord where 1=1
|
||||
<if test="filter=='date' and key !='' ">
|
||||
and punchClock_date like concat("%",#{key},"%")
|
||||
</if>
|
||||
<if test="studentNumber!=null" >
|
||||
and stuNum=#{studentNumber}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getPunckColcokRecordById" resultType="com.cya.entity.PunchClockRecord">
|
||||
select * from t_punchclockrecord where id=#{id}
|
||||
</select>
|
||||
|
||||
<update id="updataPunchClockRecordMsg" parameterType="com.cya.entity.PunchClockRecord">
|
||||
update t_punchclockrecord set isRecord=true,punckClock_content=#{punckClockContent} where id=#{id}
|
||||
</update>
|
||||
|
||||
<!-- ******************** 打卡 ******************* -->
|
||||
</mapper>
|
@ -1,39 +0,0 @@
|
||||
package com.cya.entity;
|
||||
|
||||
// Login实体代表登录信息
|
||||
public class Login {
|
||||
|
||||
private String userName; // 登录用户名
|
||||
private String password; // 登录密码
|
||||
private String role; // 用户角色
|
||||
|
||||
// 获取userName的getter和setter方法
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
// 获取password的getter和setter方法
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
// 获取role的getter和setter方法
|
||||
public String getRole() {
|
||||
return role;
|
||||
}
|
||||
public void setRole(String role) {
|
||||
this.role = role;
|
||||
}
|
||||
|
||||
// 返回Login对象的字符串表示形式的方法
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Login [userName=" + userName + ", password=" + password + ", role=" + role + "]";
|
||||
}
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
package com.cya.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.management.relation.Role;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.apache.tomcat.util.digester.ArrayStack;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cya.entity.Login;
|
||||
import com.cya.entity.Result;
|
||||
import com.cya.service.ILoginService;
|
||||
import com.cya.service.impl.LoginServiceImpl;
|
||||
|
||||
@Controller
|
||||
@ResponseBody
|
||||
public class LoginController {
|
||||
|
||||
@Autowired
|
||||
private ILoginService loginServiceImpl;
|
||||
|
||||
// 处理登录请求
|
||||
@RequestMapping("login")
|
||||
public List login(HttpServletRequest request, @RequestBody Login login) {
|
||||
List list=loginServiceImpl.login(login);
|
||||
if(list.size()==1) {
|
||||
HttpSession session=request.getSession();
|
||||
session.setAttribute(login.getRole(), list);
|
||||
System.out.println("session="+session.getAttribute(login.getRole()));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
// 获取会话信息
|
||||
@RequestMapping("getSession")
|
||||
public List getSession(HttpServletRequest request,@RequestBody Login login){
|
||||
System.out.println(login);
|
||||
System.out.println(request.getSession().getAttribute(login.getRole()));
|
||||
List list=new ArrayList<>();
|
||||
list.add(request.getSession().getAttribute(login.getRole()));
|
||||
return list;
|
||||
}
|
||||
|
||||
// 退出系统
|
||||
@RequestMapping("exitSys")
|
||||
public Result exitSys(HttpServletRequest request) {
|
||||
String exit="";
|
||||
try {
|
||||
if(request.getParameter("exit")!=null) {
|
||||
exit=request.getParameter("exit");
|
||||
}
|
||||
request.getSession().removeAttribute(exit);
|
||||
return new Result(true, "注销成功");
|
||||
} catch (Exception e) {
|
||||
// TODO: 处理异常
|
||||
e.printStackTrace();
|
||||
return new Result(false, "注销失败");
|
||||
}
|
||||
}
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
package com.cya.entity;
|
||||
|
||||
/**
|
||||
* 学生实体类
|
||||
*/
|
||||
public class Student {
|
||||
|
||||
private int studentId; // 学生ID
|
||||
private String stuNum; // 学号
|
||||
private String password; // 密码
|
||||
private String name; // 姓名
|
||||
private int dormBuildId; // 宿舍楼ID
|
||||
private String dormName; // 宿舍名称
|
||||
private String sex; // 性别
|
||||
private String tel; // 电话号码
|
||||
public int getStudentId() {
|
||||
return studentId;
|
||||
}
|
||||
public void setStudentId(int studentId) {
|
||||
this.studentId = studentId;
|
||||
}
|
||||
public String getStuNum() {
|
||||
return stuNum;
|
||||
}
|
||||
public void setStuNum(String stuNum) {
|
||||
this.stuNum = stuNum;
|
||||
}
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public int getDormBuildId() {
|
||||
return dormBuildId;
|
||||
}
|
||||
public void setDormBuildId(int dormBuildId) {
|
||||
this.dormBuildId = dormBuildId;
|
||||
}
|
||||
public String getDormName() {
|
||||
return dormName;
|
||||
}
|
||||
public void setDormName(String dormName) {
|
||||
this.dormName = dormName;
|
||||
}
|
||||
public String getSex() {
|
||||
return sex;
|
||||
}
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
public String getTel() {
|
||||
return tel;
|
||||
}
|
||||
public void setTel(String tel) {
|
||||
this.tel = tel;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Student [studentId=" + studentId + ", stuNum=" + stuNum + ", password=" + password + ", name=" + name
|
||||
+ ", dormBuildId=" + dormBuildId + ", dormName=" + dormName + ", sex=" + sex + ", tel=" + tel + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
package com.cya.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.cya.entity.PageResult;
|
||||
import com.cya.entity.PunchClockRecord;
|
||||
import com.cya.entity.Result;
|
||||
import com.cya.entity.Student;
|
||||
import com.cya.service.IStudentService;
|
||||
|
||||
/**
|
||||
* 学生控制器
|
||||
*/
|
||||
@Controller
|
||||
@ResponseBody
|
||||
public class StudentController {
|
||||
|
||||
@Autowired
|
||||
private IStudentService studentSeriveImpl;
|
||||
|
||||
/*-------------------------考勤---------------------------*/
|
||||
|
||||
/**
|
||||
* 根据学号获取考勤信息
|
||||
*/
|
||||
@RequestMapping("/getRecordMMsgByStuNum")
|
||||
public PageResult getRecordMMsgByStuNum(HttpServletRequest request){
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------考勤---------------------------*/
|
||||
|
||||
/*-------------------------我的---------------------------*/
|
||||
|
||||
/**
|
||||
* 根据ID获取个人信息
|
||||
*/
|
||||
@RequestMapping("student_getMyMsgById")
|
||||
public Student student_getMyMsgById(@RequestBody Student student) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新个人信息
|
||||
*/
|
||||
@RequestMapping("student_updateMyMsgById")
|
||||
public Result student_updateMyMsgById(HttpServletRequest request ,@RequestBody Student student) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新密码
|
||||
*/
|
||||
@RequestMapping("student_updatePsd")
|
||||
public Result student_updatePsd(@RequestBody Student student) {
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------我的---------------------------*/
|
||||
|
||||
/*-------------------------打开---------------------------*/
|
||||
|
||||
// 其他打开相关方法...
|
||||
|
||||
/*-------------------------打开---------------------------*/
|
||||
|
||||
/**
|
||||
* 根据学号获取打卡记录信息
|
||||
*/
|
||||
@RequestMapping("/getPunchClockRecordMsgByStuNum")
|
||||
public PageResult getPunchClockRecordMsgByStuNum(HttpServletRequest request){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID获取打卡记录信息
|
||||
*/
|
||||
@RequestMapping("getPunckColcokRecordById")
|
||||
public PunchClockRecord getPunckColcokRecordById(HttpServletRequest request) {
|
||||
// 方法实现...
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新打卡记录信息
|
||||
*/
|
||||
@RequestMapping("updataPunchClockRecordMsg")
|
||||
public Result updataPunchClockRecordMsg(@RequestBody PunchClockRecord punchClockRecord) {
|
||||
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path:
|
||||
|
@ -1,81 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
||||
id="WebApp_ID" version="2.5">
|
||||
<welcome-file-list>
|
||||
<welcome-file>dorm/login.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
<!-- 加载spring容器 -->
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:application.xml</param-value>
|
||||
</context-param>
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<!-- 解决post乱码 -->
|
||||
<filter>
|
||||
<filter-name>CharacterEncodingFilter</filter-name>
|
||||
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>encoding</param-name>
|
||||
<param-value>utf-8</param-value>
|
||||
</init-param>
|
||||
<!-- <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value>
|
||||
</init-param> -->
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>CharacterEncodingFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
|
||||
<servlet>
|
||||
<servlet-name>springMvc</servlet-name>
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:springmvc.xml</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>*.css</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>*.js</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>*.png</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>*.jpg</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>*.gif</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>default</servlet-name>
|
||||
<url-pattern>*.html</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>springMvc</servlet-name>
|
||||
<url-pattern>/</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
</web-app>
|
@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>寝室管理系统</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.aptana.ide.core.unifiedBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.aptana.projects.webnature</nature>
|
||||
</natures>
|
||||
<filteredResources>
|
||||
<filter>
|
||||
<id>1600564941379</id>
|
||||
<name></name>
|
||||
<type>26</type>
|
||||
<matcher>
|
||||
<id>org.eclipse.ui.ide.multiFilter</id>
|
||||
<arguments>1.0-name-matches-false-false-node_modules</arguments>
|
||||
</matcher>
|
||||
</filter>
|
||||
</filteredResources>
|
||||
</projectDescription>
|
@ -1,166 +0,0 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
/* background-image: linear-gradient(to left, rgba(255, 0, 149, 0.2), rgba(0, 247, 255, 0.2)), url(../img/bg.jpg); */
|
||||
background-color: rgb(1,112,254);
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
background-size: cover;
|
||||
z-index:-2000;
|
||||
}
|
||||
|
||||
#bg{
|
||||
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
background-size:cover;
|
||||
position:fixed;
|
||||
width:100%;
|
||||
height:100%;
|
||||
z-index:-1000;
|
||||
opacity:0.8;
|
||||
}
|
||||
|
||||
.login-box {
|
||||
|
||||
width: 60%;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
height: 25em;
|
||||
top: 50%;
|
||||
margin-top: -12.5em;
|
||||
margin-left: -30%;
|
||||
|
||||
}
|
||||
|
||||
.login-box .bg_title{
|
||||
width: 100%;
|
||||
font-weight: bold;
|
||||
font-size: 2em;
|
||||
text-align: center;
|
||||
margin-bottom: 1.2em;
|
||||
background-color: #4dc47d;
|
||||
color: white;
|
||||
float: left;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
|
||||
.login-box .admin,
|
||||
.login-box .dormManage,
|
||||
.login-box .student{
|
||||
width: 30%;
|
||||
height: 75%;
|
||||
margin-left: 2.3%;
|
||||
float: left;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.login-box .admin .titel,
|
||||
.login-box .dormManage .titel,
|
||||
.login-box .student .titel{
|
||||
width: 100%;
|
||||
height: 15%;
|
||||
float: left;
|
||||
line-height: 3em;
|
||||
text-align: center;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 1em;
|
||||
background-color: #4dc47d;
|
||||
}
|
||||
|
||||
.login-box .admin .content,
|
||||
.login-box .dormManage .content,
|
||||
.login-box .student .content{
|
||||
background-color: white;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.login-box .admin .content ul,
|
||||
.login-box .dormManage .content ul,
|
||||
.login-box .student .content ul{
|
||||
width: 100%;
|
||||
height: 82%;
|
||||
}
|
||||
|
||||
|
||||
.login-box .admin .content li,
|
||||
.login-box .dormManage .content li,
|
||||
.login-box .student .content li{
|
||||
width: 100%;
|
||||
font-size:15px;
|
||||
margin-top: 8px;
|
||||
float: left;
|
||||
list-style: none;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.login-box .admin .content button,
|
||||
.login-box .dormManage .content button,
|
||||
.login-box .student .content button{
|
||||
width: 100px;
|
||||
height: 30px;
|
||||
float: left;
|
||||
bottom: 10px;
|
||||
margin-left: 70px;
|
||||
color: white;
|
||||
border: none;
|
||||
background-color: #4dc47d;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.box2{
|
||||
display: none
|
||||
}
|
||||
|
||||
.login-box .content{
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.content .left{
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
float: left;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.content .right{
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
float: left;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.right ul li{
|
||||
width: 100%;
|
||||
height: 25px;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
.right ul li input{
|
||||
height: 25px;
|
||||
border-radius: 5px;
|
||||
border: 2px solid #4dc47d;
|
||||
}
|
||||
|
||||
.right .button{
|
||||
position: relative;
|
||||
top: 25px;
|
||||
left: 82px;
|
||||
}
|
||||
|
||||
.right .a{
|
||||
position: relative;
|
||||
top: 50px;
|
||||
left: 35px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,193 +0,0 @@
|
||||
.data_list {
|
||||
border: 1px solid #E5E5E5;
|
||||
padding: 10px;
|
||||
background-color: #FDFDFD;
|
||||
width: 96%;
|
||||
margin-left:40px;
|
||||
}
|
||||
|
||||
.data_list .data_list_title{
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #E5E5E5;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.data_list .data_list_title img{
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.data_list .form-search .btn{
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
border: 1px solid #cccccc;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
color: #ffffff;
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||
background-color: #4dc47d;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.data_list .data_search select{
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
vertical-align: middle;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #cccccc;
|
||||
}
|
||||
|
||||
select, input[type="file"] {
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
imput{
|
||||
outline: none;
|
||||
outline: medium;
|
||||
}
|
||||
|
||||
select,input{
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.data_list .diary_datas ul{
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.data_list .diary_datas ul li{
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.data_list .datas{
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.data_list .datas ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.data_list .datas ul li {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.data_list .user_image{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.data_list .user_image img{
|
||||
padding-top:10px;
|
||||
width: 200px;;
|
||||
height: 250px;;
|
||||
}
|
||||
|
||||
.data_list .nickName , .data_list .userSign{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.data_list .diary_title{
|
||||
margin-top:20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.data_list .diary_info{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.data_list .diary_content{
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
.data_list .diary_action{
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
.data_list .diary_type{
|
||||
margin-top:10px;
|
||||
}
|
||||
|
||||
.data_list .diary_title{
|
||||
margin-top:20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.data_list .data_list_title .dormBuild_add{
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.data_list .data_form{
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
.form-search{
|
||||
margin-top:5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.data_search{
|
||||
float:right;
|
||||
}
|
||||
|
||||
.select_form {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.data_select {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.pagination .pagination_box{
|
||||
width:14em;
|
||||
height:2em;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.pagination .pagination_box .page_up,
|
||||
.pagination .pagination_box .page_down{
|
||||
width:5em;
|
||||
background-color:#4dc47d;
|
||||
color:white;
|
||||
border-radius: 3px;
|
||||
border:none;
|
||||
}
|
||||
|
||||
.pagination .pagination_box .page_cur{
|
||||
width:4em;
|
||||
background-color:#F0EEF5;
|
||||
}
|
||||
|
||||
.pagination .pagination_box .page_up,
|
||||
.pagination .pagination_box .page_cur,
|
||||
.pagination .pagination_box .page_down{
|
||||
float:left;
|
||||
height:100%;
|
||||
line-height:2em;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.edit_dorm{
|
||||
|
||||
border: 1px solid #E5E5E5;
|
||||
padding: 0;
|
||||
background-color: #FDFDFD;
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.dropdown .dropdown-menu li{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.dropdown .dropdown-menu li a{
|
||||
text-align:center;
|
||||
}
|
@ -1,238 +0,0 @@
|
||||
*{
|
||||
padding: 0;
|
||||
}
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
font-family: 'OpenSans-Regular';
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'OpenSans-Regular';
|
||||
src: url(../fonts/OpenSans-Regular.ttf)format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Ubuntu-Medium';
|
||||
src: url(../fonts/Ubuntu-Medium.ttf) format('truetype');
|
||||
}
|
||||
|
||||
body a {
|
||||
transition: 0.5s all;
|
||||
-webkit-transition: 0.5s all;
|
||||
-moz-transition: 0.5s all;
|
||||
-o-transition: 0.5s all;
|
||||
-ms-transition: 0.5s all;
|
||||
}
|
||||
|
||||
|
||||
/*-- banner --*/
|
||||
.banner {
|
||||
background: url(../img/banner.jpg) no-repeat;
|
||||
background-size: cover;
|
||||
min-height: 270px;
|
||||
}
|
||||
.logo {
|
||||
float: left;
|
||||
margin-left: 5em;
|
||||
width: 14em;
|
||||
height: 5em;
|
||||
background-color: #4dc47d;
|
||||
|
||||
}
|
||||
.logo a{
|
||||
|
||||
display:block;
|
||||
width:100%;
|
||||
height:100%;
|
||||
color:white;
|
||||
text-decoration:none;
|
||||
font-size:25px;
|
||||
font-weight:blod;
|
||||
line-height:70px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.top-menu {
|
||||
float: right;
|
||||
background: #4dc47d;
|
||||
margin: 13em 0 0 0;
|
||||
padding: 0 11em 0 0em;
|
||||
}
|
||||
|
||||
.top-menu ul li {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.top-menu ul li a {
|
||||
display: block;
|
||||
color: #181a1b;
|
||||
font-size: 1.1em;
|
||||
padding: 1em 1em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.top-menu ul li.active a,
|
||||
.top-menu ul li a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
.center-conent {
|
||||
padding: 3em 0;
|
||||
}
|
||||
|
||||
.center-content{
|
||||
width: 90%;
|
||||
height: 100%;
|
||||
float: left;
|
||||
margin-left: 5%;
|
||||
/* background-color: #169FE6; */
|
||||
}
|
||||
|
||||
.center-content .left{
|
||||
width: 23%;
|
||||
height: 100%;
|
||||
float: left;
|
||||
/* background-color: red; */
|
||||
}
|
||||
.center-content .right{
|
||||
width: 77%;
|
||||
float: left;
|
||||
height: 100%;
|
||||
margin-top: 20px;
|
||||
|
||||
/* background-color: blue; */
|
||||
}
|
||||
|
||||
.center-content .left .gongGao{
|
||||
margin-top: 20px;
|
||||
width: 100%;
|
||||
float: left;
|
||||
}
|
||||
.center-content .left .gongGao .title{
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
text-align: center;
|
||||
background-color: #4dc47d;
|
||||
color: #fff;
|
||||
font-size: 20px;
|
||||
line-height: 40px;
|
||||
}
|
||||
.center-content .left .gongGao .context{
|
||||
width: 100%;
|
||||
min-height: 150px;
|
||||
background-color: #FDFDFD;
|
||||
color: black;
|
||||
font-size: 16px;
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
.center-content .left .gongGao .import{
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.center-content .left .gongGao .context marquee label{
|
||||
font-size:14px;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
.center-content .left .gongGao .context a{
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.center-content .left .container{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
/*-- footer --*/
|
||||
|
||||
.copywrite {
|
||||
background: #4dc47d;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.copywrite .container{
|
||||
width:100%;
|
||||
height:100%
|
||||
}
|
||||
|
||||
.copywrite p {
|
||||
display: inline-block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
color: #fff;
|
||||
font-size: 1em;
|
||||
text-align: left;
|
||||
margin-top:20px;
|
||||
margin-left:170px;
|
||||
|
||||
}
|
||||
|
||||
.copywrite p a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.logo {
|
||||
width: 17%
|
||||
}
|
||||
.logo img {
|
||||
background-size: 100%;
|
||||
width: 100%
|
||||
}
|
||||
.top-menu {
|
||||
padding: 0 5em 0 2em;
|
||||
}
|
||||
.top-menu ul li a {
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
.banner {
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.center-content .right .data_list .wele{
|
||||
width:100%;
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.center-content .right .data_list .list-content{
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
.center-content .right .data_list .list-content .quanxian{
|
||||
font-size:30px;
|
||||
}
|
||||
|
||||
|
||||
.center-content .right .data_list .list-content li{
|
||||
font-size:20px;
|
||||
list-style: none;
|
||||
margin-top:20px;
|
||||
}
|
Before Width: | Height: | Size: 200 KiB |
Before Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 99 KiB |
Before Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 286 KiB |
Before Width: | Height: | Size: 200 KiB |
Before Width: | Height: | Size: 543 KiB |
Before Width: | Height: | Size: 17 KiB |
@ -1,3 +0,0 @@
|
||||
|
||||
|
||||
(function(e,t,n){var r=e();e.fn.dropdownHover=function(n){r=r.add(this.parent());return this.each(function(){var i=e(this),s=i.parent(),o={delay:500,instantlyCloseOthers:!0},u={delay:e(this).data("delay"),instantlyCloseOthers:e(this).data("close-others")},a=e.extend(!0,{},o,n,u),f;s.hover(function(e){if(!s.hasClass("open")&&!i.is(e.target))return!0;a.instantlyCloseOthers===!0&&r.removeClass("open");t.clearTimeout(f);s.addClass("open")},function(){f=t.setTimeout(function(){s.removeClass("open")},a.delay)});i.hover(function(){a.instantlyCloseOthers===!0&&r.removeClass("open");t.clearTimeout(f);s.addClass("open")});s.find(".dropdown-submenu").each(function(){var n=e(this),r;n.hover(function(){t.clearTimeout(r);n.children(".dropdown-menu").show();n.siblings().children(".dropdown-menu").hide()},function(){var e=n.children(".dropdown-menu");r=t.setTimeout(function(){e.hide()},a.delay)})})})};e(document).ready(function(){e('[data-hover="dropdown"]').dropdownHover()})})(jQuery,this);
|
@ -1,8 +0,0 @@
|
||||
/*! http://responsiveslides.com v1.54 by @viljamis */
|
||||
(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on",
|
||||
w=d+"_s",k=c("<ul class='"+g+"_tabs "+d+"_tabs' />"),x={"float":"left",position:"relative",opacity:1,zIndex:2},y={"float":"none",position:"absolute",opacity:0,zIndex:1},F=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;s=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c<s.length;c++)if("string"===typeof b[s[c]+a])return!0;return!1}(),z=function(b){a.before(b);F?(e.removeClass(j).css(y).eq(b).addClass(j).css(x),
|
||||
n=b,setTimeout(function(){a.after(b)},h)):e.stop().fadeOut(h,function(){c(this).removeClass(j).css(y).css("opacity",1)}).eq(b).fadeIn(h,function(){c(this).addClass(j).css(x);a.after(b);n=b})};a.random&&(e.sort(function(){return Math.round(Math.random())-0.5}),f.empty().append(e));e.each(function(a){this.id=w+a});f.addClass(g+" "+d);l&&l.maxwidth&&f.css("max-width",u);e.hide().css(y).eq(0).addClass(j).css(x).show();F&&e.show().css({"-webkit-transition":"opacity "+h+"ms ease-in-out","-moz-transition":"opacity "+
|
||||
h+"ms ease-in-out","-o-transition":"opacity "+h+"ms ease-in-out",transition:"opacity "+h+"ms ease-in-out"});if(1<e.size()){if(D<h+100)return;if(a.pager&&!a.manualControls){var A=[];e.each(function(a){a+=1;A+="<li><a href='#' class='"+w+a+"'>"+a+"</a></li>"});k.append(A);l.navContainer?c(a.navContainer).append(k):f.after(k)}a.manualControls&&(k=c(a.manualControls),k.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&k.find("li").each(function(a){c(this).addClass(w+(a+1))});if(a.pager||a.manualControls)q=
|
||||
k.find("a"),r=function(a){q.closest("li").removeClass(v).eq(a).addClass(v)};a.auto&&(t=function(){p=setInterval(function(){e.stop(!0,!0);var b=n+1<C?n+1:0;(a.pager||a.manualControls)&&r(b);z(b)},D)},t());m=function(){a.auto&&(clearInterval(p),t())};a.pause&&f.hover(function(){clearInterval(p)},function(){m()});if(a.pager||a.manualControls)q.bind("click",function(b){b.preventDefault();a.pauseControls||m();b=q.index(this);n===b||c("."+j).queue("fx").length||(r(b),z(b))}).eq(0).closest("li").addClass(v),
|
||||
a.pauseControls&&q.hover(function(){clearInterval(p)},function(){m()});if(a.nav){g="<a href='#' class='"+E+" prev'>"+a.prevText+"</a><a href='#' class='"+E+" next'>"+a.nextText+"</a>";l.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),G=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+j);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1<C?n+1:0;z(c(this)[0]===G[0]?b:d);if(a.pager||a.manualControls)r(c(this)[0]===G[0]?b:d);a.pauseControls||m()}});
|
||||
a.pauseControls&&d.hover(function(){clearInterval(p)},function(){m()})}}if("undefined"===typeof document.body.style.maxWidth&&l.maxwidth){var H=function(){f.css("width","100%");f.width()>u&&f.css("width",u)};H();c(I).bind("resize",function(){H()})}})}})(jQuery,this,0);
|
@ -1,81 +0,0 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
window.onload=function(){
|
||||
getSession({role:"admin"});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------个人--------------------*/
|
||||
function my(){
|
||||
console.log(this.session_vue.login.adminId)
|
||||
var that=this;
|
||||
axios.post('../../getMyMsgById',this.session_vue.login).then(function (res) {
|
||||
that.user_vue.user=res.data;
|
||||
|
||||
}).catch(function (error) {
|
||||
alert(error);
|
||||
});
|
||||
}
|
||||
|
||||
function editMyMsg(){
|
||||
var admin=this.user_vue.user;
|
||||
that=this;
|
||||
axios.post('../../updateMyMsgById',admin).then(function (res) {
|
||||
console.log(res)
|
||||
if(res.data.result==true){
|
||||
window.location.reload()
|
||||
}
|
||||
}).catch(function (error) {
|
||||
alert(error);
|
||||
});
|
||||
}
|
||||
|
||||
function checkedPassword(){
|
||||
my();
|
||||
var password= this.user_vue.user.password;
|
||||
var oldPwd=$("#oldPwd").val().trim();
|
||||
if(password != null && password == oldPwd){
|
||||
|
||||
}
|
||||
else{
|
||||
alert("原密码不正确")
|
||||
console.log(password)
|
||||
console.log(oldPwd)
|
||||
$("#oldPwd").val('')
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function editPassword(){
|
||||
var newPwd=$("#newPwd").val().trim();
|
||||
this.user_vue.user.password=newPwd;
|
||||
var admin =this.user_vue.user;
|
||||
console.log(admin)
|
||||
axios.post('../../updatePsd',admin).then(function (res) {
|
||||
console.log(res)
|
||||
if(res.data.result==true){
|
||||
window.location.reload();
|
||||
}
|
||||
}).catch(function (error) {
|
||||
alert(error);
|
||||
});
|
||||
}
|
||||
|
||||
/*--------------------个人--------------------*/
|
||||
|
||||
var user_vue=new Vue({
|
||||
el:'#user_app',
|
||||
data:{
|
||||
user:{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|