SpringMVC+Vue项目智慧社区管理系统

末获取源码 

开发语言:Java

开发工具:IDEA /Eclipse

数据库:MYSQL5.7

应用服务:Tomcat7/Tomcat8

使用框架ssm+vue

JDK版本:jdk1.8

前言介绍  

目前许多人仍将传统的纸质工具作为信息管理的主要工具,而网络技术的应用只是起到辅助作用。在对网络工具的认知程度上,较为传统的office软件等仍是人们使用的主要工具,而相对全面且专业的智慧社区管理系统的信息管理软件仍没有得到大多数人的了解或认可。本选题则旨在通过管理方式,管理员;首页、个人中心、用户管理、业主管理、公告信息管理、房屋信息管理、订单信息管理、报修信息管理、投诉信息管理、缴费信息管理、留言板管理、系统管理,用户;首页、个人中心、订单信息管理、报修信息管理、投诉信息管理、缴费信息管理、留言板管理,业主首页、个人中心、房屋信息管理、订单信息管理、报修信息管理、投诉信息管理、缴费信息管理、留言板管理,前台首页;首页、公告信息、房屋信息、新闻资讯、留言反馈、个人中心、后台管理等信息功能,从而达到对智慧社区管理系统的高效管理。 

项目设计目标与原则 

1、关于智慧社区管理系统的基本要求

1)功能要求:可以管理首页、个人中心、用户管理、业主管理、公告信息管理、房屋信息管理、订单信息管理、报修信息管理、投诉信息管理、缴费信息管理、留言板管理、系统管理等功能模块。

2)性能:在不同操作系统上均能无差错实现在不同类型的用户登入相应界面后能不出差错、方便地进行预期操作。

3)安全与保密要求:用户都必须进行注册、登录才能进入系统。

4)环境要求:支持Windows系列、Vista系统等多种操作系统使用。

2、开发目标

智慧社区管理系统的主要开发目标如下:

1)实现管理系统信息关系的系统化、规范化和自动化;

2)减少维护人员的工作量以及实现用户对信息的控制和管理;

3)方便查询信息及管理信息等;

4)通过网络操作,提高改善处理问题和操作人员工作的效率;

5)考虑到用户多样性特点,要求界面和操作简便易懂。

3、设计原则

智慧社区管理系统采用SSM框架,Mysql数据库开发,充分保证了系统稳定性、完整性。

智慧社区管理系统的设计与实现的设计思想如下:

  1. 操作简单方便、系统界面安全良好、简单明了的页面布局、方便查询相关信息。

2、即时可见:对智慧社区管理系统信息的处理将立马在对应地点可以查询到,从而实现“即时发布、即时见效”的系统功能。

系统体系结构

智慧社区管理系统的结构图 

 登录系统结构图,如图

系统结构图,如图

系统详细设计

前台首页功能模块

智慧社区管理系统,在系统首页可以查看首页、公告信息、房屋信息、新闻资讯、留言反馈、个人中心、后台管理等内容,如图

用户注册、用户登录,在注册页面可以填写账号、密码、姓名、身份证、手机等信息进行注册、登录,如图 

用户注册

用户登录界面图

个人中心,在个人中心页面可以填写用户名、姓名、性别、头像、身份证、手机等信息进行更新信息、退出登录,如图

公告信息

房屋信息,在房屋信息页面可以查看房屋名称、房屋类型、图片、房型、面积、月租金、咨询电话、详细地址、状态等信息进行租赁或点我收藏操作,如图

新闻资讯

管理员功能模块

管理员登录,通过填写用户名、密码、角色等信息,输入完成后选择登录即可进入智慧社区管理系统,如图 

管理员登录界面图

管理员登录进入智慧社区管理系统查看首页、个人中心、用户管理、业主管理、公告信息管理、房屋信息管理、订单信息管理、报修信息管理、投诉信息管理、缴费信息管理、留言板管理、系统管理等内容,如图

管理员功能界面图

用户管理,在用户管理页面可以查看用户名、姓名、性别、头像、身份证、手机等信息,并可根据需要对用户管理进行详情,修改,删除等操作,如图

用户管理界面图

业主管理,在业主管理页面可以查看账号、姓名、性别、头像、身份证、手机等信息,并可根据需要对业主管理进行详情、修改、删除等操作,如图 

业主管理界面图

房屋信息管理,在房屋信息管理页面可以查看房屋名称、房屋类型、图片、房型、面积、月租金、咨询电话、详细地址、状态等信息,并可根据需要对房屋信息管理进行详情、修改、删除等操作,如图 

房屋信息管理界面图

订单信息管理,在订单信息管理页面可以查看订单编号、房屋名称、房屋类型、月租金、租赁时长、总价格、备注、租赁日期、用户名、姓名、手机、是否支付、审核回复、审核状态等内容,并可根据需要对订单信息管理进行详情、修改、删除等操作,如图

订单信息管理界面图

报修信息管理,在报修信息管理页面可以查看名称、报修物品、报修日期、用户名、姓名、审核回复、审核状态等信息,并可根据需要对报修信息管理进行详情、修改、删除等操作,如图

报修信息管理界面图

投诉信息管理界面图

缴费信息管理界面图

用户功能模块

用户登录进入智慧社区管理系统可以查看首页、个人中心、订单信息管理、报修信息管理、投诉信息管理、缴费信息管理、留言板管理等内容,如图

