开发环境

项目编号: spring278-基于Springboot+vue的办公OA系统#毕业设计
开发语言:Java
开发工具:IDEA /Eclipse
数据库:MYSQL5.7
应用服务:Tomcat7/Tomcat8
使用框架:Springboot+vue

项目介绍

随着我国经济的发展, 各类企业也在不断的增加,相应的办公的业务也在不断的增多,这就给日常的办公提出了新的要求,很明显传统的办公模式已经不能够满足当下企业内部的办公需求,传统的办公模式都是已口头传达和纸质文件进行的,在一些管理模式比较先进的企业中会通过Word和Excel等办公软件进行一些日常办公信息的管理,但是这些模式和方法都已经无法满足当下企业发展的需求了,所以继续开发一套基于Java的智能办公系统来帮助企业更好的完成办公信息的处理。
通过智能办公管理系统可以改变企业内部的办公模式,可以让企业内部的用户进行更好的沟通,同时可以更好的了解自己的考勤和工资信息等内容,这可以极大程度的提供办公的效率,从而给提高企业的整体水平,使得企业在激烈的竞争中更好的处理日常的事物。

系统截图



关键代码


@Controller
@RequestMapping("/")
public class UserpanelController {@Autowiredprivate UserDao udao;@Autowiredprivate DeptDao ddao;@Autowiredprivate PositionDao pdao;@Autowiredprivate InformRelationDao irdao;@Autowiredprivate MailreciverDao mdao;@Autowiredprivate NotepaperDao ndao;@Autowiredprivate NotepaperService nservice;@Value("${img.rootpath}")private String rootpath;@RequestMapping("userpanel")public String index(@SessionAttribute("userId") Long userId,Model model,HttpServletRequest req,@RequestParam(value = "page", defaultValue = "0") int page,@RequestParam(value = "size", defaultValue = "10") int size){Pageable pa=new PageRequest(page, size);User user=null;if(!StringUtil.isEmpty((String) req.getAttribute("errormess"))){user=(User) req.getAttribute("users");req.setAttribute("errormess",req.getAttribute("errormess"));}else if(!StringUtil.isEmpty((String) req.getAttribute("success"))){user=(User) req.getAttribute("users"); req.setAttribute("success","fds");}else{//找到这个用户user=udao.findOne(userId);}//找到部门名称String deptname=ddao.findname(user.getDept().getDeptId());//找到职位名称String positionname=pdao.findById(user.getPosition().getId());//找未读通知消息List<NoticeUserRelation> noticelist=irdao.findByReadAndUserId(false, user);//找未读邮件List<Mailreciver> maillist=mdao.findByReadAndDelAndReciverId(false,false, user);//找便签Page<Notepaper> list=ndao.findByUserIdOrderByCreateTimeDesc(user,pa);List<Notepaper> notepaperlist=list.getContent();model.addAttribute("user", user);model.addAttribute("deptname", deptname);model.addAttribute("positionname", positionname);model.addAttribute("noticelist", noticelist.size());model.addAttribute("maillist", maillist.size());model.addAttribute("notepaperlist", notepaperlist);model.addAttribute("page", list);model.addAttribute("url", "panel");return "user/userpanel";}/*** 上下页*/@RequestMapping("panel")public String index(@SessionAttribute("userId") Long userId,Model model,@RequestParam(value = "page", defaultValue = "0") int page,@RequestParam(value = "size", defaultValue = "10") int size){Pageable pa=new PageRequest(page, size);User user=udao.findOne(userId);//找便签Page<Notepaper> list=ndao.findByUserIdOrderByCreateTimeDesc(user,pa);List<Notepaper> notepaperlist=list.getContent();model.addAttribute("notepaperlist", notepaperlist);model.addAttribute("page", list);model.addAttribute("url", "panel");return "user/panel";}/*** 存便签*/@RequestMapping("writep")public String savepaper(Notepaper npaper,@SessionAttribute("userId") Long userId,@RequestParam(value="concent",required=false)String concent){User user=udao.findOne(userId);npaper.setCreateTime(new Date());npaper.setUserId(user);System.out.println("内容"+npaper.getConcent());if(npaper.getTitle()==null||npaper.getTitle()=="")npaper.setTitle("无标题");if(npaper.getConcent()==null||npaper.getConcent()=="")npaper.setConcent(concent);ndao.save(npaper);return "redirect:/userpanel";}/*** 删除便签*/@RequestMapping("notepaper")public String deletepaper(HttpServletRequest request,@SessionAttribute("userId") Long userId){User user=udao.findOne(userId);String paperid=request.getParameter("id");Long lpid = Long.parseLong(paperid);Notepaper note=ndao.findOne(lpid);if(user.getUserId().equals(note.getUserId().getUserId())){nservice.delete(lpid);}else{System.out.println("权限不匹配,不能删除");return "redirect:/notlimit";}return "redirect:/userpanel";}/*** 修改用户* @throws IOException * @throws IllegalStateException */@RequestMapping("saveuser")public String saveemp(@RequestParam("filePath")MultipartFile filePath,HttpServletRequest request,@Valid User user,BindingResult br,@SessionAttribute("userId") Long userId) throws IllegalStateException, IOException{String imgpath=nservice.upload(filePath);User users=udao.findOne(userId);//重新set用户users.setRealName(user.getRealName());users.setUserTel(user.getUserTel());users.setEamil(user.getEamil());users.setAddress(user.getAddress());users.setUserEdu(user.getUserEdu());users.setSchool(user.getSchool());users.setIdCard(user.getIdCard());users.setBank(user.getBank());users.setSex(user.getSex());users.setThemeSkin(user.getThemeSkin());users.setBirth(user.getBirth());if(!StringUtil.isEmpty(user.getUserSign())){users.setUserSign(user.getUserSign());}if(!StringUtil.isEmpty(user.getPassword())){users.setPassword(user.getPassword());}if(!StringUtil.isEmpty(imgpath)){users.setImgPath(imgpath);}request.setAttribute("users", users);ResultVO res = BindingResultVOUtil.hasErrors(br);if (!ResultEnum.SUCCESS.getCode().equals(res.getCode())) {List<Object> list = new MapToList<>().mapToList(res.getData());request.setAttribute("errormess", list.get(0).toString());System.out.println("list错误的实体类信息:" + user);System.out.println("list错误详情:" + list);System.out.println("list错误第一条:" + list.get(0));System.out.println("啊啊啊错误的信息——:" + list.get(0).toString());}else{udao.save(users);request.setAttribute("success", "执行成功!");}return "forward:/userpanel";}@RequestMapping("image/**")public void image(Model model, HttpServletResponse response, @SessionAttribute("userId") Long userId, HttpServletRequest request)throws IOException {String startpath = new String(URLDecoder.decode(request.getRequestURI(), "utf-8"));String path = startpath.replace("/image", "");File f = new File(rootpath, path);ServletOutputStream sos = response.getOutputStream();FileInputStream input = new FileInputStream(f.getPath());byte[] data = new byte[(int) f.length()];IOUtils.readFully(input, data);// 将文件流输出到浏览器IOUtils.write(data, sos);input.close();sos.close();

基于Springboot+vue的办公OA系统#毕业设计相关推荐

