Java graduation project - property management system

Posted by danielhalawi on Wed, 05 Jan 2022 06:00:03 +0100

🔥 Author's home page: Crazy Walker 🔥

💖 Introduction: New Star creator in Java field 🏆, [computer source code house] public name author ✌ Resume template, learning materials, interview question bank [pay attention to me and give it to you] 💖

💖 Get the source code at the end of the article 💖

Tools download link 😎😎😎:
JDK version download
Eclipse download link
Mysql download link
tomcat download link
Sunflower remote tool

Computer course design | property management system code of graduation project - property management system based on SSM

preface

This article mainly introduces the functions of the property management system. The system is divided into three roles: administrator, owner and employee

1, System function

1.1 development environment

  • Development language: Java
  • Technology: SSM
  • Database: MySQL
  • Architecture: B/S
  • Source type: Web
  • Compilation tools: Idea, Eclipse, MyEclipse (choose one)
  • Others: jdk1 8,Tomcat8.5,Navicat

1.2 administrator function

Sign in
Personal information center
Owner Center
Housing information management
Parking space information management
Property payment management
Parking space payment management
Employee Center
Property warranty management
Suggestion Center
System settings

1.3 owner's functions

Sign in
Personal information center
Message view
House information query
Parking space information query
Property payment inquiry
Parking fee inquiry
Property warranty management
Suggestion Center

1.4 employees

Sign in
Personal information center
Holiday Management
Work content management
Public facilities management
Property warranty management
Suggestion Center

2, Partial function display

☀️ home page ☀️

☀️ Administrator's house query ☀️

☀️ Administrator's parking space information query ☀️

☀️ Property payment of administrator ☀️

☀️ Add employee's work report ☀️

☀️ Employee leave ☀️

3, Partial code design

3.1. Save and modify personal information

The code is as follows (example):

	/**
	 * @Title: saveAdmin
	 * @Description: Save and modify personal information
	 * @return String
	 */
	@RequestMapping(value="admin/Admin_saveAdmin.action",method=RequestMethod.POST)
	public String saveAdmin(User paramsUser,
			ModelMap model,HttpServletRequest request,HttpServletResponse response,HttpSession httpSession){
		try {
			//Verify that the user session has failed
			if (!validateAdmin(httpSession)) {
				return "loginTip";
			}
			 //Save and modify personal information
			adminManager.updateUser(paramsUser);
			//Update session
			User admin = new User();
			admin.setUser_id(paramsUser.getUser_id());
			admin = adminManager.queryUser(admin);
			httpSession.setAttribute("admin", admin);

			setSuccessTip("Edit succeeded", "modifyInfo.jsp", model);
		} catch (Exception e) {
			e.printStackTrace();
			setErrorTip("Edit exception", "modifyInfo.jsp", model);
		}
		return "infoTip";
	}

3.2. Query owner

/**
	 * @Title: listUsers
	 * @Description: Query owner
	 * @return String
	 */
	@RequestMapping(value="admin/Admin_listUsers.action")
	public String listUsers(User paramsUser,PaperUtil paperUtil,
			ModelMap model,HttpServletRequest request,HttpServletResponse response,HttpSession httpSession){
		try {
			if (paramsUser==null) {
				paramsUser = new User();
			}
			if (paperUtil==null) {
				paperUtil = new PaperUtil();
			}
			//Set paging information
			paperUtil.setPagination(paramsUser);
			//Total number of
			int[] sum={0};
			//Query owner list
			paramsUser.setUser_type(1);
			List<User> users = adminManager.listUsers(paramsUser,sum); 
			model.addAttribute("users", users);
			model.addAttribute("paramsUser", paramsUser);
			paperUtil.setTotalCount(sum[0]);
			
			//Consult the house dictionary
			Room room = new Room();
			room.setStart(-1);
			List<Room> rooms = adminManager.listRooms(room, null);
			if (rooms==null) {
				rooms = new ArrayList<Room>();
			}
			model.addAttribute("rooms", rooms);

		} catch (Exception e) {
			setErrorTip("Query owner exception", "main.jsp", model);
			return "infoTip";
		}
		
		return "userShow";
	}

3.3. Query employee user

	/**
	 * @Title: listWorkeruser
	 * @Description: Query employee user
	 * @return String
	 */
	@RequestMapping(value="admin/Admin_listWorkeruser.action")
	public String listWorkeruser(User paramsUser,PaperUtil paperUtil,
			ModelMap model,HttpServletRequest request,HttpServletResponse response,HttpSession httpSession){
		try {
			if (paramsUser==null) {
				paramsUser = new User();
			}
			if (paperUtil==null) {
				paperUtil = new PaperUtil();
			}
			//Set paging information
			paperUtil.setPagination(paramsUser);
			//Total number of
			int[] sum={0};
			//Query employee user list
			paramsUser.setUser_type(3);
			List<User> users = adminManager.listWorkerusers(paramsUser,sum); 
			model.addAttribute("users", users);
			model.addAttribute("paramsUser", paramsUser);
			paperUtil.setTotalCount(sum[0]);
			
			//Consult the house dictionary
			Room room = new Room();
			room.setStart(-1);
			List<Room> rooms = adminManager.listRooms(room, null);
			if (rooms==null) {
				rooms = new ArrayList<Room>();
			}
			model.addAttribute("rooms", rooms);

		} catch (Exception e) {
			setErrorTip("Query employee user exception", "main.jsp", model);
			return "infoTip";
		}
		
		return "workeruserShow";
	}

summary

Contact for source code:

Everyone likes, collects, pays attention to, comments and views 👇🏻👇🏻👇🏻 WeChat official account for contact information 👇🏻👇🏻👇🏻

Punch in article update 17 / 365 days

Recommended subscription of wonderful column: in the column below 👇🏻👇🏻👇🏻👇🏻

Java design project practice

Java course design project practice

Topics: Java Back-end