This commit is contained in:
邹宗楠
2022-12-16 12:44:58 +08:00
parent 4931198e98
commit 5e7533cc67
3 changed files with 4 additions and 1 deletions

View File

@@ -61,5 +61,6 @@ func (p PrintNotice) SelectPrintNotice(param *editionModel.QueryPrintNotice) ([]
txDb.Rollback()
return nil, 0, err
}
defer txDb.Commit()
return result, countInfo[0].Ct, nil
}

View File

@@ -71,6 +71,8 @@ func (p *PrintBindStore) RelievePrintBindStore(userId, printNo string) error {
db.Rollback()
return err
}
defer db.Commit()
// 绑定的门店将用户信息修改掉(暂时没做)
return nil
}

View File

@@ -140,7 +140,7 @@ func onTLPayFinished(call *tonglianpayapi.CallBackResult) (err error) {
err = onPayFinished(txDb, orderPay)
}
txDb.Commit()
defer txDb.Commit()
return err
}