博主主页:一点源码
博主简介:专注Java技术领域和毕业设计项目实战、Java、微信小程序、安卓等技术开发,远程调试部署、代码讲解、文档指导、ppt制作等技术指导。
主要内容:毕业设计,SpringBoot、Vue、SSM、HLMT、Jsp、PHP、Python、Nodejs、小程序、安卓app、大数据等设计与开发🍅文末获取联系🍅
项目介绍
本民宿在线预定平台管理员功能有个人中心,用户管理,民宿信息管理,民宿分类管理,我的收藏管理,系统管理,订单管理等。用户可以注册登录,收藏和预定名宿。因而具有一定的实用性。
本站是一个B/S模式系统,采用Spring Boot框架,MYSQL数据库设计开发,充分保证系统的稳定性。系统具有界面清晰、操作简单,功能齐全的特点,使得民宿在线预定平台管理工作系统化、规范化。本系统的使用使管理人员从繁重的工作中解脱出来,实现无纸化办公,能够有效的提高民宿在线预定平台管理效率。
系统主要技术
开发语言:Java
使用框架:spring boot
前端技术:Vue 、css、element-ui、js、html
开发工具:IDEA/MyEclipse/Eclipse、Visual Studio Code
数据库:MySQL 5.7/8.0
数据库管理工具:phpstudy/Navicat
JDK版本:jdk1.8
Maven: apache-maven 3.8.1-bin
系统结构设计
本系统是基于B/S架构的网站系统,设计功能结构图如下图所示:
部分功能展示
管理员模块的实现
5.1.1 用户信息管理
民宿在线预定平台的系统管理员可以管理用户信息,可以对用户信息信息添加修改删除以及查询操作。具体界面的展示如图5.1所示。
图5.1 用户信息信息管理界面
5.1.2 民宿信息管理
系统管理员可以查看对民宿信息信息进行添加,修改,删除以及查询操作。具体界面如图5.2所示。
图5.2 民宿信息信息管理界面
5.1.3 民宿资讯管理
管理员可以对民宿资讯信息进行添加,修改,删除以及查询操作。界面如下图所示:
图5.3 民宿资讯信息管理界面
5.1.4 民宿分类管理
管理员可以对民宿分类信息进行修改操作,还可以对民宿分类信息进行查询。界面如下图所示:
图5.4 民宿分类管理界面
5.2 用户模块的实现
5.2.1 用户注册
用户注册后才可以登录。界面如下图所示:
图5.5 用户注册界面
5.2.2 民宿信息
用户登录后可以对民宿信息进行添加购物车操作。界面如下图所示:
图5.6 民宿信息界面
5.2.3 我的订单
用户可以在我的订单里面查看我的订单信息。界面如下图所示:
图5.7 我的订单信息界面
文章目录
1系统概述 1
1.1 研究背景 1
1.2研究目的 1
1.3系统设计思想 1
2相关技术 2
2.1 MYSQL数据库 2
2.2 B/S结构 3
2.3 Spring Boot框架简介 4
3系统分析 4
3.1可行性分析 4
3.1.1技术可行性 4
3.1.2经济可行性 5
3.1.3操作可行性 5
3.2系统性能分析 5
3.2.1 系统安全性 5
3.2.2 数据完整性 6
3.3系统界面分析 6
3.4系统流程和逻辑 7
4系统概要设计 8
4.1概述 8
4.2系统结构 9
4.3.数据库设计 9
4.3.1数据库实体 9
4.3.2数据库设计表 11
5系统详细实现 15
5.1 管理员模块的实现 15
5.1.1 用户信息管理 15
5.1.2 民宿信息管理 15
5.1.3 民宿资讯管理 16
5.1.4 民宿分类管理 16
5.2 用户模块的实现 17
5.2.1 用户注册 17
5.2.2 民宿信息 18
5.2.3 我的订单 19
6系统测试 20
6.1概念和意义 20
6.2特性 20
6.3重要性 21
6.4测试方法 21
6.5 功能测试 21
6.6可用性测试 22
6.7性能测试 22
6.8测试分析 23
6.9测试结果分析 23
结论 23
致谢语 24
参考文献 24
部分代码实现
* @author
* @email
* @date 2021-03-05 14:09:24
*/
@RestController
@RequestMapping("/tuihuantushu")
public class TuihuantushuController {
@Autowired
private TuihuantushuService tuihuantushuService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,TuihuantushuEntity tuihuantushu, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("xuesheng")) {
tuihuantushu.setXuehao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<TuihuantushuEntity> ew = new EntityWrapper<TuihuantushuEntity>();
PageUtils page = tuihuantushuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, tuihuantushu), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,TuihuantushuEntity tuihuantushu, HttpServletRequest request){
EntityWrapper<TuihuantushuEntity> ew = new EntityWrapper<TuihuantushuEntity>();
PageUtils page = tuihuantushuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, tuihuantushu), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( TuihuantushuEntity tuihuantushu){
EntityWrapper<TuihuantushuEntity> ew = new EntityWrapper<TuihuantushuEntity>();
ew.allEq(MPUtil.allEQMapPre( tuihuantushu, "tuihuantushu"));
return R.ok().put("data", tuihuantushuService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(TuihuantushuEntity tuihuantushu){
EntityWrapper< TuihuantushuEntity> ew = new EntityWrapper< TuihuantushuEntity>();
ew.allEq(MPUtil.allEQMapPre( tuihuantushu, "tuihuantushu"));
TuihuantushuView tuihuantushuView = tuihuantushuService.selectView(ew);
return R.ok("查询退换图书成功").put("data", tuihuantushuView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
TuihuantushuEntity tuihuantushu = tuihuantushuService.selectById(id);
return R.ok().put("data", tuihuantushu);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
TuihuantushuEntity tuihuantushu = tuihuantushuService.selectById(id);
return R.ok().put("data", tuihuantushu);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody TuihuantushuEntity tuihuantushu, HttpServletRequest request){
tuihuantushu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(tuihuantushu);
tuihuantushuService.insert(tuihuantushu);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody TuihuantushuEntity tuihuantushu, HttpServletRequest request){
tuihuantushu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(tuihuantushu);
tuihuantushuService.insert(tuihuantushu);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody TuihuantushuEntity tuihuantushu, HttpServletRequest request){
//ValidatorUtils.validateEntity(tuihuantushu);
tuihuantushuService.updateById(tuihuantushu);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
tuihuantushuService.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<TuihuantushuEntity> wrapper = new EntityWrapper<TuihuantushuEntity>();
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("xuesheng")) {
wrapper.eq("xuehao", (String)request.getSession().getAttribute("username"));
}
int count = tuihuantushuService.selectCount(wrapper);
return R.ok().put("count", count);
}
}