——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明






基于javaweb的SpringBoot小区物业管理系统(java+springboot+html+layui+mysql)
项目介绍
本项目为后管系统,分为管理员、业主两种角色; 管理员主要功能为: 社区核心业务处理:车位收费管理、物业收费管理、投诉信息管理、报修信息管理 基础信息管理:楼宇管理、房屋管理、业主管理、车位管理、抄表管理、登录信息管理、修改密码 基础类型管理:投诉类型管理、收费类型管理、报修类型管理 数据统计:报修统计 业主主要功能为: 车位费查询、物业费查询、我的投诉列表、我的报修列表、修改密码等;
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
5.数据库: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 33 34 35
| @ApiOperation(value = "查询分页数据") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "页码"), @ApiImplicitParam(name = "pageCount", value = "每页条数") }) @GetMapping() public IPage<Carcharge> findListByPage(@RequestParam Integer page, @RequestParam Integer pageCount){ return carchargeService.findListByPage(page, pageCount); }
@ApiOperation(value = "id查询") @GetMapping("{id}") public Carcharge findById(@PathVariable Long id){ return carchargeService.findById(id); }
} package com.yanzhen.controller;
/** * <p> * 前端控制器 * </p> * */ @Api(tags = {""}) @RestController @RequestMapping("/propertyType") public class PropertyTypeController {
private Logger log = LoggerFactory.getLogger(getClass());
|
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 47 48 49
| PageInfo<Repair> pageInfo=repairService.findRepairAll(page,limit,repair); return new JsonObject(0,"ok",pageInfo.getTotal(),pageInfo.getList());
}
@RequestMapping("/queryRepairAll2") public JsonObject queryRepairAll2(Repair repair, HttpServletRequest request, @RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "15") Integer limit){
Userinfo userinfo= (Userinfo) request.getSession().getAttribute("user"); String username=userinfo.getUsername(); Owner owner=ownerService.queryOwnerByName(username); repair.setOwnerId(owner.getId()); PageInfo<Repair> pageInfo=repairService.findRepairAll(page,limit,repair); return new JsonObject(0,"ok",pageInfo.getTotal(),pageInfo.getList());
}
@RequestMapping("/queryAll") public List<Repairtype> queryAll(){ return repairtypeService.findList(); }
@RequestMapping("/deleteByIds") public R deleteByIds(String ids){ List<String> list= Arrays.asList(ids.split(",")); for(String id:list){ repairService.delete(Long.parseLong(id)); }
return R.ok(); }
@ApiOperation(value = "新增") @RequestMapping("/add") public R add(@RequestBody Repair repair, HttpServletRequest request) { Userinfo userinfo= (Userinfo) request.getSession().getAttribute("user"); String username=userinfo.getUsername(); Owner owner=ownerService.queryOwnerByName(username); Repair repair1=new Repair(); repair1.setRemarks(repair.getRemarks());
|
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 47 48 49 50
| for(String id:list){ complaintService.delete(Long.parseLong(id)); } return R.ok(); }
@ApiOperation(value = "更新") @RequestMapping("/update") public R update(Integer id){ Complaint complaint=new Complaint(); complaint.setId(id); complaint.setStatus(1);
int num= complaintService.updateData(complaint); if(num>0){ return R.ok(); }else{ return R.fail("处理失败"); } }
@ApiOperation(value = "更新") @RequestMapping("/update1") public R update1(@RequestBody Complaint complaint){ int num=complaintService .updateData(complaint); if(num>0){ return R.ok(); }else{ return R.fail("修改失败"); } }
@ApiOperation(value = "查询分页数据") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "页码"), @ApiImplicitParam(name = "pageCount", value = "每页条数") }) @GetMapping() public IPage<Complaint> findListByPage(@RequestParam Integer page, @RequestParam Integer pageCount){ return complaintService.findListByPage(page, pageCount); }
@ApiOperation(value = "id查询") @GetMapping("{id}") public Complaint findById(@PathVariable Long id){ return complaintService.findById(id); }
|
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
| for(String id:list){ repairtypeService.delete(Long.parseLong(id)); } return R.ok(); }
@ApiOperation(value = "更新") @PutMapping() public int update(@RequestBody Repairtype repairtype){ return repairtypeService.updateData(repairtype); }
@ApiOperation(value = "更新") @RequestMapping("/update") public R update1(@RequestBody Repairtype repairtype){ int num= repairtypeService.updateData(repairtype); if(num>0){ return R.ok(); }else{ return R.fail("修改失败"); } }
@ApiOperation(value = "查询分页数据") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "页码"), @ApiImplicitParam(name = "pageCount", value = "每页条数") }) @GetMapping() public IPage<Repairtype> findListByPage(@RequestParam Integer page, @RequestParam Integer pageCount){ return repairtypeService.findListByPage(page, pageCount); }
@ApiOperation(value = "id查询") @GetMapping("{id}") public Repairtype findById(@PathVariable Long id){ return repairtypeService.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
| }) @GetMapping() public IPage<Repairtype> findListByPage(@RequestParam Integer page, @RequestParam Integer pageCount){ return repairtypeService.findListByPage(page, pageCount); }
@ApiOperation(value = "id查询") @GetMapping("{id}") public Repairtype findById(@PathVariable Long id){ return repairtypeService.findById(id); }
} package com.yanzhen.controller;
/** * <p> * 前端控制器 * </p> * */ @Api(tags = {""}) @RestController @RequestMapping("/parking") public class ParkingController {
private Logger log = LoggerFactory.getLogger(getClass());
@Resource
|
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=341023491103200yk
https://javayms.pages.dev?id=341023491103200yk