作者 tangxvhui

导出数据调整

... ... @@ -412,13 +412,6 @@ func (c *AuditController) ChanceDataExcel() {
param.PageIndex = 1
param.PageSize = 10000
sourceData, excelHead := serveaudit.GetAuditListForExcel(param, companyId, uid)
if len(sourceData) == 0 {
msg = &protocol.ResponseMessage{
Errno: 1, Errmsg: "没有数据可以导出",
}
c.ResposeJson(msg)
return
}
xlsMaker := exceltool.NewExcelMaker()
xlsMaker.SetListHead(excelHead)
err = xlsMaker.MakeListExcelForBeego(sourceData)
... ...