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

基于javaweb+mysql的springboot物业管理系统(java+springboot+maven+ssm+thymeleaf+html+jquery+mysql)

基于javaweb+mysql的springboot物业管理系统(java+springboot+maven+ssm+thymeleaf+html+jquery+mysql)

私信源码获取及调试交流

运行环境

Java≥8、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

基于javaweb的SpringBoot物业管理系统(java+springboot+maven+ssm+thymeleaf+html+jquery+mysql)

项目介绍

基于SpringBoot的物业管理系统

角色:管理员、业主

管理员和业主

业主功能: 缴费信息,报修,投诉,注册,公告,修改密码等

管理员功能:用户管理,楼栋信息,房间信息,房屋绑定,车位绑定,缴费信息,报修信息,投诉信息,修改密码,公告信息等

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。 2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA; 3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 4.数据库:MySql 5.7/8.0版本均可; 5.是否Maven项目:是;

技术栈

后端:SpringBoot(Spring+SpringMVC+Mybatis)

前端: JSP、css、JavaScript、JQuery、Ajax

使用说明

项目运行: 1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件; 2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行; 3. 将项目中application.yml配置文件中的数据库配置改为自己的配置; 4. 运行项目,控制台提示运行成功后再去运行前端项目; 5. 管理员用户名密码:admin/admin 普通用户名密码:user/123456

文档介绍(课题背景与意义、系统实现功能、课题研究现状、系统相关技术、java技术、B/S架构、Mysql介绍、Mysql环境配置、Springboot框架、系统需求分析、系统功能、可行性研究、经济可行性、技术可行性、运行可行性、事件可行性、系统业务过程分析、系统业务过程分析、系统用例图、系统设计、数据库设计、系统整体设计、系统设计思想、系统流程图、系统详情设计、系统功能模块、系统功能模块、管理员功能模块):

小区物业报修:

我的账单展示页:

小区物业系统登录页:

小区物业系统统计展示页面:

投诉管理展示页面:

用户管理展示页面:

缴费管理展示页面:

    public String car(){return "page/template/car";}@GetMapping("/user")public String user(){return "page/template/user";}@GetMapping("/user/login")public String userlogin(Model model,HttpSession session){if (session.getAttribute("timeout") != null){model.addAttribute("timeout",session.getAttribute("timeout"));}return "page/system/login";}@GetMapping("/user/index")public String userindex(Model model,HttpSession session){if(session.getAttribute("user") == null){session.setAttribute("timeout","登录已过期,请重新登录");return "redirect:/login";}else {return "page/system/index";}}@GetMapping("/user/console")public String userconsole(Model model,HttpSession session){User user = (User) session.getAttribute("user");Gonggao gonggao = gonggaoService.getGonggao();if (gonggao == null){gonggao = new Gonggao();gonggao.setTitle("暂无");gonggao.setContent("暂无");}int repairCount = repairService.getCountByUserId(user.getId());int tousuCount = tousuService.getCountByUserId(user.getId());int paymentCount = user_paymentService.getCountByUserId(user.getId());int userRepair = repairService.getPendingCountByUserId(user.getId());int userTousu = tousuService.getPendingCountByUserId(user.getId());
        List<Tousu> list = template.query("select * from tousu where user_id = "+uid+" and status = "+status+" limit ?,?" ,new Object[]{(page-1)*limit,limit},new BeanPropertyRowMapper(Tousu.class));if (list!=null){for (Tousu tousu:list){List<User> users = template.query("select * from user where id = ?" ,new Object[]{tousu.getUser_id()}, new BeanPropertyRowMapper(User.class));tousu.setUser(users.get(0));}return list;}else{return null;}}public int getCountByUserId(Integer id) {int count = template.queryForObject("select count(*) from tousu where user_id = "+id, Integer.class);return count;}public int getPendingCountByUserId(Integer id) {int count = template.queryForObject("select count(*) from tousu where status=0 and user_id = "+id, Integer.class);return count;}public int getCount(Integer id) {int count = template.queryForObject("select count(*) from tousu where user_id = "+id, Integer.class);return count;}public List<Tousu> getAllToususByUser(int page, int limit, Integer id) {List<Tousu> list = template.query("select * from tousu where user_id = ? limit ?,?" ,new Object[]{id,(page-1)*limit,limit},new BeanPropertyRowMapper(Tousu.class));if (!list.isEmpty()){return list;}else{return null;}}
}

@RestController
public class DanyuanController {@AutowiredDanyuanService service;@GetMapping("/api/getAllDanyuans")public ResBody getAllDanyuans(@RequestParam int page,@RequestParam int limit) {ResBody resBody = new ResBody();int count = service.getCount();List<Danyuan> list= service.getAllDanyuans(page, limit);resBody.setCount(count);resBody.setData(list);resBody.setCode(0);return resBody;}@PostMapping("/api/addDanyuan")public ResBody addDanyuan(@RequestBody Danyuan danyuan) {ResBody resBody = new ResBody();int i = service.addDanyuan(danyuan);if (i == 1){resBody.setCode(200);resBody.setMsg("添加成功");}else{resBody.setCode(500);resBody.setMsg("添加失败");}return resBody;}@PostMapping("/api/updateDanyuan")public ResBody updateDanyuan(@RequestBody Danyuan danyuan) {ResBody resBody = new ResBody();int i = service.updateDanyuan(danyuan);if (i == 1){resBody.setCode(200);resBody.setMsg("修改成功");}else{resBody.setCode(500);resBody.setMsg("修改失败");}return resBody;}@GetMapping("/api/delDanyuan")public ResBody delDanyuan(@RequestParam int id) {
        resBody.setCode(0);return resBody;}@PostMapping("/api/addBuilding")public ResBody addBuilding(@RequestBody Building building
http://www.xdnf.cn/news/832141.html

相关文章:

  • win11检测工具在哪 win11检测工具位置介绍
  • c盘fakepath是什么意思_C盘越用越大?告诉你什么文件可以删!
  • SVN客户端(Windows)——Tortoise SVN(中文版 )的下载及安装
  • 【网页设计期末大作业源代码】使用HTML5+CSS3+JavaScript十分钟快速制作一个简约大气设计类静态网站|自适应响应式|自制超简单的美术公司网页|直接可以修改使用|适合新手超友好易上手新手必
  • 如何清理电脑浏览器缓存,4款常用浏览器清理缓存的方法
  • 搜索引擎的网站登录入口
  • 新手入门C语言
  • SPSS是什么?
  • 17 VRRP基础(虚拟路由器冗余协议)
  • 计算机网络技术专业,热门就业方向和就业前景
  • 什么是对象数组
  • UFT使用技巧
  • SqlCommand的三种方法以及封装SqlHelper类
  • “String.h” 源代码总结
  • 什么是Symbian
  • Windows修改默认路由(Default Gateway)
  • sleep、usleep、nanosleep函数
  • CAXA3D实体设计2023安装教程(非常详细)从零基础入门到精通,看完这一篇就够了_caxa2023(2)
  • maya2016到2022在线文档地址分享
  • latin1详解
  • 项目需求分析5大常见问题及解决方案
  • 相似度算法
  • C++:OutputDebugString作用(以VS2019为演示例子)
  • 【计算机视觉】基础图像知识点整理
  • 一.基本的select语句
  • 50种网络故障及解决方法,还不赶紧收藏!
  • MySQL数据库基础学习入门教程(非常详细)
  • Java技术在嵌入式系统中的应用 J2me
  • C # FileStream文件流
  • Java入门学习