1
This commit is contained in:
@@ -142,7 +142,7 @@ func QueryPrintList(db *DaoDB, printNo, printKey string, status, isOnline int64,
|
||||
sql += ` AND status = ?`
|
||||
sqlParams = append(sqlParams, status)
|
||||
}
|
||||
if status != model.PrintMsgAll {
|
||||
if isOnline != model.PrintMsgAll {
|
||||
sql += ` AND is_online = ?`
|
||||
sqlParams = append(sqlParams, isOnline)
|
||||
}
|
||||
@@ -150,8 +150,6 @@ func QueryPrintList(db *DaoDB, printNo, printKey string, status, isOnline int64,
|
||||
sqlParams = append(sqlParams, utils.DefaultTimeValue)
|
||||
sql += ` ORDER BY status desc,is_online desc LIMIT ? OFFSET ? `
|
||||
sqlParams = append(sqlParams, size, page)
|
||||
globals.SugarLogger.Debugf("-----sql := %s", sql)
|
||||
globals.SugarLogger.Debugf("-----sqlParams := %s", utils.Format4Output(sqlParams, false))
|
||||
tx, _ := Begin(db)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
|
||||
Reference in New Issue
Block a user