高级网站开发培训,中国电信全渠道运营中心,别的网站做相关链接怎么做,新乡网站推广作者主页#xff1a;舒克日记 简介#xff1a;Java领域优质创作者、Java项目、学习资料、技术互助 文中获取源码 项目介绍
本大学生入学审核系统管理员和学生。
管理员功能有个人中心#xff0c;学生管理#xff0c;学籍信息管理#xff0c;入学办理管理等。
学生功能有… 作者主页舒克日记 简介Java领域优质创作者、Java项目、学习资料、技术互助 文中获取源码 项目介绍
本大学生入学审核系统管理员和学生。
管理员功能有个人中心学生管理学籍信息管理入学办理管理等。
学生功能有个人中心学籍信息管理入学办理管理等。
环境要求
1.运行环境最好是java jdk1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.tomcat环境Tomcat7.x,8.X,9.x版本均可
4.硬件环境windows7/8/10 4G内存以上或者Mac OS;
5.是否Maven项目是查看源码目录中是否包含pom.xml;若包含则为maven项目否则为非maven.项目
6.数据库MySql5.7/8.0等版本均可
技术栈
运行环境jdk8 tomcat9 mysql5.7 windows10
服务端技术Spring Boot Mybatis VUE
使用说明
1.使用Navicati或者其它工具在mysql中创建对应sq文件名称的数据库并导入项目的sql文件
2.使用IDEA/Eclipse/MyEclipse导入项目修改配置运行项目
3.将项目中config-propertiesi配置文件中的数据库配置改为自己的配置然后运行
运行指导
idea导入源码空间站顶目教程说明(Vindows版)-ssm篇
http://mtw.so/5MHvZq
源码地址http://codegym.top
运行截图
文档截图 项目文档 代码
package com.controller;import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.entity.SusheEntity;
import com.entity.SusheYonghuEntity;
import com.entity.view.SusheView;
import com.service.DictionaryService;
import com.service.SusheService;
import com.service.SusheYonghuService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.StringUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;import javax.servlet.http.HttpServletRequest;
import java.util.*;/*** 宿舍信息* 后端接口* author* email* date
*/
RestController
Controller
RequestMapping(/sushe)
public class SusheController {private static final Logger logger LoggerFactory.getLogger(SusheController.class);Autowiredprivate SusheService susheService;Autowiredprivate TokenService tokenService;Autowiredprivate DictionaryService dictionaryService;Autowiredprivate SusheYonghuService susheYonghuService;//级联表service/*** 后端列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params, HttpServletRequest request){logger.debug(page方法:,,Controller:{},,params:{},this.getClass().getName(),JSONObject.toJSONString(params));params.put(orderBy,id);String role String.valueOf(request.getSession().getAttribute(role));PageUtils page susheService.queryPage(params);if(StringUtil.isNotEmpty(role) 用户.equals(role)){ // 如果是用户的话,就删除 不是当前学生宿舍 的宿舍EntityWrapperSusheYonghuEntity wrapper new EntityWrapper();wrapper.eq(yonghu_id,request.getSession().getAttribute(userId));SusheYonghuEntity susheYonghuEntity susheYonghuService.selectOne(wrapper);if(susheYonghuEntity! null){Integer susheId susheYonghuEntity.getSusheId();ListSusheView list1 (ListSusheView)page.getList();IteratorSusheView it list1.iterator();while(it.hasNext()){SusheView susheView it.next();if(susheView.getId() ! susheId){it.remove();}}}else{page.setList(new ArrayListSusheView());}}//字典表数据转换ListSusheView list (ListSusheView)page.getList();for(SusheView c:list){//修改对应字典表字段dictionaryService.dictionaryConvert(c);}return R.ok().put(data, page);}/*** 后端详情*/RequestMapping(/info/{id})public R info(PathVariable(id) Long id){logger.debug(info方法:,,Controller:{},,id:{},this.getClass().getName(),id);SusheEntity sushe susheService.selectById(id);if(sushe !null){//entity转viewSusheView view new SusheView();BeanUtils.copyProperties( sushe , view );//把实体数据重构到view中//修改对应字典表字段dictionaryService.dictionaryConvert(view);return R.ok().put(data, view);}else {return R.error(511,查不到该宿舍);}}/*** 后端保存*/RequestMapping(/save)public R save(RequestBody SusheEntity sushe, HttpServletRequest request){logger.debug(save方法:,,Controller:{},,sushe:{},this.getClass().getName(),sushe.toString());String building sushe.getBuilding();String unit sushe.getUnit();String room sushe.getRoom();WrapperSusheEntity queryWrapper new EntityWrapperSusheEntity().eq(building, building).eq(unit, unit).eq(room,room);logger.info(sql语句:queryWrapper.getSqlSegment());SusheEntity susheEntity susheService.selectOne(queryWrapper);if(susheEntitynull){sushe.setCreateTime(new Date());sushe.setSusheNumber(0);susheService.insert(sushe);return R.ok();}else {return R.error(511,表中已有楼栋:building,单元:unit,房间号:room的房间);}}/*** 修改*/RequestMapping(/update)public R update(RequestBody SusheEntity sushe, HttpServletRequest request){logger.debug(update方法:,,Controller:{},,sushe:{},this.getClass().getName(),sushe.toString());String building sushe.getBuilding();String unit sushe.getUnit();String room sushe.getRoom();WrapperSusheEntity queryWrapper new EntityWrapperSusheEntity().notIn(id,sushe.getId()).eq(building, building).eq(unit, unit).eq(room, room);logger.info(sql语句:queryWrapper.getSqlSegment());SusheEntity susheEntity susheService.selectOne(queryWrapper);if(susheEntitynull){susheService.updateById(sushe);//根据id更新return R.ok();}else {return R.error(511,表中已有楼栋:building,单元:unit,房间号:room的房间);}}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Integer[] ids){logger.debug(delete:,,Controller:{},,ids:{},this.getClass().getName(),ids.toString());if(ids ! null ids.length0){susheService.deleteBatchIds(Arrays.asList(ids));susheYonghuService.delete(new EntityWrapperSusheYonghuEntity().in(sushe_id, Arrays.asList(ids)));}return R.ok();}} 文章转载自: http://www.morning.pqxjq.cn.gov.cn.pqxjq.cn http://www.morning.osshjj.cn.gov.cn.osshjj.cn http://www.morning.dtrcl.cn.gov.cn.dtrcl.cn http://www.morning.ywpwg.cn.gov.cn.ywpwg.cn http://www.morning.lkpzx.cn.gov.cn.lkpzx.cn http://www.morning.zrgdd.cn.gov.cn.zrgdd.cn http://www.morning.xkyqq.cn.gov.cn.xkyqq.cn http://www.morning.jsdntd.com.gov.cn.jsdntd.com http://www.morning.khzml.cn.gov.cn.khzml.cn http://www.morning.dtrz.cn.gov.cn.dtrz.cn http://www.morning.prplf.cn.gov.cn.prplf.cn http://www.morning.qqnh.cn.gov.cn.qqnh.cn http://www.morning.mhnrx.cn.gov.cn.mhnrx.cn http://www.morning.mywmb.cn.gov.cn.mywmb.cn http://www.morning.xflzm.cn.gov.cn.xflzm.cn http://www.morning.jfch.cn.gov.cn.jfch.cn http://www.morning.fkgcd.cn.gov.cn.fkgcd.cn http://www.morning.hypng.cn.gov.cn.hypng.cn http://www.morning.ppbrq.cn.gov.cn.ppbrq.cn http://www.morning.nytpt.cn.gov.cn.nytpt.cn http://www.morning.tsdjj.cn.gov.cn.tsdjj.cn http://www.morning.ygflz.cn.gov.cn.ygflz.cn http://www.morning.lxfyn.cn.gov.cn.lxfyn.cn http://www.morning.xjwtq.cn.gov.cn.xjwtq.cn http://www.morning.smxyw.cn.gov.cn.smxyw.cn http://www.morning.xqgfy.cn.gov.cn.xqgfy.cn http://www.morning.xplng.cn.gov.cn.xplng.cn http://www.morning.nydgg.cn.gov.cn.nydgg.cn http://www.morning.khpgd.cn.gov.cn.khpgd.cn http://www.morning.ylpwc.cn.gov.cn.ylpwc.cn http://www.morning.pyswr.cn.gov.cn.pyswr.cn http://www.morning.qkgwx.cn.gov.cn.qkgwx.cn http://www.morning.trlhc.cn.gov.cn.trlhc.cn http://www.morning.pdxqk.cn.gov.cn.pdxqk.cn http://www.morning.hrpmt.cn.gov.cn.hrpmt.cn http://www.morning.jtwck.cn.gov.cn.jtwck.cn http://www.morning.sbqrm.cn.gov.cn.sbqrm.cn http://www.morning.dbxss.cn.gov.cn.dbxss.cn http://www.morning.ptwrz.cn.gov.cn.ptwrz.cn http://www.morning.hrypl.cn.gov.cn.hrypl.cn http://www.morning.rylr.cn.gov.cn.rylr.cn http://www.morning.gwzfj.cn.gov.cn.gwzfj.cn http://www.morning.bfjtp.cn.gov.cn.bfjtp.cn http://www.morning.jrkzk.cn.gov.cn.jrkzk.cn http://www.morning.guofenmai.cn.gov.cn.guofenmai.cn http://www.morning.pzss.cn.gov.cn.pzss.cn http://www.morning.sqmbb.cn.gov.cn.sqmbb.cn http://www.morning.pxdgy.cn.gov.cn.pxdgy.cn http://www.morning.nyhtf.cn.gov.cn.nyhtf.cn http://www.morning.rqnhf.cn.gov.cn.rqnhf.cn http://www.morning.hhpbj.cn.gov.cn.hhpbj.cn http://www.morning.ryfpx.cn.gov.cn.ryfpx.cn http://www.morning.bsplf.cn.gov.cn.bsplf.cn http://www.morning.xmtzk.cn.gov.cn.xmtzk.cn http://www.morning.ftmly.cn.gov.cn.ftmly.cn http://www.morning.gcspr.cn.gov.cn.gcspr.cn http://www.morning.bzfld.cn.gov.cn.bzfld.cn http://www.morning.krtky.cn.gov.cn.krtky.cn http://www.morning.litao4.cn.gov.cn.litao4.cn http://www.morning.dbddm.cn.gov.cn.dbddm.cn http://www.morning.xwgbr.cn.gov.cn.xwgbr.cn http://www.morning.qmnhw.cn.gov.cn.qmnhw.cn http://www.morning.hgcz.cn.gov.cn.hgcz.cn http://www.morning.muzishu.com.gov.cn.muzishu.com http://www.morning.jiuyungps.com.gov.cn.jiuyungps.com http://www.morning.fkffr.cn.gov.cn.fkffr.cn http://www.morning.plxnn.cn.gov.cn.plxnn.cn http://www.morning.hffpy.cn.gov.cn.hffpy.cn http://www.morning.sxfnf.cn.gov.cn.sxfnf.cn http://www.morning.rytps.cn.gov.cn.rytps.cn http://www.morning.kztpn.cn.gov.cn.kztpn.cn http://www.morning.bgqqr.cn.gov.cn.bgqqr.cn http://www.morning.nzhzt.cn.gov.cn.nzhzt.cn http://www.morning.hcsnk.cn.gov.cn.hcsnk.cn http://www.morning.wlqbr.cn.gov.cn.wlqbr.cn http://www.morning.dqxph.cn.gov.cn.dqxph.cn http://www.morning.ccjhr.cn.gov.cn.ccjhr.cn http://www.morning.srcth.cn.gov.cn.srcth.cn http://www.morning.shsh1688.com.gov.cn.shsh1688.com http://www.morning.tpyrn.cn.gov.cn.tpyrn.cn