赞
踩
基于SSM框架的系统开发的意义如下:
1、管理人员查询学生信息、住宿信息、设施损耗信息、宿舍人员离校信息等变得快捷化,提高了查询的效率,通过输入关键字就可以快速精准的锁定查询,管理员也不需要用手工来记录统计学生出入的信息、宿舍设施损耗的信息,只需要在系统上搜索查询就能了如指掌。
2、因为这套管理系统是在线上操作,全部的信息查询以及输入都是通过电子系统来完成,所以它的管理没有时间上的限制,管理员可以在任何时间进行操作,只需要在自己的电脑安装本系统,通过浏览器进行相应的操作就可以,具有较强的管理实实时性和高效率
3、管理员拥有这套宿舍管理系统,就可以在系统内输入关键信息就可以搜寻到自己想要查询的内容,以前借助于手工记录查询和统计学生信息、宿舍报损信息,不仅效率低下,而且也容易出错。有了这款软件,所有的数据信息都是在管理人员的电脑上显示,信息的录入是借助网络和计算机的无纸媒体,是电脑配套的鼠标以及文字键入的键盘等工具。
4、这套系统既然是线上网络运行,它的安全性就有很强的保证。以前的人工记录宿舍的相关信息,只能记录在笔记本或者表格等纸质的媒介,这样容易丢失也容易出现统计的不便。而采用网络系统办公处理各项学生住宿信息、宿舍人员出入信息以及宿舍设施报损信息等,操作员需要输入用户名密码访问网站,添加处理这些信息就会变得异常便利化,而且数据信息保存时间很长,网站使用稳定性能高,网站能够长期使用,数据信息管理上升到了通过计算机管理的层面,实现系统管理从传统手段的升级。
基于ssm后台的宿舍管理系统小程序源码和论文weixin119
演示视频:
基于ssm后台的宿舍管理系统小程序源码和论文_哔哩哔哩_bilibili
- package com.controller;
-
- import java.text.SimpleDateFormat;
- import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.Calendar;
- import java.util.Map;
- import java.util.HashMap;
- import java.util.Iterator;
- import java.util.Date;
- import java.util.List;
- import javax.servlet.http.HttpServletRequest;
-
- import com.utils.ValidatorUtils;
- import org.apache.commons.lang3.StringUtils;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.format.annotation.DateTimeFormat;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- import com.baomidou.mybatisplus.mapper.EntityWrapper;
- import com.baomidou.mybatisplus.mapper.Wrapper;
- import com.annotation.IgnoreAuth;
-
- import com.entity.LisushenqingEntity;
- import com.entity.view.LisushenqingView;
-
- import com.service.LisushenqingService;
- import com.service.TokenService;
- import com.utils.PageUtils;
- import com.utils.R;
- import com.utils.MD5Util;
- import com.utils.MPUtil;
- import com.utils.CommonUtil;
-
-
- /**
- * 离宿申请
- * 后端接口
- * @author
- * @email
- * @date 2021-04-20 15:40:28
- */
- @RestController
- @RequestMapping("/lisushenqing")
- public class LisushenqingController {
- @Autowired
- private LisushenqingService lisushenqingService;
-
-
-
- /**
- * 后端列表
- */
- @RequestMapping("/page")
- public R page(@RequestParam Map<String, Object> params,LisushenqingEntity lisushenqing,
- HttpServletRequest request){
-
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("xuesheng")) {
- lisushenqing.setXuehao((String)request.getSession().getAttribute("username"));
- }
- EntityWrapper<LisushenqingEntity> ew = new EntityWrapper<LisushenqingEntity>();
- PageUtils page = lisushenqingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, lisushenqing), params), params));
- return R.ok().put("data", page);
- }
-
- /**
- * 前端列表
- */
- @RequestMapping("/list")
- public R list(@RequestParam Map<String, Object> params,LisushenqingEntity lisushenqing, HttpServletRequest request){
-
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("xuesheng")) {
- lisushenqing.setXuehao((String)request.getSession().getAttribute("username"));
- }
- EntityWrapper<LisushenqingEntity> ew = new EntityWrapper<LisushenqingEntity>();
- PageUtils page = lisushenqingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, lisushenqing), params), params));
- return R.ok().put("data", page);
- }
-
- /**
- * 列表
- */
- @RequestMapping("/lists")
- public R list( LisushenqingEntity lisushenqing){
- EntityWrapper<LisushenqingEntity> ew = new EntityWrapper<LisushenqingEntity>();
- ew.allEq(MPUtil.allEQMapPre( lisushenqing, "lisushenqing"));
- return R.ok().put("data", lisushenqingService.selectListView(ew));
- }
-
- /**
- * 查询
- */
- @RequestMapping("/query")
- public R query(LisushenqingEntity lisushenqing){
- EntityWrapper< LisushenqingEntity> ew = new EntityWrapper< LisushenqingEntity>();
- ew.allEq(MPUtil.allEQMapPre( lisushenqing, "lisushenqing"));
- LisushenqingView lisushenqingView = lisushenqingService.selectView(ew);
- return R.ok("查询离宿申请成功").put("data", lisushenqingView);
- }
-
- /**
- * 后端详情
- */
- @RequestMapping("/info/{id}")
- public R info(@PathVariable("id") Long id){
- LisushenqingEntity lisushenqing = lisushenqingService.selectById(id);
- return R.ok().put("data", lisushenqing);
- }
-
- /**
- * 前端详情
- */
- @RequestMapping("/detail/{id}")
- public R detail(@PathVariable("id") Long id){
- LisushenqingEntity lisushenqing = lisushenqingService.selectById(id);
- return R.ok().put("data", lisushenqing);
- }
-
-
-
-
- /**
- * 后端保存
- */
- @RequestMapping("/save")
- public R save(@RequestBody LisushenqingEntity lisushenqing, HttpServletRequest request){
- lisushenqing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
- //ValidatorUtils.validateEntity(lisushenqing);
-
- lisushenqingService.insert(lisushenqing);
- return R.ok();
- }
-
- /**
- * 前端保存
- */
- @RequestMapping("/add")
- public R add(@RequestBody LisushenqingEntity lisushenqing, HttpServletRequest request){
- lisushenqing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
- //ValidatorUtils.validateEntity(lisushenqing);
- lisushenqing.setUserid((Long)request.getSession().getAttribute("userId"));
-
- lisushenqingService.insert(lisushenqing);
- return R.ok();
- }
-
- /**
- * 修改
- */
- @RequestMapping("/update")
- public R update(@RequestBody LisushenqingEntity lisushenqing, HttpServletRequest request){
- //ValidatorUtils.validateEntity(lisushenqing);
- lisushenqingService.updateById(lisushenqing);//全部更新
- return R.ok();
- }
-
-
- /**
- * 删除
- */
- @RequestMapping("/delete")
- public R delete(@RequestBody Long[] ids){
- lisushenqingService.deleteBatchIds(Arrays.asList(ids));
- return R.ok();
- }
-
- /**
- * 提醒接口
- */
- @RequestMapping("/remind/{columnName}/{type}")
- public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
- @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
- map.put("column", columnName);
- map.put("type", type);
-
- if(type.equals("2")) {
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
- Calendar c = Calendar.getInstance();
- Date remindStartDate = null;
- Date remindEndDate = null;
- if(map.get("remindstart")!=null) {
- Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
- c.setTime(new Date());
- c.add(Calendar.DAY_OF_MONTH,remindStart);
- remindStartDate = c.getTime();
- map.put("remindstart", sdf.format(remindStartDate));
- }
- if(map.get("remindend")!=null) {
- Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
- c.setTime(new Date());
- c.add(Calendar.DAY_OF_MONTH,remindEnd);
- remindEndDate = c.getTime();
- map.put("remindend", sdf.format(remindEndDate));
- }
- }
-
- Wrapper<LisushenqingEntity> wrapper = new EntityWrapper<LisushenqingEntity>();
- if(map.get("remindstart")!=null) {
- wrapper.ge(columnName, map.get("remindstart"));
- }
- if(map.get("remindend")!=null) {
- wrapper.le(columnName, map.get("remindend"));
- }
-
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("xuesheng")) {
- wrapper.eq("xuehao", (String)request.getSession().getAttribute("username"));
- }
-
- int count = lisushenqingService.selectCount(wrapper);
- return R.ok().put("count", count);
- }
-
-
-
- }
- package com.controller;
-
- import java.text.SimpleDateFormat;
- import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.Calendar;
- import java.util.Map;
- import java.util.HashMap;
- import java.util.Iterator;
- import java.util.Date;
- import java.util.List;
- import javax.servlet.http.HttpServletRequest;
-
- import com.utils.ValidatorUtils;
- import org.apache.commons.lang3.StringUtils;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.format.annotation.DateTimeFormat;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- import com.baomidou.mybatisplus.mapper.EntityWrapper;
- import com.baomidou.mybatisplus.mapper.Wrapper;
- import com.annotation.IgnoreAuth;
-
- import com.entity.BaoxiuchuliEntity;
- import com.entity.view.BaoxiuchuliView;
-
- import com.service.BaoxiuchuliService;
- import com.service.TokenService;
- import com.utils.PageUtils;
- import com.utils.R;
- import com.utils.MD5Util;
- import com.utils.MPUtil;
- import com.utils.CommonUtil;
-
-
- /**
- * 报修处理
- * 后端接口
- * @author
- * @email
- * @date 2021-04-20 15:40:28
- */
- @RestController
- @RequestMapping("/baoxiuchuli")
- public class BaoxiuchuliController {
- @Autowired
- private BaoxiuchuliService baoxiuchuliService;
-
-
-
- /**
- * 后端列表
- */
- @RequestMapping("/page")
- public R page(@RequestParam Map<String, Object> params,BaoxiuchuliEntity baoxiuchuli,
- HttpServletRequest request){
-
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("xuesheng")) {
- baoxiuchuli.setXuehao((String)request.getSession().getAttribute("username"));
- }
- EntityWrapper<BaoxiuchuliEntity> ew = new EntityWrapper<BaoxiuchuliEntity>();
- PageUtils page = baoxiuchuliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, baoxiuchuli), params), params));
- return R.ok().put("data", page);
- }
-
- /**
- * 前端列表
- */
- @RequestMapping("/list")
- public R list(@RequestParam Map<String, Object> params,BaoxiuchuliEntity baoxiuchuli, HttpServletRequest request){
-
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("xuesheng")) {
- baoxiuchuli.setXuehao((String)request.getSession().getAttribute("username"));
- }
- EntityWrapper<BaoxiuchuliEntity> ew = new EntityWrapper<BaoxiuchuliEntity>();
- PageUtils page = baoxiuchuliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, baoxiuchuli), params), params));
- return R.ok().put("data", page);
- }
-
- /**
- * 列表
- */
- @RequestMapping("/lists")
- public R list( BaoxiuchuliEntity baoxiuchuli){
- EntityWrapper<BaoxiuchuliEntity> ew = new EntityWrapper<BaoxiuchuliEntity>();
- ew.allEq(MPUtil.allEQMapPre( baoxiuchuli, "baoxiuchuli"));
- return R.ok().put("data", baoxiuchuliService.selectListView(ew));
- }
-
- /**
- * 查询
- */
- @RequestMapping("/query")
- public R query(BaoxiuchuliEntity baoxiuchuli){
- EntityWrapper< BaoxiuchuliEntity> ew = new EntityWrapper< BaoxiuchuliEntity>();
- ew.allEq(MPUtil.allEQMapPre( baoxiuchuli, "baoxiuchuli"));
- BaoxiuchuliView baoxiuchuliView = baoxiuchuliService.selectView(ew);
- return R.ok("查询报修处理成功").put("data", baoxiuchuliView);
- }
-
- /**
- * 后端详情
- */
- @RequestMapping("/info/{id}")
- public R info(@PathVariable("id") Long id){
- BaoxiuchuliEntity baoxiuchuli = baoxiuchuliService.selectById(id);
- return R.ok().put("data", baoxiuchuli);
- }
-
- /**
- * 前端详情
- */
- @RequestMapping("/detail/{id}")
- public R detail(@PathVariable("id") Long id){
- BaoxiuchuliEntity baoxiuchuli = baoxiuchuliService.selectById(id);
- return R.ok().put("data", baoxiuchuli);
- }
-
-
-
-
- /**
- * 后端保存
- */
- @RequestMapping("/save")
- public R save(@RequestBody BaoxiuchuliEntity baoxiuchuli, HttpServletRequest request){
- baoxiuchuli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
- //ValidatorUtils.validateEntity(baoxiuchuli);
-
- baoxiuchuliService.insert(baoxiuchuli);
- return R.ok();
- }
-
- /**
- * 前端保存
- */
- @RequestMapping("/add")
- public R add(@RequestBody BaoxiuchuliEntity baoxiuchuli, HttpServletRequest request){
- baoxiuchuli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
- //ValidatorUtils.validateEntity(baoxiuchuli);
- baoxiuchuli.setUserid((Long)request.getSession().getAttribute("userId"));
-
- baoxiuchuliService.insert(baoxiuchuli);
- return R.ok();
- }
-
- /**
- * 修改
- */
- @RequestMapping("/update")
- public R update(@RequestBody BaoxiuchuliEntity baoxiuchuli, HttpServletRequest request){
- //ValidatorUtils.validateEntity(baoxiuchuli);
- baoxiuchuliService.updateById(baoxiuchuli);//全部更新
- return R.ok();
- }
-
-
- /**
- * 删除
- */
- @RequestMapping("/delete")
- public R delete(@RequestBody Long[] ids){
- baoxiuchuliService.deleteBatchIds(Arrays.asList(ids));
- return R.ok();
- }
-
- /**
- * 提醒接口
- */
- @RequestMapping("/remind/{columnName}/{type}")
- public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
- @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
- map.put("column", columnName);
- map.put("type", type);
-
- if(type.equals("2")) {
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
- Calendar c = Calendar.getInstance();
- Date remindStartDate = null;
- Date remindEndDate = null;
- if(map.get("remindstart")!=null) {
- Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
- c.setTime(new Date());
- c.add(Calendar.DAY_OF_MONTH,remindStart);
- remindStartDate = c.getTime();
- map.put("remindstart", sdf.format(remindStartDate));
- }
- if(map.get("remindend")!=null) {
- Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
- c.setTime(new Date());
- c.add(Calendar.DAY_OF_MONTH,remindEnd);
- remindEndDate = c.getTime();
- map.put("remindend", sdf.format(remindEndDate));
- }
- }
-
- Wrapper<BaoxiuchuliEntity> wrapper = new EntityWrapper<BaoxiuchuliEntity>();
- if(map.get("remindstart")!=null) {
- wrapper.ge(columnName, map.get("remindstart"));
- }
- if(map.get("remindend")!=null) {
- wrapper.le(columnName, map.get("remindend"));
- }
-
- String tableName = request.getSession().getAttribute("tableName").toString();
- if(tableName.equals("xuesheng")) {
- wrapper.eq("xuehao", (String)request.getSession().getAttribute("username"));
- }
-
- int count = baoxiuchuliService.selectCount(wrapper);
- return R.ok().put("count", count);
- }
-
-
-
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。