- refactor mysql transaction

This commit is contained in:
gazebo
2018-11-05 15:22:30 +08:00
parent cf4bfb3dd8
commit 7c07d65c48
4 changed files with 9 additions and 5 deletions

View File

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