马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
作者简介:Java范畴优质创作者、CSDN博客专家 、CSDN内容合资人、掘金特邀作者、阿里云博客专家、51CTO特邀作者、多年架构师计划履历、多年校企相助履历,被多个学校常年聘为校外企业导师,引导弟子结业计划并到场弟子结业答辩引导,有较为丰富的干系履历。等待与各位高校西席、企业讲师以及偕行互换相助
紧张内容:Java项目、Python项目、前端项目、PHP、ASP.NET、人工智能与大数据、单片机开发、物联网 计划与开发计划、简历模板、学习资料、口试题库、技能相助、就业引导等
业务范围:免费功能计划、开题陈诉、使命书、中期查抄PPT、体系功能实现、代码编写、论文编写和辅导、论文降重、恒久答辩答疑辅导、腾讯聚会会议一对一专业解说辅导答辩、模仿答辩演练、和明确代码逻辑思绪等。
收藏点赞不迷路 关注作者有利益
文末获取源码
项目编号:BS-XCX-074
一,环境先容
语言环境:微信小步调
数据库:Mysql: mysql5.7
配景WEB框架:SpringBoot+Vue
开发工具:IDEA和微信开发者工具
二,项目简介
疫情发作以来,越来越多的用户借助于移动手机、电脑完成生存中的事件,很多的传统行业也更加器重与互联网的联合。本体系以高校就业雇用体系为主题,使用不绝发展和进步的网络技能,实现用户注册、登录、欣赏公告信息、企业关照、简历投递、职位雇用、企业等信息,并举行简历、公告信息、企业关照、简历投递、职位雇用、职位收藏、职位留言、论坛信息的利用等。本论文先容高校就业雇用体系软件的开发,紧张是借助微信平台来完成的,框架使用的是Spring Boot框架,编程语言使用的是Java语言,数据库使用的是MySQL数据库。
在2011年1月,“微信”如许一个可以为手机、平板等通讯工具提供通讯渠道而且是免费的软件就如许子横空出世了,到2013年11月的时间,注册和使用微信的用户数量到达了一个新的高度同时在使用群体上也有了很大的突破,渐渐的已经乐成渗出到了大多数人的一样平常生存中。微信是以移动互联网为媒介,可随时随地发送文本、图片、语音等信息的互换平台[5]。微信深受天下数亿用户的欢迎,已经成为我国登录次数最多的手机应用步调之一[6]。微信小步调是一种不消下载和安装就能使用的小软件,微信团队于2016年九月发布了一款 APP,该平台可以让 APP “触手可及”,无需下载,只需扫描或搜刮就能打开[7]。作为一种互换工具,微信具有遍及度高、使用方便等特点,已经成为线上服务的紧张辅助工具[8-10]。
在信息化期间配景之下,人们的生存步调不绝加快,对信息及时性的要求也随之进步。传统的媒体传播方式已经无法顺应大众对信息的捕捉和传播更加机动高效的要求。以是基于微信的小步调这种“无需下载,用完就走”的体系渐渐受到了各人的器重和喜好。在网络环境下,基于微信小步调的高校就业雇用体系应用的及时性和机动性要比传统的媒体更好一些。一旦小步调上线了,不管身处何方,只要用户联网了,都可以立即获取到他们所需的资料和消息。
高校就业雇用体系它还可以为用户提供一个智能的管理平台,让管理员随时相识用户的需求,增长管理员和用户之间的接洽。可以很好地办理信息的快捷化和团体覆盖化,进步工作服从。
现今互联网在人们的生存、生产中已经变得不可或缺,越来越占据主导职位,手机、平板等已成为人们获取信息的紧张本事,通过网络来实现对高校就业雇用体系的管理已经成为一种一定趋势。
本体系是一款基于微信小步调的高校就业雇用体系,研究的紧张内容是针对传统的管理缺陷,使用盘算机技能相联合开发一款在管理上服从更高,更便捷的小步调;在计划方案上实现了对技能和运行状态做出了分析。使用户足不出户就可以查询到所需求的信息。其研究紧张内容如下:
(1)下载安装干系的项目安装包jdk、tomcat、maven等;
(2)搭建开发环境:IDEA、微信开发者、MySQL数据库;
(3)简约的界面计划;
(4)用户注册、登录、欣赏公告信息、企业关照、简历投递、职位雇用、企业等资讯,管理我的等功能的计划。
文档布局
三,体系展示
配景管理界面
四,核心代码展示
- package com.controller;
- import java.io.File;
- import java.math.BigDecimal;
- import java.net.URL;
- import java.text.SimpleDateFormat;
- import com.alibaba.fastjson.JSONObject;
- import java.util.*;
- import org.springframework.beans.BeanUtils;
- import javax.servlet.http.HttpServletRequest;
- import org.springframework.web.context.ContextLoader;
- import javax.servlet.ServletContext;
- import com.service.TokenService;
- import com.utils.*;
- import java.lang.reflect.InvocationTargetException;
- import com.service.DictionaryService;
- import org.apache.commons.lang3.StringUtils;
- import com.annotation.IgnoreAuth;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.*;
- import com.baomidou.mybatisplus.mapper.EntityWrapper;
- import com.baomidou.mybatisplus.mapper.Wrapper;
- import com.entity.*;
- import com.entity.view.*;
- import com.service.*;
- import com.utils.PageUtils;
- import com.utils.R;
- import com.alibaba.fastjson.*;
- /**
- * 公告信息
- * 后端接口
- * @author
- * @email
- */
- @RestController
- @Controller
- @RequestMapping("/news")
- public class NewsController {
- private static final Logger logger = LoggerFactory.getLogger(NewsController.class);
- private static final String TABLE_NAME = "news";
- @Autowired
- private NewsService newsService;
- @Autowired
- private TokenService tokenService;
- @Autowired
- private DictionaryService dictionaryService;//字典表
- @Autowired
- private ForumService forumService;//论坛
- @Autowired
- private GongsiService gongsiService;//企业
- @Autowired
- private JianliService jianliService;//简历
- @Autowired
- private TongzhiService tongzhiService;//企业通知
- @Autowired
- private ToudiService toudiService;//简历投递
- @Autowired
- private YonghuService yonghuService;//用户
- @Autowired
- private ZhaopinService zhaopinService;//职位招聘
- @Autowired
- private ZhaopinCollectionService zhaopinCollectionService;//职位收藏
- @Autowired
- private ZhaopinLiuyanService zhaopinLiuyanService;//职位留言
- @Autowired
- private UsersService usersService;//管理员
- /**
- * 后端列表
- */
- @RequestMapping("/page")
- public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
- logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
- String role = String.valueOf(request.getSession().getAttribute("role"));
- if(false)
- return R.error(511,"永不会进入");
- else if("用户".equals(role))
- params.put("yonghuId",request.getSession().getAttribute("userId"));
- else if("企业".equals(role))
- params.put("gongsiId",request.getSession().getAttribute("userId"));
- params.put("newsDeleteStart",1);params.put("newsDeleteEnd",1);
- CommonUtil.checkMap(params);
- PageUtils page = newsService.queryPage(params);
- //字典表数据转换
- List<NewsView> list =(List<NewsView>)page.getList();
- for(NewsView c:list){
- //修改对应字典表字段
- dictionaryService.dictionaryConvert(c, request);
- }
- return R.ok().put("data", page);
- }
- /**
- * 后端详情
- */
- @RequestMapping("/info/{id}")
- public R info(@PathVariable("id") Long id, HttpServletRequest request){
- logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
- NewsEntity news = newsService.selectById(id);
- if(news !=null){
- //entity转view
- NewsView view = new NewsView();
- BeanUtils.copyProperties( news , view );//把实体数据重构到view中
- //修改对应字典表字段
- dictionaryService.dictionaryConvert(view, request);
- return R.ok().put("data", view);
- }else {
- return R.error(511,"查不到数据");
- }
- }
- /**
- * 后端保存
- */
- @RequestMapping("/save")
- public R save(@RequestBody NewsEntity news, HttpServletRequest request){
- logger.debug("save方法:,,Controller:{},,news:{}",this.getClass().getName(),news.toString());
- String role = String.valueOf(request.getSession().getAttribute("role"));
- if(false)
- return R.error(511,"永远不会进入");
- Wrapper<NewsEntity> queryWrapper = new EntityWrapper<NewsEntity>()
- .eq("news_name", news.getNewsName())
- .eq("news_types", news.getNewsTypes())
- .eq("news_delete", 1)
- ;
- logger.info("sql语句:"+queryWrapper.getSqlSegment());
- NewsEntity newsEntity = newsService.selectOne(queryWrapper);
- if(newsEntity==null){
- news.setInsertTime(new Date());
- news.setNewsDelete(1);
- news.setCreateTime(new Date());
- newsService.insert(news);
- return R.ok();
- }else {
- return R.error(511,"表中有相同数据");
- }
- }
- /**
- * 后端修改
- */
- @RequestMapping("/update")
- public R update(@RequestBody NewsEntity news, HttpServletRequest request) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException, InstantiationException {
- logger.debug("update方法:,,Controller:{},,news:{}",this.getClass().getName(),news.toString());
- NewsEntity oldNewsEntity = newsService.selectById(news.getId());//查询原先数据
- String role = String.valueOf(request.getSession().getAttribute("role"));
- // if(false)
- // return R.error(511,"永远不会进入");
- if("".equals(news.getNewsPhoto()) || "null".equals(news.getNewsPhoto())){
- news.setNewsPhoto(null);
- }
- newsService.updateById(news);//根据id更新
- return R.ok();
- }
- /**
- * 删除
- */
- @RequestMapping("/delete")
- public R delete(@RequestBody Integer[] ids, HttpServletRequest request){
- logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
- List<NewsEntity> oldNewsList =newsService.selectBatchIds(Arrays.asList(ids));//要删除的数据
- ArrayList<NewsEntity> list = new ArrayList<>();
- for(Integer id:ids){
- NewsEntity newsEntity = new NewsEntity();
- newsEntity.setId(id);
- newsEntity.setNewsDelete(2);
- list.add(newsEntity);
- }
- if(list != null && list.size() >0){
- newsService.updateBatchById(list);
- }
- return R.ok();
- }
- /**
- * 批量上传
- */
- @RequestMapping("/batchInsert")
- public R save( String fileName, HttpServletRequest request){
- logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);
- Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
- try {
- List<NewsEntity> newsList = new ArrayList<>();//上传的东西
- Map<String, List<String>> seachFields= new HashMap<>();//要查询的字段
- Date date = new Date();
- int lastIndexOf = fileName.lastIndexOf(".");
- if(lastIndexOf == -1){
- return R.error(511,"该文件没有后缀");
- }else{
- String suffix = fileName.substring(lastIndexOf);
- if(!".xls".equals(suffix)){
- return R.error(511,"只支持后缀为xls的excel文件");
- }else{
- URL resource = this.getClass().getClassLoader().getResource("static/upload/" + fileName);//获取文件路径
- File file = new File(resource.getFile());
- if(!file.exists()){
- return R.error(511,"找不到上传文件,请联系管理员");
- }else{
- List<List<String>> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件
- dataList.remove(0);//删除第一行,因为第一行是提示
- for(List<String> data:dataList){
- //循环
- NewsEntity newsEntity = new NewsEntity();
- // newsEntity.setNewsName(data.get(0)); //公告信息标题 要改的
- // newsEntity.setNewsTypes(Integer.valueOf(data.get(0))); //公告信息类型 要改的
- // newsEntity.setNewsPhoto("");//详情和图片
- // newsEntity.setInsertTime(date);//时间
- // newsEntity.setNewsContent("");//详情和图片
- // newsEntity.setNewsDelete(1);//逻辑删除字段
- // newsEntity.setCreateTime(date);//时间
- newsList.add(newsEntity);
- //把要查询是否重复的字段放入map中
- }
- //查询是否重复
- newsService.insertBatch(newsList);
- return R.ok();
- }
- }
- }
- }catch (Exception e){
- e.printStackTrace();
- return R.error(511,"批量插入数据异常,请联系管理员");
- }
- }
- /**
- * 前端列表
- */
- @IgnoreAuth
- @RequestMapping("/list")
- public R list(@RequestParam Map<String, Object> params, HttpServletRequest request){
- logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
- CommonUtil.checkMap(params);
- PageUtils page = newsService.queryPage(params);
- //字典表数据转换
- List<NewsView> list =(List<NewsView>)page.getList();
- for(NewsView c:list)
- dictionaryService.dictionaryConvert(c, request); //修改对应字典表字段
- return R.ok().put("data", page);
- }
- /**
- * 前端详情
- */
- @RequestMapping("/detail/{id}")
- public R detail(@PathVariable("id") Long id, HttpServletRequest request){
- logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
- NewsEntity news = newsService.selectById(id);
- if(news !=null){
- //entity转view
- NewsView view = new NewsView();
- BeanUtils.copyProperties( news , view );//把实体数据重构到view中
- //修改对应字典表字段
- dictionaryService.dictionaryConvert(view, request);
- return R.ok().put("data", view);
- }else {
- return R.error(511,"查不到数据");
- }
- }
- /**
- * 前端保存
- */
- @RequestMapping("/add")
- public R add(@RequestBody NewsEntity news, HttpServletRequest request){
- logger.debug("add方法:,,Controller:{},,news:{}",this.getClass().getName(),news.toString());
- Wrapper<NewsEntity> queryWrapper = new EntityWrapper<NewsEntity>()
- .eq("news_name", news.getNewsName())
- .eq("news_types", news.getNewsTypes())
- .eq("news_delete", news.getNewsDelete())
- // .notIn("news_types", new Integer[]{102})
- ;
- logger.info("sql语句:"+queryWrapper.getSqlSegment());
- NewsEntity newsEntity = newsService.selectOne(queryWrapper);
- if(newsEntity==null){
- news.setInsertTime(new Date());
- news.setNewsDelete(1);
- news.setCreateTime(new Date());
- newsService.insert(news);
- return R.ok();
- }else {
- return R.error(511,"表中有相同数据");
- }
- }
- }
复制代码 五,干系作品展示
基于Java开发、Python开发、PHP开发、C#开发等干系语言开发的实战项目
基于Nodejs、Vue等前端技能开发的前端实战项目
基于微信小步调和安卓APP应用开发的干系作品
基于51单片机等嵌入式物联网 开发应用
基于各类算法实现的AI智能应用
基于大数据实现的各类数据管理和保举体系
|