@@ -113,6 +113,7 @@ func AddStroehouse(storehouse models.Storehouse) error {
tx := XTWriteDB().Begin()
defer func() {
if err != nil {
+ utils.ErrorLog("新增仓库_事务失败,原因为", err)
tx.Rollback()
} else {
tx.Commit()