计算机毕业设计-基于Java+SSM架构的双星小区物业管理系统项目开发实战(附源码+论文)

大家好!我是职场程序猿,感谢您阅读本文,欢迎一键三连哦。

💞当前专栏:Java毕业设计

精彩专栏推荐👇🏻👇🏻👇🏻

🎀 Python毕业设计
🌎微信小程序毕业设计

开发运行环境

  • 框架:ssm
  • JDK版本:JDK1.8
  • 服务器:tomcat7
  • 数据库:mysql 5.7
  • 数据库工具:Navicat12
  • 开发软件:eclipse/myeclipse/idea
  • Maven包:Maven3.3.9
  • 浏览器:谷歌浏览器

源码下载地址:

https://download.csdn.net/download/m0_46388260/89282172

论文目录

【如需全文请按文末获取联系】
在这里插入图片描述
在这里插入图片描述

一、项目简介

双星小区物业管理系统在对开发工具的选择上也很慎重,为了便于开发实现,选择的开发工具为Eclipse,选择的数据库工具为Mysql。以此搭建开发环境实现双星小区物业管理系统的功能,包括设施管理,收费管理,投诉管理,报修管理,房间管理以及留言管理等功能。

二、系统设计

2.1软件功能模块设计

为了让系统的编码可以顺利进行,特意对本系统功能进行细分设计,管理员的功能在经过细分后,设计的功能结构见下图。管理员管理房间,设施,收费,投诉,报修以及公告信息。
在这里插入图片描述
员工的功能在经过细分后,设计的功能结构见下图。员工负责处理项目维修以及用户投诉,管理收费和设施,查看公告和留言。
在这里插入图片描述

用户的功能在经过细分后,设计的功能结构见下图。用户发布投诉以及报修信息,查询设施,房间以及收费信息。
在这里插入图片描述

2.2数据库设计

(1)设计的用户实体,其具备的属性见下图。
在这里插入图片描述
(2)设计的投诉实体,其具备的属性见下图。
在这里插入图片描述
(4)设计的报修实体,其具备的属性见下图。
在这里插入图片描述
(5)设计的上述实体间关系见下图。
在这里插入图片描述

三、系统项目部分截图

3.1管理员功能实现

员工管理
管理员管理员工,其运行效果见下图。在本页面,管理员能够下载员工合同,修改员工的入职考核分数,员工照片,员工邮箱等信息,可以删除指定的员工。
在这里插入图片描述
收费管理
管理员管理收费信息。其运行效果见下图。收费信息包括预收金额,实收金额,收费名称,用户身份证号,用户照片等信息,管理员可以修改收费信息,对指定的收费信息进行删除。
在这里插入图片描述
房间管理
管理员可以管理房间,其运行效果见下图。管理员可以添加房间信息,包括房间号,单元,楼栋等信息,可以批量删除房间信息,可以修改房间信息。
在这里插入图片描述

3.2员工功能实现

投诉管理
员工管理投诉信息。其运行效果见下图。员工查询投诉信息,对用户投诉进行回复并处理。
在这里插入图片描述
报修管理
员工管理报修信息,其运行效果见下图。员工查询报修信息,对用户报修信息进行查看并维修用户报修项目。
在这里插入图片描述
设施管理
员工管理设施信息,其运行效果见下图。员工添加设施信息,包括设施类型,设施购买价格,购买时间等信息,可以修改设施信息或批量删除设施信息。
在这里插入图片描述

3.3用户功能实现

留言板管理
用户管理留言板。其运行效果见下图。用户添加留言,点击查看按钮可以查看留言详情。
在这里插入图片描述
添加报修
用户添加报修,其运行效果见下图。用户在当前页面登记报修信息,包括报修项目以及报修详情信息。
在这里插入图片描述
添加投诉
用户添加投诉。其运行效果见下图。用户具有添加投诉信息的权限,用户登记投诉信息需要登记投诉详情并核对个人信息即可提交投诉信息。
在这里插入图片描述

四、部分核心代码

package com.controller;


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.StringUtil;
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.ShoufeiEntity;

import com.service.ShoufeiService;
import com.entity.view.ShoufeiView;
import com.service.YonghuService;
import com.entity.YonghuEntity;

import com.utils.PageUtils;
import com.utils.R;

