1
This commit is contained in:
@@ -172,7 +172,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if comment2.OrderFlag == "1" {
|
if comment2.OrderFlag == "1" {
|
||||||
globals.SugarLogger.Debugf("---------------comment2-isNewComment :%s", utils.Format4Output(comment2, false))
|
|
||||||
}
|
}
|
||||||
if isNewComment {
|
if isNewComment {
|
||||||
err = dao.CreateEntity(db, comment2)
|
err = dao.CreateEntity(db, comment2)
|
||||||
@@ -181,18 +180,12 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if comment2.OrderFlag == "1" {
|
|
||||||
globals.SugarLogger.Debugf("---------------comment2-UpdateEntity :%s", utils.Format4Output(comment2, false))
|
|
||||||
}
|
|
||||||
if orderComment.VendorOrderID2 != "" {
|
if orderComment.VendorOrderID2 != "" {
|
||||||
comment2.VendorOrderId = orderComment.VendorOrderID2
|
comment2.VendorOrderId = orderComment.VendorOrderID2
|
||||||
_, err = dao.UpdateEntity(db, comment2)
|
_, err = dao.UpdateEntity(db, comment2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if comment2.OrderFlag == "1" {
|
|
||||||
globals.SugarLogger.Debugf("---------------comment2-UpdateEntity2 :%s", utils.Format4Output(comment2, false))
|
|
||||||
}
|
|
||||||
comment2.VendorOrderId = orderComment.VendorOrderID2
|
comment2.VendorOrderId = orderComment.VendorOrderID2
|
||||||
_, err = dao.UpdateEntity(db, comment2, "VendorOrderId")
|
_, err = dao.UpdateEntity(db, comment2, "VendorOrderId")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user