- refactor mysql transaction
This commit is contained in:
@@ -463,9 +463,8 @@ func (c *OrderManager) GetWaybills(ctx *jxcontext.Context, fromDateStr, toDateSt
|
||||
if err = dao.GetRow(db, countInfo, "SELECT FOUND_ROWS() ct"); err == nil {
|
||||
pagedInfo.TotalCount = countInfo.Ct
|
||||
pagedInfo.Data = waybills
|
||||
return pagedInfo, nil
|
||||
}
|
||||
}
|
||||
dao.Commit(db)
|
||||
return nil, err
|
||||
return pagedInfo, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user