feat:庆阳会议导出

new-exam
wangxy 4 months ago
parent f40ad17b72
commit 64d8e25b46

@ -5,6 +5,7 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.TdMeeting; import com.ruoyi.system.domain.TdMeeting;
import com.ruoyi.web.controller.manager.TdMeetingManager; import com.ruoyi.web.controller.manager.TdMeetingManager;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
@ -54,6 +55,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"> <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:tdmeeting:remove">
<i class="fa fa-remove"></i> 删除 <i class="fa fa-remove"></i> 删除
</a> </a>
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:tdmeeting:export">--> <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:tdmeeting:export">
<!-- <i class="fa fa-download"></i> 导出--> <i class="fa fa-download"></i> 导出
<!-- </a>--> </a>
</div> </div>
<div class="col-sm-12 select-table table-striped"> <div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table> <table id="bootstrap-table"></table>

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

Loading…
Cancel
Save