  1. 【毕业设计专栏】基于SpringBoot+Vue学生综合测评系统【源码+论文+演示PPT视频】

    目录 1.效果演示 2.系统介绍 3. 系统的详细设计与展示 3.1 学生后台管理模块 3.2管理员功能模块 4.系统分析与设计 4.1可行性分析 4.1.1 技术可行性分析 4.1.2 经济可行性分 ...

  2. 办公OA系统毕业设计论文

    摘 要 随着计算机技术的飞速发展,企业管理的传统方式逐渐将要被电子信息化管理所取代.近几年来,电子信息化是当代非常流行的经营模式,是学校.企业等团体组织最常用的系统,这种电子信息管理系统可以提高管理效 ...

  3. 基于springboot+vue的积分兑换系统

    1 简介 今天向大家介绍一个帮助往届学生完成的毕业设计项目,基于springboot+vue的积分兑换系统. 计算机毕业生设计,课程设计需要帮助的可以找我 2 设计概要 21世纪是信息化时代,随着信息 ...

  4. 基于Springboot+vue的电影购票系统(源代码+数据库)057

    代码地址 https://gitee.com/ynwynwyn/movie-puchase2-public 基于Springboot+vue的电影购票系统(源代码+数据库) 一.系统介绍 本项目前后端 ...

