|
@@ -4,9 +4,10 @@ import (
|
|
|
"eta_gn/eta_api/global"
|
|
|
"eta_gn/eta_api/utils"
|
|
|
"fmt"
|
|
|
- "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
)
|
|
|
|
|
|
// ReportApproveMessage 报告审批消息表
|
|
@@ -139,7 +140,7 @@ func (m *ReportApproveMessage) GetCountByCondition(condition string, pars []inte
|
|
|
//o := orm.NewOrmUsingDB("rddp")
|
|
|
sql := fmt.Sprintf(`SELECT COUNT(1) FROM %s WHERE 1=1 %s`, m.TableName(), condition)
|
|
|
//err = o.Raw(sql, pars).QueryRow(&count)
|
|
|
- err = global.DmSQL["rddp"].Raw(sql, pars).Scan(&count).Error
|
|
|
+ err = global.DmSQL["rddp"].Raw(sql, pars...).Scan(&count).Error
|
|
|
return
|
|
|
}
|
|
|
|