1
This commit is contained in:
@@ -171,6 +171,14 @@ 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 err == nil {
|
||||||
if isNewComment {
|
if isNewComment {
|
||||||
err = dao.CreateEntity(db, comment2)
|
err = dao.CreateEntity(db, comment2)
|
||||||
@@ -178,7 +186,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
_, err = dao.UpdateEntity(db, comment2)
|
_, err = dao.UpdateEntity(db, comment2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Debugf("=comment2Update========== %s", utils.Format4Output(comment2, false))
|
globals.SugarLogger.Debugf("=comment2Update========== %s", utils.Format4Output(comment2, false))
|
||||||
comment2.VendorOrderId = orderComment.VendorOrderID2
|
comment2.VendorOrderId = orderComment.VendorOrderID2
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL
|
|||||||
vendorOrderIdList = append(vendorOrderIdList, v.VendorOrderId)
|
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 `
|
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)
|
mathProbability := make(map[string]float64, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user