This commit is contained in:
邹宗楠
2024-07-24 15:25:26 +08:00
parent f09cc25e07
commit 9d73cf1cd0
4 changed files with 71 additions and 14 deletions

View File

@@ -172,10 +172,8 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
if err == nil {
if isNewComment {
globals.SugarLogger.Debugf("================new comment2 := %s", utils.Format4Output(comment2, false))
err = dao.CreateEntity(db, comment2)
} else if comment2 != nil {
globals.SugarLogger.Debugf("================UpdateEntity comment2 := %s", utils.Format4Output(comment2, false))
_, err = dao.UpdateEntity(db, comment2)
}
}