| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | |
| | | import com.doumee.dao.business.model.Bookings; |
| | | import com.doumee.dao.web.request.BookingsRequest; |
| | | import com.doumee.dao.web.request.MeetingPageRequest; |
| | | import com.doumee.dao.web.request.UserPageRequest; |
| | | import com.doumee.dao.web.response.MeetingDetailResponse; |
| | | import com.doumee.dao.web.response.MeetingListResponse; |
| | | import com.doumee.dao.web.response.MonthDataResponse; |
| | | import com.doumee.dao.web.response.UserResponse; |
| | | import com.doumee.service.business.BookingsService; |
| | | import com.doumee.service.system.SystemUserService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | private SystemUserService systemUserService; |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "当月会议表", notes = "当月会议表") |
| | | @GetMapping("/monthMeeting") |
| | | @ApiImplicitParams({ |
| | |
| | | MonthDataResponse monthDataResponse = new MonthDataResponse(); |
| | | monthDataResponse.setWeekMsg(DateUtil.getWeek(DateUtil.StringToDate(str,"yyyy-MM-dd")).getChineseName()); |
| | | monthDataResponse.setMonthDate(str); |
| | | monthDataResponse.setMeetingNum(bookings.stream().filter(b-> DateUtil.dateToString(b.getStartTime(),"yyyy-MM-dd").equals(str)).collect(Collectors.toList()).size()); |
| | | monthDataResponse.setMeetingNum(bookings.stream() |
| | | .filter(b-> DateUtil.dateToString(b.getStartTime(),"yyyy-MM-dd").equals(str)).collect(Collectors.toList()).size()); |
| | | monthDataResponseList.add(monthDataResponse); |
| | | } |
| | | return ApiResponse.success("查询成功",monthDataResponseList); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("我的会议列表") |
| | | @PostMapping("/myMeetingPage") |
| | | @ApiImplicitParams({ |
| | |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("获取会议开门二维码") |
| | | @GetMapping("/getQrCode") |
| | | @ApiImplicitParams({ |
| | |
| | | QrCodeUtils.encode(content,null, response.getOutputStream(), true); |
| | | } |
| | | |
| | | /* |
| | | @LoginRequired |
| | | @ApiOperation("参会人员分页") |
| | | @PostMapping("/userPage") |
| | |
| | | IPage<UserResponse> page = systemUserService.getUserPage(pageWrap); |
| | | return ApiResponse.success("查询成功", page); |
| | | } |
| | | */ |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("会议预约") |
| | | @PostMapping("/reservationMeeting") |
| | | @ApiImplicitParams({ |
| | |
| | | return ApiResponse.success("操作成功",bookingsService.reservationMeeting(bookingsRequest)); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("取消会议预约") |
| | | @GetMapping("/reservationCancel") |
| | | @ApiImplicitParams({ |