🔥Author's homepage: Crazy Walker🔥 💖✌High-quality creator in the field of java, focusing on technical exchanges in the field of Java technology✌💖
💖Get the source code at the end of the article💖
Wonderful column recommended subscription: in the column below👇🏻👇🏻👇🏻👇🏻
Java wonderful practical project case
Java wonderful novice project case
Python wonderful newbie project case
foreword
This article mainly introduces the functions of the Java+SpringBoot+Vue homestay management system. The system is divided into three roles, namely, users, merchants, and administrators.
1. System function
1.1 Development environment
- Development language: Java - Technology: SpringBoot+Vue
- Database: MySQL - Architecture: B/S - Source Type: Web
- Compilation tools: Idea, Eclipse, MyEclipse (choose one)
- Others: jdk1.8, Tomcat8.5 [built-in], Navicat
2. System Design
2.1 Analysis of research ideas
It is a more important part to investigate and analyze it in the system process analysis, because it involves the business process of each link in this system, so from the overall design of the Java+SpringBoot+Vue homestay management system, all information must be guaranteed The correct input and output and the integrity of the data storage, and combined with the actual operation steps to draw a specific flow chart. The specific flow chart is shown in the following figure:
2.2 System function structure diagram
The functional requirements of the system are as follows:
Administrator module: The core user in the system is the administrator. After the administrator logs in, he manages the background system through the administrator function. The main functions are: personal center, user management, business management, homestay information management, room information management, room type management, room reservation management, room cancellation management, complaint feedback management, my collection management, online customer service reply; user role function There are B&B information [complaint], room information [reservation and cancellation], personal center, online customer service, room reservation management, room cancellation management, complaint feedback management, and my collection management; business functions include room reservation management, room cancellation Management, complaint feedback management [audit], my collection management, homestay information management, room information management.
3. Partial function display
☀️Room information page display☀️
☀️Admin Login☀️
☀️B&B information management☀️
☀️Online Message☀️
☀️B&B reservation payment☀️
☀️Business Complaint Management☀️
Fourth, part of the code design
4.1. Upload a file [the code is as follows (example):]
@RequestMapping("/upload") public R upload(@RequestParam("file") MultipartFile file,String type) throws Exception { if (file.isEmpty()) { throw new EIException("Upload file cannot be empty"); } String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1); File path = new File(ResourceUtils.getURL("classpath:static").getPath()); if(!path.exists()) { path = new File(""); } File upload = new File("F:\\Project finishing part\\B Station contribution video\\ABO Contribute video\\springboot Homestay management platform\\springbootj470j\\target\\classes\\static\\upload"); if(!upload.exists()) { upload.mkdirs(); } String fileName = new Date().getTime()+"."+fileExt; File dest = new File(upload.getAbsolutePath()+"/"+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); }
4.2. Room cancellation information query [code as follows (example): ]
@RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,FangjiantuidingEntity fangjiantuiding, HttpServletRequest request){ String tableName = request.getSession().getAttribute("tableName").toString(); if(tableName.equals("shangjia")) { fangjiantuiding.setShangjiabianhao((String)request.getSession().getAttribute("username")); } if(tableName.equals("yonghu")) { fangjiantuiding.setZhanghao((String)request.getSession().getAttribute("username")); } EntityWrapper<FangjiantuidingEntity> ew = new EntityWrapper<FangjiantuidingEntity>(); PageUtils page = fangjiantuidingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangjiantuiding), params), params)); return R.ok().put("data", page); }
4.3. Room information query [the code is as follows (example):]
@RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,FangjianxinxiEntity fangjianxinxi, HttpServletRequest request){ String tableName = request.getSession().getAttribute("tableName").toString(); if(tableName.equals("shangjia")) { fangjianxinxi.setShangjiabianhao((String)request.getSession().getAttribute("username")); } EntityWrapper<FangjianxinxiEntity> ew = new EntityWrapper<FangjianxinxiEntity>(); PageUtils page = fangjianxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, fangjianxinxi), params), params)); return R.ok().put("data", page); }
Summarize
Source code acquisition:
Everyone like, favorite, follow, comment,
Punch Articles Update 54/ 365 days
Wonderful column recommended subscription: in the column below👇🏻👇🏻👇🏻👇🏻