| | |
| | | import com.ruoyi.collaborativeApproval.vo.SearchMeetingRoomVo; |
| | | import com.ruoyi.collaborativeApproval.vo.SearchMeetingUseVo; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | private final MeetingService meetingService; |
| | | |
| | | @PostMapping("/roomList") |
| | | @Log(title = "获取会议室列表", businessType = BusinessType.OTHER) |
| | | public R getMeetingRoomList(@RequestBody SearchMeetingRoomVo vo) { |
| | | |
| | | return R.ok(meetingService.getMeetingRoomList(vo)); |
| | | } |
| | | |
| | | @PostMapping("/saveRoom") |
| | | @Log(title = "保存会议室", businessType = BusinessType.INSERT) |
| | | public R saveRoom(@RequestBody MeetingRoom meetingRoom) { |
| | | meetingService.saveMeetRoom(meetingRoom); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @GetMapping("/room/{id}") |
| | | @Log(title = "获取会议室详情", businessType = BusinessType.OTHER) |
| | | public R getRoomById(@PathVariable Long id) { |
| | | return R.ok(meetingService.findMeetRoomById(id)); |
| | | } |
| | | |
| | | @DeleteMapping("/delRoom/{id}") |
| | | @Log(title = "删除会议室", businessType = BusinessType.DELETE) |
| | | public R deleteRoom(@PathVariable Long id) { |
| | | meetingService.deleteMeetingRoom(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @GetMapping("/roomEnum") |
| | | @Log(title = "获取会议室枚举", businessType = BusinessType.OTHER) |
| | | public R getRoomEnum() { |
| | | return R.ok(meetingService.getRoomEnum()); |
| | | } |
| | | |
| | | @PostMapping("/draftList") |
| | | @Log(title = "获取会议稿列表", businessType = BusinessType.OTHER) |
| | | public R getMeetingDraftList(@RequestBody SearchMeetingDraftVo vo) { |
| | | return R.ok(meetingService.getMeetingDraftList(vo)); |
| | | } |
| | | |
| | | @PostMapping("/saveDraft") |
| | | @Log(title = "保存会议稿", businessType = BusinessType.INSERT) |
| | | public R saveMeetingDraft(@RequestBody MeetDraft meetDraft) { |
| | | meetingService.saveMeetDraft(meetDraft); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @DeleteMapping("/delDraft/{id}") |
| | | @Log(title = "删除会议稿", businessType = BusinessType.DELETE) |
| | | public R deleteMeetingDraft(@PathVariable Long id) { |
| | | meetingService.deleteMeetingDraft(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/saveMeetingApplication") |
| | | @Log(title = "保存会议审批", businessType = BusinessType.INSERT) |
| | | public R saveMeetApplication(@RequestBody MeetApplication meetApplication) { |
| | | return meetingService.saveMeetApplication(meetApplication); |
| | | } |
| | | |
| | | @PostMapping("/applicationList") |
| | | @Log(title = "获取会议审批列表", businessType = BusinessType.OTHER) |
| | | public R getMeetingApplicationList(@RequestBody SearchMeetingApplicationVo vo) { |
| | | return R.ok(meetingService.getMeetingApplicationList(vo)); |
| | | } |
| | |
| | | |
| | | |
| | | @PostMapping("/meetingUseList") |
| | | @Log(title = "获取会议列表", businessType = BusinessType.OTHER) |
| | | public R meetingUseList(@RequestBody SearchMeetingUseVo vo) { |
| | | return R.ok(meetingService.meetingUseList(vo)); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/meetingPublishList") |
| | | @Log(title = "获取会议发布列表", businessType = BusinessType.OTHER) |
| | | public R meetingPublishList(@RequestBody SearchMeetingApplicationVo vo) { |
| | | return R.ok(meetingService.getMeetingPublishList(vo)); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getMeetingMinutesByMeetingId/{id}") |
| | | @Log(title = "获取会议纪要", businessType = BusinessType.OTHER) |
| | | public R getMeetingMinutes(@PathVariable Long id) { |
| | | return R.ok(meetingService.getMeetingMinutesById(id)); |
| | | } |
| | | |
| | | @PostMapping("/saveMeetingMinutes") |
| | | @Log(title = "保存会议纪要", businessType = BusinessType.INSERT) |
| | | public R saveMeetingMinutes(@RequestBody MeetingMinutes meetingMinutes) { |
| | | meetingService.saveMeetingMinutes(meetingMinutes); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @GetMapping("/getMeetSummary") |
| | | @Log(title = "获取会议看板", businessType = BusinessType.OTHER) |
| | | public R getMeetSummary() { |
| | | return R.ok(meetingService.getMeetSummary()); |
| | | } |
| | | |
| | | @GetMapping("/getMeetSummaryItems") |
| | | @Log(title = "获取会议看板详情", businessType = BusinessType.OTHER) |
| | | public R getMeetSummaryItems() { |
| | | return R.ok(meetingService.getMeetSummaryItems()); |
| | | } |
| | | |
| | | @ApiOperation(value = "会议室设置导出") |
| | | @PostMapping("/export") |
| | | @Log(title = "导出会议室设置", businessType = BusinessType.EXPORT) |
| | | public void export(HttpServletResponse response) { |
| | | List<MeetingRoom> accountExpenses = meetingService.list(); |
| | | ExcelUtil<MeetingRoom> util = new ExcelUtil<MeetingRoom>(MeetingRoom.class); |
| | |
| | | |
| | | @ApiOperation(value = "会议草稿导出") |
| | | @PostMapping("/exportOne") |
| | | @Log(title = "导出会议草稿", businessType = BusinessType.EXPORT) |
| | | public void exportOne(HttpServletResponse response) { |
| | | List<MeetDraft> accountExpenses = meetDraftMapper.selectList(new LambdaQueryWrapper<MeetDraft>()); |
| | | ExcelUtil<MeetDraft> util = new ExcelUtil<MeetDraft>(MeetDraft.class); |