diff --git a/business/jxcallback/orderman/order_comment.go b/business/jxcallback/orderman/order_comment.go index 93fb530ac..ca7ce778b 100644 --- a/business/jxcallback/orderman/order_comment.go +++ b/business/jxcallback/orderman/order_comment.go @@ -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 { diff --git a/business/model/dao/dao_order_sku_financial.go b/business/model/dao/dao_order_sku_financial.go index 6bf6c289b..8e900399f 100644 --- a/business/model/dao/dao_order_sku_financial.go +++ b/business/model/dao/dao_order_sku_financial.go @@ -38,7 +38,11 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL vendorOrderIdList = append(vendorOrderIdList, v.VendorOrderId) } } - globals.SugarLogger.Debugf("====vendorOrderIdList := %s", utils.Format4Output(vendorOrderIdList, false)) + if len(vendorOrderIdList) == 0 { + globals.SugarLogger.Debugf("commentOrder name list := %s", utils.Format4Output(commentOrder, false)) + globals.SugarLogger.Debugf("foodNameList name list := %s", utils.Format4Output(foodNameList, false)) + globals.SugarLogger.Debugf("jxStoreId name list := %s", utils.Format4Output(jxStoreId, false)) + } sql2 := `SELECT * FROM order_sku_financial WHERE vendor_order_id = ? AND is_afs_order = 0 AND vendor_id = 1 ` mathProbability := make(map[string]float64, 0)