正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
@@ -396,7 +396,6 @@ func (c *AuditController) ChanceDataExcel() { | @@ -396,7 +396,6 @@ func (c *AuditController) ChanceDataExcel() { | ||
396 | if err == nil && len(param.CreateTimeEndS) > 0 { | 396 | if err == nil && len(param.CreateTimeEndS) > 0 { |
397 | param.CreateTimeEnd = endTime.Unix() + 86399 | 397 | param.CreateTimeEnd = endTime.Unix() + 86399 |
398 | } | 398 | } |
399 | - fmt.Println(err, param.CreateTimeBegin, param.CreateTimeEnd) | ||
400 | if len(param.StatusS) > 0 { | 399 | if len(param.StatusS) > 0 { |
401 | param.Status, _ = strconv.Atoi(param.StatusS) | 400 | param.Status, _ = strconv.Atoi(param.StatusS) |
402 | } | 401 | } |
@@ -409,7 +408,7 @@ func (c *AuditController) ChanceDataExcel() { | @@ -409,7 +408,7 @@ func (c *AuditController) ChanceDataExcel() { | ||
409 | uid := c.GetUserId() | 408 | uid := c.GetUserId() |
410 | companyId := c.GetCompanyId() | 409 | companyId := c.GetCompanyId() |
411 | param.PageIndex = 1 | 410 | param.PageIndex = 1 |
412 | - param.PageIndex = 10 | 411 | + param.PageSize = 10000 |
413 | sourceData, excelHead := serveaudit.GetAuditListForExcel(param, companyId, uid) | 412 | sourceData, excelHead := serveaudit.GetAuditListForExcel(param, companyId, uid) |
414 | xlsMaker := exceltool.NewExcelMaker() | 413 | xlsMaker := exceltool.NewExcelMaker() |
415 | xlsMaker.SetListHead(excelHead) | 414 | xlsMaker.SetListHead(excelHead) |
@@ -7,6 +7,7 @@ import ( | @@ -7,6 +7,7 @@ import ( | ||
7 | "oppmg/common/log" | 7 | "oppmg/common/log" |
8 | "oppmg/models" | 8 | "oppmg/models" |
9 | "oppmg/protocol" | 9 | "oppmg/protocol" |
10 | + "oppmg/utils" | ||
10 | "oppmg/utils/exceltool" | 11 | "oppmg/utils/exceltool" |
11 | "oppmg/utils/signature" | 12 | "oppmg/utils/signature" |
12 | "strconv" | 13 | "strconv" |
@@ -24,12 +25,12 @@ func GetAuditListForExcel(param protocol.RequestAuditList, companyid int64, user | @@ -24,12 +25,12 @@ func GetAuditListForExcel(param protocol.RequestAuditList, companyid int64, user | ||
24 | 25 | ||
25 | _, datasql, cond := GetAuditListSql(param, companyid, userid, usercompany.Id) | 26 | _, datasql, cond := GetAuditListSql(param, companyid, userid, usercompany.Id) |
26 | var soureData []orm.Params | 27 | var soureData []orm.Params |
27 | - o := orm.NewOrm() | ||
28 | - _, err = o.Raw(datasql, cond...).Values(&soureData) | 28 | + err = utils.ExecuteQueryValue(&soureData, datasql, cond...) |
29 | if err != nil { | 29 | if err != nil { |
30 | log.Error("获取机会数据失败err:%s", err) | 30 | log.Error("获取机会数据失败err:%s", err) |
31 | return nil, nil | 31 | return nil, nil |
32 | } | 32 | } |
33 | + | ||
33 | //https://web-open.fjmaimaimai.com/#/ 生产 | 34 | //https://web-open.fjmaimaimai.com/#/ 生产 |
34 | // mmm-web-open-test.fjmaimaimai.com/ | 35 | // mmm-web-open-test.fjmaimaimai.com/ |
35 | // SELECT a.id,a.department_id,a.audit_template_id,a.chance_type_id | 36 | // SELECT a.id,a.department_id,a.audit_template_id,a.chance_type_id |
-
请 注册 或 登录 后发表评论