环境:开发工具:idea,数据库:MySQL5.7 jdk1.8 架构:springMVC,前端jsp 主要功能 学生管理、班级管理、宿舍管理、卫生管理等
项目截图: 部分代码:
/**
* 添加宿舍卫生信息
*/
@RequestMapping(value = "/addDormClean" ,method = RequestMethod.POST)
@ResponseBody
public String addDormClean( @RequestBody DormClean dormclean) {
int d = dormCleanService.addDormClean(dormclean);
return "dormclean_list";
}
/**
* 删除宿舍卫生信息
*/
@RequestMapping( "/deleteDormClean")
@ResponseBody
public String deleteDormClean(Integer g_id) {
int d = dormCleanService.deleteDormClean(g_id);
return "dormclean_list";
}
/**
* 修改宿舍卫生信息
*/
@RequestMapping( "/updateDormClean")
public String updateDormClean( DormClean dormclean) {
int d = dormCleanService.updateDormClean(dormclean);
return "redirect:/findDormClean";
}
@RequestMapping( "/findDormCleanById")
public String findDormCleanById(Integer g_id, HttpSession session) {
DormClean d= dormCleanService.findDormCleanById(g_id);
session.setAttribute("d",d);
return "dormclean_edit";
}
获取方式:点击获取
|