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 {
|
||||
|
||||
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user