feat:会议添加导出

hangao
wangxy 4 months ago
parent e2a34bc1be
commit 1f64cee827

@ -5,7 +5,10 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.TdMeeting;
import com.ruoyi.system.domain.check.TdCheckReport;
import com.ruoyi.system.domain.check.dto.CheckReportDTO;
import com.ruoyi.web.controller.manager.TdMeetingManager;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
@ -54,6 +57,20 @@ public class TdMeetingController extends BaseController {
}
/**
*
*/
@RequiresPermissions("system:tdmeeting:export")
@Log(title = "涉密会议导出", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TdMeeting tdMeeting) {
List<TdMeeting> tdMeetings = meetingManager.selectTdMeetingList(tdMeeting);
ExcelUtil<TdMeeting> util = new ExcelUtil<>(TdMeeting.class);
return util.exportExcel(tdMeetings, "涉密会议数据");
}
/**
*
*/

@ -47,9 +47,9 @@
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:tdmeeting:remove">
<i class="fa fa-remove"></i> 删除
</a>
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:tdmeeting:export">-->
<!-- <i class="fa fa-download"></i> 导出-->
<!-- </a>-->
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:tdmeeting:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>

@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -27,36 +28,43 @@ public class TdMeeting extends BaseEntity {
/**
*
*/
@Excel(name = "会议主题")
private String meetingTitle;
/**
*
*/
@Excel(name = "会议时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date meetingTime;
/**
*
*/
@Excel(name = "地点")
private String meetingAddress;
/**
*
*/
@Excel(name = "参会人数")
private Integer meetingUsernum;
/**
*
*/
@Excel(name = "主办方")
private String meetingHost;
/**
*
*/
@Excel(name = "会议类型",readConverterExp = "0=线上会议,1=线下会议")
private String meetingType;
/**
*
*/
@Excel(name = "会议状态",readConverterExp = "0=未召开,1=已召开")
private String meetingState;
/**
@ -67,6 +75,7 @@ public class TdMeeting extends BaseEntity {
/**
*
*/
@Excel(name = "会议纪要")
private String summary;
/**

Loading…
Cancel
Save