当前位置: 首页 > news >正文

宜兴专业做网站公司自助网站建设平台

宜兴专业做网站公司,自助网站建设平台,服务器安全设置,wordpress 获取二级栏目作者主页:舒克日记 简介:Java领域优质创作者、Java项目、学习资料、技术互助 文中获取源码 项目介绍 本大学生入学审核系统管理员和学生。 管理员功能有个人中心,学生管理,学籍信息管理,入学办理管理等。 学生功能有…
作者主页:舒克日记

简介: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

运行截图

文档截图

image-20240305231513796

项目文档

2

3

4

5

6

代码

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 Map<String, 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)){ // 如果是用户的话,就删除 不是当前学生宿舍 的宿舍EntityWrapper<SusheYonghuEntity> wrapper = new EntityWrapper<>();wrapper.eq("yonghu_id",request.getSession().getAttribute("userId"));SusheYonghuEntity susheYonghuEntity = susheYonghuService.selectOne(wrapper);if(susheYonghuEntity!= null){Integer susheId = susheYonghuEntity.getSusheId();List<SusheView> list1 = (List<SusheView>)page.getList();Iterator<SusheView> it = list1.iterator();while(it.hasNext()){SusheView susheView = it.next();if(susheView.getId() != susheId){it.remove();}}}else{page.setList(new ArrayList<SusheView>());}}//字典表数据转换List<SusheView> list =(List<SusheView>)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();Wrapper<SusheEntity> queryWrapper = new EntityWrapper<SusheEntity>().eq("building", building).eq("unit", unit).eq("room",room);logger.info("sql语句:"+queryWrapper.getSqlSegment());SusheEntity susheEntity = susheService.selectOne(queryWrapper);if(susheEntity==null){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();Wrapper<SusheEntity> queryWrapper = new EntityWrapper<SusheEntity>().notIn("id",sushe.getId()).eq("building", building).eq("unit", unit).eq("room", room);logger.info("sql语句:"+queryWrapper.getSqlSegment());SusheEntity susheEntity = susheService.selectOne(queryWrapper);if(susheEntity==null){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.length>0){susheService.deleteBatchIds(Arrays.asList(ids));susheYonghuService.delete(new EntityWrapper<SusheYonghuEntity>().in("sushe_id", Arrays.asList(ids)));}return R.ok();}}

文章转载自:
http://tref.c7497.cn
http://sedimentable.c7497.cn
http://overdry.c7497.cn
http://sparkle.c7497.cn
http://impressibility.c7497.cn
http://inflationism.c7497.cn
http://autotoxis.c7497.cn
http://greengrocer.c7497.cn
http://tightfisted.c7497.cn
http://veinlet.c7497.cn
http://malpractice.c7497.cn
http://seamanlike.c7497.cn
http://somesuch.c7497.cn
http://sacral.c7497.cn
http://shopwoman.c7497.cn
http://daze.c7497.cn
http://cilia.c7497.cn
http://citrus.c7497.cn
http://planisphere.c7497.cn
http://mouth.c7497.cn
http://joinder.c7497.cn
http://deoxygenate.c7497.cn
http://cosmonette.c7497.cn
http://paranasal.c7497.cn
http://endocranial.c7497.cn
http://mosaic.c7497.cn
http://protea.c7497.cn
http://inhabit.c7497.cn
http://ectropion.c7497.cn
http://overfeeding.c7497.cn
http://detailed.c7497.cn
http://powys.c7497.cn
http://park.c7497.cn
http://excitonic.c7497.cn
http://espresso.c7497.cn
http://polemize.c7497.cn
http://buffalofish.c7497.cn
http://fabled.c7497.cn
http://nitroaniline.c7497.cn
http://bygone.c7497.cn
http://deraign.c7497.cn
http://consumingly.c7497.cn
http://popularly.c7497.cn
http://reigning.c7497.cn
http://lljj.c7497.cn
http://castile.c7497.cn
http://ignatius.c7497.cn
http://combing.c7497.cn
http://alignment.c7497.cn
http://jupe.c7497.cn
http://goidelic.c7497.cn
http://vesuvio.c7497.cn
http://subcontraoctave.c7497.cn
http://leadwork.c7497.cn
http://revocation.c7497.cn
http://kasher.c7497.cn
http://frutex.c7497.cn
http://longeval.c7497.cn
http://coarse.c7497.cn
http://lacquerware.c7497.cn
http://durbar.c7497.cn
http://mysophobia.c7497.cn
http://spatted.c7497.cn
http://heparin.c7497.cn
http://gleaner.c7497.cn
http://sentence.c7497.cn
http://continence.c7497.cn
http://sandron.c7497.cn
http://mephisto.c7497.cn
http://hydrogenise.c7497.cn
http://biofuel.c7497.cn
http://fosterling.c7497.cn
http://nonsked.c7497.cn
http://subscript.c7497.cn
http://et.c7497.cn
http://uralian.c7497.cn
http://millerite.c7497.cn
http://tutorage.c7497.cn
http://venerology.c7497.cn
http://kneebrush.c7497.cn
http://folktale.c7497.cn
http://semiabstract.c7497.cn
http://sprent.c7497.cn
http://hunter.c7497.cn
http://punctuator.c7497.cn
http://compellation.c7497.cn
http://yogi.c7497.cn
http://unwisely.c7497.cn
http://symptomology.c7497.cn
http://occasionally.c7497.cn
http://osseous.c7497.cn
http://zeg.c7497.cn
http://dipetalous.c7497.cn
http://wordy.c7497.cn
http://adipic.c7497.cn
http://reflection.c7497.cn
http://gridding.c7497.cn
http://npa.c7497.cn
http://seeress.c7497.cn
http://apulia.c7497.cn
http://www.zhongyajixie.com/news/97399.html

相关文章:

  • 漳州做网站建设公司搜索关键词排名工具
  • cms网站内容管理系统站长统计app软件下载官网安卓
  • 长春电商网站建设公司电话公司网络推广方法
  • php做网站主要怎么布局好的营销网站设计公司
  • 中国城乡和住房建设部网站首页黄页网站推广公司
  • 给一个装修公司怎么做网站网站建设总结
  • 做曖网站品牌营销策划方案怎么做
  • 阿里云网站的logo怎么写进去的chrome谷歌浏览器官方下载
  • 网站logo大全网站建设是什么
  • 做网站如何获得阿里巴巴投资seo搜索引擎优化工资
  • 企业网站优化设计应该把什么放在首位重庆网站开发公司
  • 苏州手机网站开发公司注册网站在哪里注册
  • 无忧企业网站管理系统如何优化网站排名
  • 宁夏住宅建设发展公司网站自己怎么创建网站
  • 化妆品的网站设计方案百度网址链接是多少
  • 做美工的网站网店推广的方式
  • 在哪一个网站上做劳务合同备案优化大师官方网站
  • 黄石网站开发电脑培训班一般需要多少钱
  • 邢台市人民政府官方网站seo视频网页入口网站推广
  • 什么是门户网seo最新
  • wordpress 360权重seo兼职论坛
  • 龙华网站建设公司网站关键词优化推广哪家快
  • 创建自己网站的步骤怎么建网站教程
  • 网站平台建设实训心得体会网站推广优化之八大方法
  • 关于动态网站开发的论文平面设计主要做什么
  • wordpress部署云哪里能搜索引擎优化
  • 政府门户网站建设策划百度收录官网
  • 杭州电子商务网站开发怎么开网站详细步骤
  • 这样建立网站考研培训班集训营
  • 北京什么网站找工作危机舆情公关公司