  5. Java+MySQL基于Springboot+vue的汉服交流网站#毕业设计

    项目编号:Java+MySQL spring263-基于Springboot+vue的汉服交流网站#毕业设计 开发语言:Java 开发工具:IDEA /Eclipse 数据库:MYSQL5.7 应用服 ...

  6. 基于PHP的自动化办公OA系统

    随着互联网的发展,传统的办公方式以及不能够满足当前快速发展的办公需求了,为此很多公司都用上了先进的办公系统,也就是我们常说的OA,通过OA办公系统可以大大的简化办公的流程,可以更加合理方便的对公司内的 ...

  7. 基于 SpringBoot+vue的地方美食系统(Java 毕业设计)

    1 简介 这个项目是基于 SpringBoot和 Vue 开发的地方美食系统,包括系统功能模块,管理员功能模块,用户管理模块,功能齐全,可以作为毕业设计,课程设计等.源码下载下来,进行一些简单的部署, ...

  8. Java+MySQL 基于springboot+vue的校园二手交易平台#毕业设计

    项目编号:Java+MySQL spring226-基于springboot的二手交易平台#毕业设计 开发语言:Java 开发工具:IDEA /Eclipse 数据库:MYSQL5.7 应用服务:To ...

  9. 基于springboot+vue的高校迎新系统(前后端分离)

    博主主页:猫头鹰源码 博主简介:Java领域优质创作者.CSDN博客专家.公司架构师.全网粉丝5万+.专注Java技术领域和毕业设计项目实战 主要内容:毕业设计(Javaweb项目|小程序等).简历模 ...

  10. 基于springboot+vue的电子村务系统(前后端分离)

    博主主页:猫头鹰源码 博主简介:Java领域优质创作者.CSDN博客专家.公司架构师.全网粉丝5万+.专注Java技术领域和毕业设计项目实战 主要内容:毕业设计(Javaweb项目|小程序等).简历模 ...

最新文章

  1. 【 Verilog HDL 】寄存器数据类型(reg)与线网数据类型(wire,tri)
  2. JAVA实现顺时针打印矩阵问题(《剑指offer》)
  3. ArcGIS Engine 项目10.1升级10.2
  4. 十分良心!全网最详细的Java 自动内存管理机制及性能优化教程
  5. Dubbo 源码分析 - 集群容错之 Cluster
  6. 台式电脑耳机插孔在哪_不到一千元的迷你电脑究竟如何?Intel NUC7CJYH测评来了...
  7. linux下udp多线程编程
  8. python合并excel工作簿_使用Python将多个excel的多个sheet页合并到一个excel
  9. 设计模式笔记 16. Mediator 中介者模式(行为型模式)
  10. Windows Thrift安装及HelloWorld
  11. linux网络总线的作用,I2C总线是什么?基于I2C总线的Linux系统有哪些优点?
  12. Java常用算法手册-01算法概述
  13. taptap服务器要维护多久,TapTap发布游戏事故保护功能 解决游戏炸服问题
  14. 飞鱼星测试软件,飞鱼星VE984GW+
  15. java每日一练(19_03_23)
  16. 按虚拟化对象划分,实现虚拟化存储的方式,主要包含哪几种?
  17. windowsServer安装sqlServer2008
  18. html ua ios,iOS 修改默认 UserAgent
  19. 【自学python爬虫】:入门书籍推荐(附资源)
  20. NDIS笔记---(2)

热门文章

  1. Java基本数据类型之char
  2. Java连接数据库——JDBC的快速入门
  3. 如何打开别人的Android项目
  4. C语言 —— 符号(C语言的基本符号)
  5. c语言编程的头文件是什么,C语言头文件到底是什么?
  6. 步进电机正反转实验_三相异步电机正反转控制原理图
  7. html记笔记模板,使用html和css实现康奈尔笔记的模板
  8. windows下ssh远程连接服务器
  9. librdkafka配置
  10. 物联网(IOT)介绍与发展背景