- use store 100119 to test OrderUseNewTable.
This commit is contained in:
@@ -72,7 +72,7 @@ func (c *BaseScheduler) PickupGoodsAndUpdateStatus(ctx *jxcontext.Context, vendo
|
||||
|
||||
func getStoreDeliveryType(order *model.GoodsOrder) (deliveryType int) {
|
||||
jxStoreID := jxutils.GetJxStoreIDFromOrder(order)
|
||||
if globals.OrderUseNewTable {
|
||||
if globals.OrderUseNewTable || jxStoreID == globals.DebugStoreID {
|
||||
deliveryType = scheduler.StoreDeliveryTypeByPlatform // 缺省值
|
||||
if storeMap, _ := dao.GetStoreMapByStoreID(nil, jxStoreID, order.VendorID); storeMap != nil {
|
||||
deliveryType = int(storeMap.DeliveryType)
|
||||
|
||||
@@ -102,7 +102,7 @@ func (s *WatchOrderInfo) SetOrder(order *model.GoodsOrder) (retVal *model.GoodsO
|
||||
func (s *WatchOrderInfo) updateOrderStoreFeature(order *model.GoodsOrder) (err error) {
|
||||
globals.SugarLogger.Debugf("updateOrderStoreFeature orderID:%s", order.VendorOrderID)
|
||||
jxStoreID := jxutils.GetJxStoreIDFromOrder(order)
|
||||
if globals.OrderUseNewTable {
|
||||
if globals.OrderUseNewTable || jxStoreID == globals.DebugStoreID {
|
||||
if jxStoreID > 0 {
|
||||
db := dao.GetDB()
|
||||
storeMap, err2 := dao.GetStoreMapByStoreID(db, jxStoreID, order.VendorID)
|
||||
|
||||
Reference in New Issue
Block a user