diff --git a/business/model/dao/dao_print.go b/business/model/dao/dao_print.go index 7f42ef651..a0bf9b534 100644 --- a/business/model/dao/dao_print.go +++ b/business/model/dao/dao_print.go @@ -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 { diff --git a/controllers/api_controller.go b/controllers/api_controller.go index 834614145..6118f875e 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -230,7 +230,6 @@ func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data map page int64 size int64 ) - globals.SugarLogger.Debugf("-----dataMap := %s", utils.Format4Output(dataMap, false)) if printNoParam, ok := dataMap["print_no"].(string); !ok { printNo = ""