1
This commit is contained in:
@@ -150,8 +150,6 @@ func QueryPrintList(db *DaoDB, printNo, printKey string, status, isOnline int, p
|
|||||||
sqlParams = append(sqlParams, utils.DefaultTimeValue)
|
sqlParams = append(sqlParams, utils.DefaultTimeValue)
|
||||||
sql += ` ORDER BY status desc,is_online desc LIMIT ? OFFSET ? `
|
sql += ` ORDER BY status desc,is_online desc LIMIT ? OFFSET ? `
|
||||||
sqlParams = append(sqlParams, size, page)
|
sqlParams = append(sqlParams, size, page)
|
||||||
globals.SugarLogger.Debugf("-----sql := %s", sql)
|
|
||||||
globals.SugarLogger.Debugf("-----sqlParams := %s", utils.Format4Output(sqlParams, false))
|
|
||||||
tx, _ := Begin(db)
|
tx, _ := Begin(db)
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
|
|||||||
@@ -230,6 +230,7 @@ func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data map
|
|||||||
page int
|
page int
|
||||||
size int
|
size int
|
||||||
)
|
)
|
||||||
|
globals.SugarLogger.Debugf("-----dataMap := %s", utils.Format4Output(dataMap, false))
|
||||||
|
|
||||||
if printNoParam, ok := dataMap["print_no"].(string); !ok {
|
if printNoParam, ok := dataMap["print_no"].(string); !ok {
|
||||||
printNo = ""
|
printNo = ""
|
||||||
@@ -261,6 +262,7 @@ func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data map
|
|||||||
} else {
|
} else {
|
||||||
size = s
|
size = s
|
||||||
}
|
}
|
||||||
|
|
||||||
list, count, err := cms.QueryPrintList(printNo, printKey, status, isOnline, page, size)
|
list, count, err := cms.QueryPrintList(printNo, printKey, status, isOnline, page, size)
|
||||||
data = map[string]interface{}{
|
data = map[string]interface{}{
|
||||||
"printList": list,
|
"printList": list,
|
||||||
|
|||||||
Reference in New Issue
Block a user