作者 tangxuhui

添加调试日志

... ... @@ -12,6 +12,7 @@ import (
"oppmg/utils/signature"
"strconv"
"strings"
"time"
"github.com/astaxie/beego/orm"
)
... ... @@ -22,7 +23,7 @@ func GetAuditListForExcel(param protocol.RequestAuditList, companyid int64, user
log.Error("GetUserCompanyBy(userid, companyid) err:%s", err)
return nil, nil
}
queryBegin := time.Now()
_, datasql, cond := GetAuditListSql(param, companyid, userid, usercompany.Id)
var soureData []orm.Params
err = utils.ExecuteQueryValue(&soureData, datasql, cond...)
... ... @@ -31,6 +32,7 @@ func GetAuditListForExcel(param protocol.RequestAuditList, companyid int64, user
return nil, nil
}
log.Debug("查询耗时:%d 毫秒,数据量:%d", time.Since(queryBegin).Milliseconds(), len(soureData))
// SELECT a.id,a.department_id,a.audit_template_id,a.chance_type_id
// ,a.publish_status,a.create_at,a.review_status,a.status
// ,a.discovery_score,a.comment_total ,a.code,d.nick_name,d.id as user_id
... ...