|
@@ -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
|