——————————DescriptionStart——————————
运行环境 Java≥8、MySQL≥5.7
开发工具 eclipse/idea/myeclipse/sts等均可配置运行
适用 课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
基于javaweb的SpringBoot物业管理系统(java+springboot+layui+html+thymeleaf+maven+mysql)
项目介绍
本项目为后管系统,分为管理员、业主两种角色; 管理员主要功能为: 社区核心业务处理:车位收费管理、物业收费管理、投诉信息管理、报修信息管理 基础信息管理:楼宇管理、房屋管理、业主管理、车位管理、抄表管理、登录信息管理、修改密码 基础类型管理:投诉类型管理、收费类型管理、报修类型管理 数据统计:报修统计 业主主要功能为: 车位费查询、物业费查询、我的投诉列表、我的报修列表、修改密码等;
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
4.数据库:MySql 8.0版本;
技术栈
后端:SpringBoot+Mybatis
前端:HTML+CSS+JavaScript+LayUI
使用说明 运行项目,访问地址:http://localhost:8888 管理员账号/密码:admin/123456 业主账号/密码:kappy/123456 业主账号可通过管理员在业主管理模块进行添加,默认密码为123456
——————————CodeStart——————————
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 int num= parkingService.updateData(park); if (num>0 ){ return R.ok(); }else { return R.fail("修改失败" ); } } @ApiOperation(value = "查询分页数据") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "页码"), @ApiImplicitParam(name = "pageCount", value = "每页条数") }) @GetMapping() public IPage<Parking> findListByPage (@RequestParam Integer page, @RequestParam Integer pageCount) { return parkingService.findListByPage(page, pageCount); } @ApiOperation(value = "id查询") @GetMapping("{id}") public Parking findById (@PathVariable Long id) { return parkingService.findById(id); } } package com.yanzhen.controller;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 @ApiOperation(value = "更新") @RequestMapping("/update") public R update (String oldPwd,String newPwd,Integer id) { Userinfo user=userinfoService.findById(new Long(id)); if (oldPwd.equals(user.getPassword())){ user.setPassword(newPwd); userinfoService.updateData(user); return R.ok(); }else { return R.fail("两次密码不一致" ); } } @ApiOperation(value = "更新") @RequestMapping("/reset") public R reset (Integer id) { Userinfo user=userinfoService.findById(new Long(id)); user.setPassword("123456" ); userinfoService.updateData(user); return R.ok(); } @ApiOperation(value = "查询分页数据") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "页码"), @ApiImplicitParam(name = "pageCount", value = "每页条数") }) @GetMapping() public IPage<Userinfo> findListByPage (@RequestParam Integer page, @RequestParam Integer pageCount) { return userinfoService.findListByPage(page, pageCount); } @ApiOperation(value = "id查询") @GetMapping("{id}") public Userinfo findById (@PathVariable Long id) { return userinfoService.findById(id); } } package com.yanzhen.controller;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 /** * <p > * 前端控制器 * </p > * */ @Api(tags = {""}) @RestController @RequestMapping("/propertyType") public class PropertyTypeController { private Logger log = LoggerFactory.getLogger(getClass()); @Resource private IPropertyTypeService propertyTypeService; @RequestMapping("/queryAll") public List<PropertyType > queryList(){ List<PropertyType > list= propertyTypeService.findAll(); return list; } @RequestMapping("/queryAll1") public JsonObject queryAll(@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "15") Integer limit, String numbers){ IPage<PropertyType > pageInfo= propertyTypeService.findListByPage(page,limit); return new JsonObject(0,"ok",pageInfo.getTotal(),pageInfo.getRecords()); } @ApiOperation(value = "新增") @PostMapping() public int add(@RequestBody PropertyType propertyType){ return propertyTypeService.add(propertyType); } @ApiOperation(value = "新增") @RequestMapping("/addChargeType") public R add1(@RequestBody PropertyType propertyType){ int num= propertyTypeService.add(propertyType);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 return R.fail("修改失败"); } } @ApiOperation(value = "查询分页数据") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "页码"), @ApiImplicitParam(name = "pageCount", value = "每页条数") }) @GetMapping() public IPage<House > findListByPage(@RequestParam Integer page, @RequestParam Integer pageCount){ return houseService.findListByPage(page, pageCount); } @ApiOperation(value = "id查询") @GetMapping("{id}") public House findById(@PathVariable Long id){ return houseService.findById(id); } } package com.yanzhen.controller; /** * <p > * 前端控制器 * </p > * */ @Api(tags = {""}) @RestController @RequestMapping("/notice")
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 public class RecordsController { private Logger log = LoggerFactory.getLogger(getClass()); @Resource private IRecordsService recordsService; @Resource private IPropertyTypeService propertyTypeService; @Resource private IPropertyInfoService propertyInfoService; @RequestMapping("/queryRecordsAll") public JsonObject queryRecordsAll (@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "15") Integer limit, RecordVo recordVo) { JsonObject jsonObject=new JsonObject(); PageInfo <RecordVo> pageInfo=recordsService.findRecordsAll(page,limit,recordVo); jsonObject.setCode(0 ); jsonObject.setCount(pageInfo.getTotal()); jsonObject.setMsg("ok" ); jsonObject.setData(pageInfo.getList()); return jsonObject; } @RequestMapping("/add") @Transactional(rollbackFor = {RuntimeException.class,Error.class}) public R add (@RequestBody Records records) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 } @ApiOperation(value = "id查询") @GetMapping("{id}") public PropertyInfo findById(@PathVariable Long id){ return propertyInfoService.findById(id); } } package com.yanzhen.controller; /** * <p > * 前端控制器 * </p > * */ @Api(tags = {""}) @RestController
——————————PayStart——————————
项目链接: https://javayms.github.io?id=121422292105200en https://javayms.pages.dev?id=121422292105200en