/**
 * 收费
 * 后端接口
 * @author
 * @email
 * @date 2021-04-27
*/
@RestController
@Controller
@RequestMapping("/shoufei")
public class ShoufeiController {
    private static final Logger logger = LoggerFactory.getLogger(ShoufeiController.class);

    @Autowired
    private ShoufeiService shoufeiService;


    @Autowired
    private TokenService tokenService;
    @Autowired
    private DictionaryService dictionaryService;



    //级联表service
    @Autowired
    private YonghuService yonghuService;


    /**
    * 后端列表
    */
    @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(StringUtil.isNotEmpty(role) && "用户".equals(role)){
            params.put("yonghuId",request.getSession().getAttribute("userId"));
        }
        params.put("orderBy","id");
        PageUtils page = shoufeiService.queryPage(params);

        //字典表数据转换
        List<ShoufeiView> list =(List<ShoufeiView>)page.getList();
        for(ShoufeiView c:list){
            //修改对应字典表字段
            dictionaryService.dictionaryConvert(c);
        }
        return R.ok().put("data", page);
    }

    /**
    * 后端详情
    */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
        ShoufeiEntity shoufei = shoufeiService.selectById(id);
        if(shoufei !=null){
            //entity转view
            ShoufeiView view = new ShoufeiView();
            BeanUtils.copyProperties( shoufei , view );//把实体数据重构到view中

            //级联表
            YonghuEntity yonghu = yonghuService.selectById(shoufei.getYonghuId());
            if(yonghu != null){
                BeanUtils.copyProperties( yonghu , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段
                view.setYonghuId(yonghu.getId());
            }
            //修改对应字典表字段
            dictionaryService.dictionaryConvert(view);
            return R.ok().put("data", view);
        }else {
            return R.error(511,"查不到数据");
        }

    }

    /**
    * 后端保存
    */
    @RequestMapping("/save")
    public R save(@RequestBody ShoufeiEntity shoufei, HttpServletRequest request){
        logger.debug("save方法:,,Controller:{},,shoufei:{}",this.getClass().getName(),shoufei.toString());
//        Wrapper<ShoufeiEntity> queryWrapper = new EntityWrapper<ShoufeiEntity>()
//            .eq("yonghu_id", shoufei.getYonghuId())
//            .eq("shoufei_name", shoufei.getShoufeiName())
//            .eq("shoufei_types", shoufei.getShoufeiTypes())
//            ;
//        logger.info("sql语句:"+queryWrapper.getSqlSegment());
//        ShoufeiEntity shoufeiEntity = shoufeiService.selectOne(queryWrapper);
//        if(shoufeiEntity==null){
            shoufei.setInsertTime(new Date());
            shoufei.setCreateTime(new Date());
        //  String role = String.valueOf(request.getSession().getAttribute("role"));
        //  if("".equals(role)){
        //      shoufei.set
        //  }
            shoufeiService.insert(shoufei);
            return R.ok();
//        }else {
//            return R.error(511,"表中有相同数据");
//        }
    }

    /**
    * 后端修改
    */
    @RequestMapping("/update")
    public R update(@RequestBody ShoufeiEntity shoufei, HttpServletRequest request){
        logger.debug("update方法:,,Controller:{},,shoufei:{}",this.getClass().getName(),shoufei.toString());
        //根据字段查询是否有相同数据
//        Wrapper<ShoufeiEntity> queryWrapper = new EntityWrapper<ShoufeiEntity>()
//            .notIn("id",shoufei.getId())
//            .andNew()
//            .eq("yonghu_id", shoufei.getYonghuId())
//            .eq("shoufei_name", shoufei.getShoufeiName())
//            .eq("shoufei_types", shoufei.getShoufeiTypes())
//            ;
//        logger.info("sql语句:"+queryWrapper.getSqlSegment());
//        ShoufeiEntity shoufeiEntity = shoufeiService.selectOne(queryWrapper);
//        if(shoufeiEntity==null){
            //  String role = String.valueOf(request.getSession().getAttribute("role"));
            //  if("".equals(role)){
            //      shoufei.set
            //  }
            shoufeiService.updateById(shoufei);//根据id更新
            return R.ok();
//        }else {
//            return R.error(511,"表中有相同数据");
//        }
    }



    /**
    * 删除
    */
    @RequestMapping("/delete")
    public R delete(@RequestBody Integer[] ids){
        logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
        shoufeiService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }






}


获取源码或论文

如需对应的论文或源码,以及其他定制需求,也可以下方微信联系我。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值