From c8e1500892851b32cdacdaf30fa17bf637623796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 24 Dec 2025 15:48:12 +0800 Subject: [PATCH] 1 --- business/model/dao/dao_print.go | 2 -- controllers/api_controller.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/dao/dao_print.go b/business/model/dao/dao_print.go index 3960c30ad..789361aae 100644 --- a/business/model/dao/dao_print.go +++ b/business/model/dao/dao_print.go @@ -150,8 +150,6 @@ func QueryPrintList(db *DaoDB, printNo, printKey string, status, isOnline int, p 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 f3860e252..6463abe1c 100644 --- a/controllers/api_controller.go +++ b/controllers/api_controller.go @@ -230,6 +230,7 @@ func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data map page int size int ) + globals.SugarLogger.Debugf("-----dataMap := %s", utils.Format4Output(dataMap, false)) if printNoParam, ok := dataMap["print_no"].(string); !ok { printNo = "" @@ -261,6 +262,7 @@ func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data map } else { size = s } + list, count, err := cms.QueryPrintList(printNo, printKey, status, isOnline, page, size) data = map[string]interface{}{ "printList": list,