(java毕业设计源码)基于java(springboot)产业园区智慧公寓管理系统
基于php花店订购管理系统
项目获取请查看文末官网
[java毕业设计项目源码,java毕设下载]基于java(springboot)产业园区智慧公寓管理系统,是基于java编程语言,mysql数据库,springboot框架和idea开发工具,本系统分为管理员、企业、用户三个角色,本系统带论文,适合作为java毕业设计和java课程设计源码下载进行参考学习。
一.技术环境
jdk版本:1.8
IDE工具:idea
数据库: mysql
编程语言: Java
后端框架:springboot
前端框架:vue
详细技术:HTML+CSS+JS+JAVA+Mysql+Springboot+Vue+Maven
二.项目文件(项目获取请看文末官网)
系统源码+安装视频教程+数据库+安装环境+项目论文

三.系统功能
基于java(springboot)框架实现的产业园区智慧公寓管理系统
系统包含两种角色:管理员、企业用户、用户,系统分为前台和后台两大模块,主要功能如下。
前台:
1.首页:展示公寓的基本信息、房屋租赁信息等,提供导航链接。
2.房屋信息:展示公寓内各个房屋的信息,包括房屋类型、面积、格、租赁状态等
3.交流论坛:提供租户之间的交流平台,可以发布帖子、回复他人、查看热门帖子等。
4.公告通知:展示公寓发布的最新公告和通知。
5.企业:展示与公寓相关的企业信息,包括企业名称、联系方式等
6.个人中心:用户可以管理个人信息、查看自己的房屋收藏、留言、租赁订单等
后台:
1.企业用户个人中心:企业用户可以管理个人信息,包括修改密码、查看个人信息等。
2.企业管理:管理员可以管理公寓内的企业信息,包括添加、删除、编辑等操作。
3.房屋信息管理:管理员可以管理公寓内的房屋信息,包括添加、删除、编辑等操作。
4.缴费管理:管理员可以管理租户的缴费情况,包括查看缴费记录、发送提醒等操作。
5.设施预约管理:管理员可以管理公寓内的设施预约情况,包括添加、删除、编辑等操作。
6.维修报备管理:管理员可以管理维修报备情况,包括查看报备记录、分配维修任务等操作。
7.交流论坛管理:管理员可以管理交流论坛的内容,包括审核、删除违规内容等操作。
8.公告通知管理:管理员可以管理公寓发布的公告信息,包括添加、删除、编辑等操作,
9.管理员个人中心:管理员可以管理个人信息,包括修改密码、查看个人信息等。
10.管理员管理:管理员可以管理其他管理员账号,包括添加、删除、编辑等操作
11.用户管理:管理员可以管理租户账号,包括查看用户列表、禁用用户等操作。
12.企业用户管理:管理员可以管理企业用户账号,包括查看用户列表、禁用用户等操作。
13.基础数据管理:管理员可以管理系统的基础数据,如网站配置、分类信息等。
14.轮播图信息:管理员可以管理首页轮播图的展示内容。
四.代码示例
package com.lmu.controller;
/**
* 和登陆有关的都在这里
*/
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.lmu.model.Role;
import com.lmu.model.User;
import com.lmu.service.RoleService;
import com.lmu.service.UserService;
import com.lmu.utils.JsonUtils;
import com.lmu.utils.UserUtils;
import org.apache.commons.collections.map.HashedMap;
import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
@Controller("loginController")
@Scope("prototype")
public class LoginController extends ActionSupport {
@Autowired
private UserService userService;
@Autowired
private RoleService roleService;
private User user;
private Map<String, Object> map = new HashMap();
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public UserService getUserService() {
return userService;
}
public void setUserService(UserService userService) {
this.userService = userService;
}
/**
* 用户登陆
* @return
*/
public void index() throws IOException {
User user1 = userService.getUser(user);
if (user1 != null){
if (user1.getIsSh() == 1){
if (user1.getRole().getEnName().equals("admin")){
ActionContext.getContext().getSession().put("user", user1);
}
if (user1.getRole().getEnName().equals("js")){
ActionContext.getContext().getSession().put("user1", user1);
}
if (user1.getRole().getEnName().equals("xs")){
ActionContext.getContext().getSession().put("user2", user1);
}
map.put("flag", 1);
map.put("url", "login_indexs.do");
map.put("id", user1.getId());
JsonUtils.toJson(map);
} else {
map.put("flag", 2);
JsonUtils.toJson(map);
}
} else {
map.put("flag", 3);
JsonUtils.toJson(map);
}
}
public String indexs() throws IOException {
User u = UserUtils.getUser();
if (u != null){
ActionContext.getContext().put("user", u);
String ss = u.getRole().getEnName();
ActionContext.getContext().put("role", u.getRole().getEnName());
}
return SUCCESS;
}
//登陆页面
public String login() {
return SUCCESS;
}
//退出
public String tuichu() {
ActionContext ac = ActionContext.getContext();
Map session = ac.getSession();
session.remove("userName");
session.remove("userId");
ServletActionContext.getRequest().getSession().invalidate();
return "login";
}
}
package com.lmu.controller;
/**
* 用户新增
*/
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.lmu.model.Role;
import com.lmu.model.User;
import com.lmu.service.RoleService;
import com.lmu.service.UserService;
import com.lmu.utils.JsonUtils;
import com.lmu.utils.Pager;
import com.lmu.utils.UserUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import java.awt.event.FocusEvent;
import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@Controller("userController")
@Scope("prototype")
public class UserController extends ActionSupport implements ModelDriven<User> {
@Autowired
private UserService userService;
@Autowired
private RoleService roleService;
private User user;
private Integer userId;
private Map<String, Object> map = new HashMap();
/**
* list
*
* @return
*/
public String list() throws IOException {
User user1 = UserUtils.getUser();
if (user1 == null || user1.getId() == null){
ActionContext.getContext().put("login", 1);
return SUCCESS;
}
Pager<User> pagers = null;
Role role = user1.getRole();
if (role.getEnName().equals("admin")) {
pagers = userService.getList(user);
ActionContext.getContext().put("pagers", pagers);
ActionContext.getContext().put("user", user1);
ActionContext.getContext().put("role", role);
ActionContext.getContext().put("bean", user);
return SUCCESS;
} else if (role.getEnName().equals("xs") || role.getEnName().equals("js")) {
pagers = userService.getList(user1);
ActionContext.getContext().put("pagers", pagers);
ActionContext.getContext().put("bean", user);
return SUCCESS;
}
return null;
}
/**
* 跳转add
*
* @return
*/
public String add() {
Pager<Role> pagers = roleService.pagers();
ActionContext.getContext().put("pagers", pagers);
return SUCCESS;
}
/**
* 查询修改
*
* @return
*/
public String edit() {
User bean = userService.findById(userId);
Pager<Role> pagers = roleService.pagers();
ActionContext.getContext().put("bean", bean);
ActionContext.getContext().put("pagers", pagers);
return SUCCESS;
}
/**
* 审核
*
* @return
*/
public void updateSh() throws IOException {
user.setIsSh(1);
userService.updates(user);
map.put("flag", true);
map.put("url", "user_list.do");
JsonUtils.toJson(map);
}
/**
* 更新
*
* @return
*/
public String update() throws IOException {
if (user.getPass().equals("")){
user.setPass(null);
}
userService.updates(user);
map.put("flag", true);
map.put("url", "user_list.do");
JsonUtils.toJson(map);
return SUCCESS;
}
/**
* 保存
*
* @return
*/
public void save() throws IOException {
if (userService.getUser(user) != null){
map.put("flag", false);
map.put("url", "login_login.do");
JsonUtils.toJson(map);
} else {
user.setTime(new Date());
userService.save(user);
map.put("flag", true);
map.put("url", "login_login.do");
JsonUtils.toJson(map);
}
}
public void delete() throws IOException {
User user1 = userService.findById(userId);
user1.setIsDelete(1);
userService.update(user1);
map.put("flag", true);
map.put("url", "user_list.do");
JsonUtils.toJson(map);
}
@Override
public User getModel() {
if (user == null) {
user = new User();
}
return user;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
}
五.项目截图










六.项目获取点击下面网站获取
更多推荐


所有评论(0)