|
@@ -164,7 +164,7 @@ func GetApprovedBiApprovePageList(cond string, pars []interface{}, orderRule str
|
|
|
|
|
|
// GetApplyBiApproveCount 获取我发起的审批分页列表总数
|
|
// GetApplyBiApproveCount 获取我发起的审批分页列表总数
|
|
func GetApplyBiApproveCount(cond string, pars []interface{}) (count int, err error) {
|
|
func GetApplyBiApproveCount(cond string, pars []interface{}) (count int, err error) {
|
|
- base := fmt.Sprintf(`SELECT a.* FROM Bi_approve AS a WHERE 1 = 1 %s`, cond)
|
|
|
|
|
|
+ base := fmt.Sprintf(`SELECT a.* FROM bi_approve AS a WHERE 1 = 1 %s`, cond)
|
|
sql := fmt.Sprintf(`SELECT COUNT(1) FROM (%s) t`, base)
|
|
sql := fmt.Sprintf(`SELECT COUNT(1) FROM (%s) t`, base)
|
|
err = global.DmSQL["rddp"].Raw(sql, pars...).Scan(&count).Error
|
|
err = global.DmSQL["rddp"].Raw(sql, pars...).Scan(&count).Error
|
|
return
|
|
return
|