1
This commit is contained in:
@@ -268,11 +268,11 @@ func QueryUserOrderList(userId string, expressType, orderStatus int, pageNum, pa
|
||||
pageSize = jxutils.FormalizePageSize(pageSize)
|
||||
param = append(param, pageSize, (pageNum-1)*pageSize)
|
||||
if err := dao.GetRowsTx(tx, &result, sql, param...); err != nil {
|
||||
tx.Rollback()
|
||||
dao.Rollback(db, tx)
|
||||
return nil, 0, err
|
||||
}
|
||||
count := dao.GetLastTotalRowCountTx(tx)
|
||||
tx.Commit()
|
||||
dao.Commit(db, tx)
|
||||
|
||||
return result, count, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user