| | |
| | | package com.ruoyi.collaborativeApproval.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.approve.pojo.ApproveProcess; |
| | | import com.ruoyi.collaborativeApproval.mapper.MeetDraftMapper; |
| | | import com.ruoyi.collaborativeApproval.pojo.MeetApplication; |
| | | import com.ruoyi.collaborativeApproval.pojo.MeetDraft; |
| | | import com.ruoyi.collaborativeApproval.pojo.MeetingMinutes; |
| | |
| | | import com.ruoyi.collaborativeApproval.vo.SearchMeetingDraftVo; |
| | | import com.ruoyi.collaborativeApproval.vo.SearchMeetingRoomVo; |
| | | import com.ruoyi.collaborativeApproval.vo.SearchMeetingUseVo; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 关于会议controller |
| | |
| | | @RestController |
| | | @RequestMapping("/meeting") |
| | | @RequiredArgsConstructor |
| | | @Api(tags = "会议") |
| | | public class MeetingController { |
| | | private final MeetingService meetingService; |
| | | |
| | |
| | | return R.ok(meetingService.getMeetSummaryItems()); |
| | | } |
| | | |
| | | @ApiOperation(value = "会议室设置导出") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |
| | | List<MeetingRoom> accountExpenses = meetingService.list(); |
| | | ExcelUtil<MeetingRoom> util = new ExcelUtil<MeetingRoom>(MeetingRoom.class); |
| | | util.exportExcel(response, accountExpenses, "会议室设置导出"); |
| | | } |
| | | |
| | | private final MeetDraftMapper meetDraftMapper; |
| | | |
| | | @ApiOperation(value = "会议草稿导出") |
| | | @PostMapping("/exportOne") |
| | | public void exportOne(HttpServletResponse response) { |
| | | List<MeetDraft> accountExpenses = meetDraftMapper.selectList(new LambdaQueryWrapper<MeetDraft>()); |
| | | ExcelUtil<MeetDraft> util = new ExcelUtil<MeetDraft>(MeetDraft.class); |
| | | util.exportExcel(response, accountExpenses, "会议草稿导出"); |
| | | } |
| | | |
| | | } |