This commit is contained in:
邹宗楠
2024-08-05 11:27:32 +08:00
parent 892d4f91e3
commit 7c2fa74d2d
2 changed files with 18 additions and 7 deletions

View File

@@ -171,12 +171,19 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
//}
}
if err == nil {
if isNewComment {
err = dao.CreateEntity(db, comment2)
} else if comment2 != nil {
_, err = dao.UpdateEntity(db, comment2)
}
//if err == nil {
// if isNewComment {
// err = dao.CreateEntity(db, comment2)
// } else if comment2 != nil {
// _, err = dao.UpdateEntity(db, comment2)
// }
//}
}
if err == nil {
if isNewComment {
err = dao.CreateEntity(db, comment2)
} else if comment2 != nil {
_, err = dao.UpdateEntity(db, comment2)
}
}
} else {