物料订单创建忘了加fromstoreid

This commit is contained in:
苏尹岚
2020-03-09 15:30:30 +08:00
parent c20c7b2489
commit 5d6dae4c12
2 changed files with 6 additions and 5 deletions

View File

@@ -264,10 +264,11 @@ func Init() {
} }
func syncStoreSku() { func syncStoreSku() {
syncFlag := model.SyncFlagPriceMask syncFlag := 0
if (time.Now().Unix()/24*3600)%10 == 0 { // syncFlag := model.SyncFlagPriceMask
syncFlag |= model.SyncFlagSaleMask // if (time.Now().Unix()/24*3600)%10 == 0 {
} // syncFlag |= model.SyncFlagSaleMask
// }
task := tasksch.NewParallelTask("同步京西与平台数据", nil, jxcontext.AdminCtx, task := tasksch.NewParallelTask("同步京西与平台数据", nil, jxcontext.AdminCtx,
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
step := batchItemList[0].(int) step := batchItemList[0].(int)

View File

@@ -570,7 +570,7 @@ func jxOrder2GoodsOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, deliveryAd
} }
order.TotalShopMoney += jxOrder.FreightPrice order.TotalShopMoney += jxOrder.FreightPrice
order.ActualPayPrice = order.TotalShopMoney order.ActualPayPrice = order.TotalShopMoney
order.FromStoreID = jxOrder.FromStoreID
return order, err return order, err
} }