|
@@ -1,12 +1,15 @@
|
|
|
package com.xjrsoft.module.oa.controller;
|
|
package com.xjrsoft.module.oa.controller;
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.xjrsoft.common.annotation.XjrLog;
|
|
import com.xjrsoft.common.annotation.XjrLog;
|
|
|
import com.xjrsoft.common.model.result.RT;
|
|
import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
|
|
+import com.xjrsoft.common.utils.QrCodeUtil;
|
|
|
|
|
+import com.xjrsoft.config.CommonPropertiesConfig;
|
|
|
import com.xjrsoft.module.oa.dto.*;
|
|
import com.xjrsoft.module.oa.dto.*;
|
|
|
import com.xjrsoft.module.oa.entity.WfMeetingApply;
|
|
import com.xjrsoft.module.oa.entity.WfMeetingApply;
|
|
|
import com.xjrsoft.module.oa.service.IWfMeetingApplyService;
|
|
import com.xjrsoft.module.oa.service.IWfMeetingApplyService;
|
|
@@ -37,6 +40,8 @@ public class WfMeetingApplyController {
|
|
|
|
|
|
|
|
private final IFileService fileService;
|
|
private final IFileService fileService;
|
|
|
|
|
|
|
|
|
|
+ private final CommonPropertiesConfig commonPropertiesConfig;
|
|
|
|
|
+
|
|
|
@GetMapping(value = "/list_meeting_room")
|
|
@GetMapping(value = "/list_meeting_room")
|
|
|
@ApiOperation(value="会议室列表(不分页)")
|
|
@ApiOperation(value="会议室列表(不分页)")
|
|
|
@SaCheckPermission("wfmeetingapply:detail")
|
|
@SaCheckPermission("wfmeetingapply:detail")
|
|
@@ -56,7 +61,7 @@ public class WfMeetingApplyController {
|
|
|
return RT.ok(pageOutput);
|
|
return RT.ok(pageOutput);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @GetMapping(value = "/today-meeting-mobile-page")
|
|
|
|
|
|
|
+ @GetMapping(value = "/page-today-meeting-mobile")
|
|
|
@ApiOperation(value="移动端今日会议列表(分页)")
|
|
@ApiOperation(value="移动端今日会议列表(分页)")
|
|
|
@SaCheckPermission("wfmeetingapply:detail")
|
|
@SaCheckPermission("wfmeetingapply:detail")
|
|
|
@XjrLog(value = "移动端今日会议列表(分页)")
|
|
@XjrLog(value = "移动端今日会议列表(分页)")
|
|
@@ -66,6 +71,26 @@ public class WfMeetingApplyController {
|
|
|
return RT.ok(pageOutput);
|
|
return RT.ok(pageOutput);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping(value = "/page-sponsor-meeting-mobile")
|
|
|
|
|
+ @ApiOperation(value="移动端我发起的会议列表(分页)")
|
|
|
|
|
+ @SaCheckPermission("wfmeetingapply:detail")
|
|
|
|
|
+ @XjrLog(value = "移动端我发起的会议列表(分页)")
|
|
|
|
|
+ public RT<PageOutput<SponsorMeetingMobilePageVo>> sponsorMeetingMobilePage(@Valid SponsorMeetingMobilePageDto dto){
|
|
|
|
|
+ IPage<SponsorMeetingMobilePageVo> page = wfMeetingApplyService.sponsorMeetingMobilePage(dto);
|
|
|
|
|
+ PageOutput<SponsorMeetingMobilePageVo> pageOutput = ConventPage.getPageOutput(page, SponsorMeetingMobilePageVo.class);
|
|
|
|
|
+ return RT.ok(pageOutput);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping(value = "/page-history-meeting-mobile")
|
|
|
|
|
+ @ApiOperation(value="移动端历史会议列表(分页)")
|
|
|
|
|
+ @SaCheckPermission("wfmeetingapply:detail")
|
|
|
|
|
+ @XjrLog(value = "移动端历史会议列表(分页)")
|
|
|
|
|
+ public RT<PageOutput<HistoryMeetingMobilePageVo>> historyMeetingMobilePage(@Valid HistoryMeetingMobilePageDto dto){
|
|
|
|
|
+ IPage<HistoryMeetingMobilePageVo> page = wfMeetingApplyService.historyMeetingMobilePage(dto);
|
|
|
|
|
+ PageOutput<HistoryMeetingMobilePageVo> pageOutput = ConventPage.getPageOutput(page, HistoryMeetingMobilePageVo.class);
|
|
|
|
|
+ return RT.ok(pageOutput);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@GetMapping(value = "/mobile-info")
|
|
@GetMapping(value = "/mobile-info")
|
|
|
@ApiOperation(value="移动端会议信息会议的详情")
|
|
@ApiOperation(value="移动端会议信息会议的详情")
|
|
|
@SaCheckPermission("wfmeetingapply:detail")
|
|
@SaCheckPermission("wfmeetingapply:detail")
|
|
@@ -163,6 +188,20 @@ public class WfMeetingApplyController {
|
|
|
return RT.ok(isSuccess);
|
|
return RT.ok(isSuccess);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping(value = "/meeting-check-in-qrcode")
|
|
|
|
|
+ @ApiOperation(value = "会议签到二维码-生成二维码")
|
|
|
|
|
+ @SaCheckPermission("wfmeetingapply:detail")
|
|
|
|
|
+ @XjrLog(value = "会议签到二维码-生成二维码")
|
|
|
|
|
+ public RT<String> qrcode(@RequestParam Long id) throws Exception {
|
|
|
|
|
+ String url = commonPropertiesConfig.getDomainApp() + "/pages/material/grant?id=" + id + "&userId=" + StpUtil.getLoginIdAsLong();
|
|
|
|
|
+ int width = 200;
|
|
|
|
|
+ int height = 200;
|
|
|
|
|
+ int margin = 1;
|
|
|
|
|
+
|
|
|
|
|
+ String base64 = QrCodeUtil.createBase64(url, width, height, margin);
|
|
|
|
|
+ return RT.ok(base64);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// @GetMapping(value = "/info")
|
|
// @GetMapping(value = "/info")
|
|
|
// @ApiOperation(value="根据id查询信息")
|
|
// @ApiOperation(value="根据id查询信息")
|
|
|
// @SaCheckPermission("wfmeetingapply:detail")
|
|
// @SaCheckPermission("wfmeetingapply:detail")
|