This commit is contained in:
邹宗楠
2025-12-24 15:48:12 +08:00
parent 4e1c338bec
commit c8e1500892
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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,