订单信息管理,在订单信息管理页面可以查看订单编号、房屋名称、房屋类型、月租金、租赁时长、总价格、备注、租赁日期、用户名、姓名、手机、是否支付、审核回复、审核状态等信息进行详情、删除等操作,如图 

留言板管理,在留言板管理页面可以查看用户名、留言内容、回复内容等信息进行详情、删除等操作,如图

业主功能模块

业主登录进入智慧社区管理系统可以查看首页、个人中心、房屋信息管理、订单信息管理、报修信息管理、投诉信息管理、缴费信息管理、留言板管理等内容,如图

房屋信息管理,在房屋信息管理页面可以查看房屋名称、房屋类型、图片、房型、面积、月租金、咨询电话、详细地址、状态等信息进行详情、修改、删除等操作,如图

订单信息管理,在订单信息管理页面可以查看订单编号、房屋名称、房屋类型、月租金、租赁时长、总价格、备注、租赁日期、用户名、姓名、手机、是否支付、审核回复、审核状态等信息进行详情、删除等操作,如图

 
部分核心代码:  

/**
 * 上传文件映射表
 */
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{
	@Autowired
    private ConfigService configService;
	/**
	 * 上传文件
	 */
	@RequestMapping("/upload")
	public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception {
		if (file.isEmpty()) {
			throw new EIException("上传文件不能为空");
		}
		String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);
		String fileName = new Date().getTime()+"."+fileExt;
		File dest = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
		file.transferTo(dest);
		if(StringUtils.isNotBlank(type) && type.equals("1")) {
			ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
			if(configEntity==null) {
				configEntity = new ConfigEntity();
				configEntity.setName("faceFile");
				configEntity.setValue(fileName);
			} else {
				configEntity.setValue(fileName);
			}
			configService.insertOrUpdate(configEntity);
		}
		return R.ok().put("file", fileName);
	}
	
	/**
	 * 下载文件
	 */
	@IgnoreAuth
	@RequestMapping("/download")
	public void download(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) {
		try {
			File file = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);
			if (file.exists()) {
				response.reset();
				response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName+"\"");
				response.setHeader("Cache-Control", "no-cache");
				response.setHeader("Access-Control-Allow-Credentials", "true");
				response.setContentType("application/octet-stream; charset=UTF-8");
				IOUtils.write(FileUtils.readFileToByteArray(file), response.getOutputStream());
			}
 
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
}

报修信息

**
 * 报修信息
 * 后端接口
 * @author 
 * @email 
 * @date 2021-05-10 10:26:09
 */
@RestController
@RequestMapping("/baoxiuxinxi")
public class BaoxiuxinxiController {
    @Autowired
    private BaoxiuxinxiService baoxiuxinxiService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,BaoxiuxinxiEntity baoxiuxinxi, 
		HttpServletRequest request){

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("yonghu")) {
			baoxiuxinxi.setYonghuming((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<BaoxiuxinxiEntity> ew = new EntityWrapper<BaoxiuxinxiEntity>();
		PageUtils page = baoxiuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, baoxiuxinxi), params), params));
        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,BaoxiuxinxiEntity baoxiuxinxi, 
		HttpServletRequest request){
        EntityWrapper<BaoxiuxinxiEntity> ew = new EntityWrapper<BaoxiuxinxiEntity>();
		PageUtils page = baoxiuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, baoxiuxinxi), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( BaoxiuxinxiEntity baoxiuxinxi){
       	EntityWrapper<BaoxiuxinxiEntity> ew = new EntityWrapper<BaoxiuxinxiEntity>();
      	ew.allEq(MPUtil.allEQMapPre( baoxiuxinxi, "baoxiuxinxi")); 
        return R.ok().put("data", baoxiuxinxiService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(BaoxiuxinxiEntity baoxiuxinxi){
        EntityWrapper< BaoxiuxinxiEntity> ew = new EntityWrapper< BaoxiuxinxiEntity>();
 		ew.allEq(MPUtil.allEQMapPre( baoxiuxinxi, "baoxiuxinxi")); 
		BaoxiuxinxiView baoxiuxinxiView =  baoxiuxinxiService.selectView(ew);
		return R.ok("查询报修信息成功").put("data", baoxiuxinxiView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        BaoxiuxinxiEntity baoxiuxinxi = baoxiuxinxiService.selectById(id);
        return R.ok().put("data", baoxiuxinxi);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        BaoxiuxinxiEntity baoxiuxinxi = baoxiuxinxiService.selectById(id);
        return R.ok().put("data", baoxiuxinxi);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody BaoxiuxinxiEntity baoxiuxinxi, HttpServletRequest request){
    	baoxiuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(baoxiuxinxi);

        baoxiuxinxiService.insert(baoxiuxinxi);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody BaoxiuxinxiEntity baoxiuxinxi, HttpServletRequest request){
    	baoxiuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(baoxiuxinxi);

        baoxiuxinxiService.insert(baoxiuxinxi);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody BaoxiuxinxiEntity baoxiuxinxi, HttpServletRequest request){
        //ValidatorUtils.validateEntity(baoxiuxinxi);
        baoxiuxinxiService.updateById(baoxiuxinxi);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        baoxiuxinxiService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<BaoxiuxinxiEntity> wrapper = new EntityWrapper<BaoxiuxinxiEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("yonghu")) {
			wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
		}

		int count = baoxiuxinxiService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}

猜你喜欢

转载自blog.csdn.net/m0_49113107/article/details/124795441