基于Springboot会议室预定管理系统(java+maven+mysql+springboot+vue+elementui)

运行环境:

JDK1.8、IDEA,mysql5.7、Navicat

系统功能

管理员:
1)系统管理(用户管理、菜单管理、权限管理)
2)会议室管理(查询会议室、新增会议室、查看会议室状态)
3)查看预约记录
用户:
1)会议室列表
2)预约会议室
3)查看预约记录
4)取消预约
5)查看会议室是否被占用

	//VX:f999dexgg
	//VX:f999dexgg
	//VX:f999dexgg
	//VX:f999dexgg
	//VX:f999dexgg
  //添加
    @PostMapping("/save")
    public Result saveTown(@RequestBody MeetingMake meetingMake, HttpServletRequest request) throws ParseException {
        String message = meetingMakeService.checkAdd(meetingMake);
        if (message!=null){
            return Result.error().message(message);
        }else {
            String authorization = request.getHeader("Authorization");
            Claims claim = jwtConfig.getTokenClaim(authorization);
            Integer uid = Integer.parseInt(claim.getSubject());
            Emp dbEmp = empMapper.findEmpByUid(uid);
            meetingMake.setUid(dbEmp.getId());
            meetingMake.setStatus("ACTIVE");
            return meetingMakeService.save(meetingMake)?Result.ok().message(ResultMessage.SUCCESSMSG):Result.error().message(ResultMessage.ERRORMSG);
        }
    }

    //分页列表查询
    @PostMapping("/findPage")
    public IPage<MeetingMake> findPage(@RequestBody SearchVo searchVo) throws ParseException {
        return meetingMakeService.findPage(searchVo);
    }

    //分页列表查询
    @PostMapping("/findPageByEmp")
    public IPage<MeetingMake> findPageByEmp(@RequestBody SearchVo searchVo, HttpServletRequest request) throws ParseException {
        String authorization = request.getHeader("Authorization");
        Claims claim = jwtConfig.getTokenClaim(authorization);
        Integer uid = Integer.parseInt(claim.getSubject());
        Emp dbEmp = empMapper.findEmpByUid(uid);
        searchVo.setValueTwo(dbEmp.getId()+"");
        return meetingMakeService.findPageByEmp(searchVo);
    }

    //取消会议
    @GetMapping("/cancelMeeting/{mid}")
    public Result cancelMeeting(@PathVariable("mid") String mid){
        MeetingMake meetingMake = meetingMakeService.getById(mid);
        meetingMake.setStatus("INACTION");
        meetingMakeService.updateById(meetingMake);
        return Result.ok().message(ResultMessage.SUCCESSMSG);
    }

项目展示

B站视频演示地址:https://www.bilibili.com/video/BV1ZN411P7gT/?
基于Springboot会议室预定管理系统(java+maven+mysql+springboot+vue+elementui)_第1张图片
基于Springboot会议室预定管理系统(java+maven+mysql+springboot+vue+elementui)_第2张图片
基于Springboot会议室预定管理系统(java+maven+mysql+springboot+vue+elementui)_第3张图片
基于Springboot会议室预定管理系统(java+maven+mysql+springboot+vue+elementui)_第4张图片
基于Springboot会议室预定管理系统(java+maven+mysql+springboot+vue+elementui)_第5张图片

你可能感兴趣的:(springboot,数据库,java,vue.js,spring,boot)