aa
This commit is contained in:
@@ -84,7 +84,7 @@ type StoreExt struct {
|
|||||||
// CourierMaps []map[string]interface{} `orm:"-"`
|
// CourierMaps []map[string]interface{} `orm:"-"`
|
||||||
StoreMaps []*model.StoreMap `json:"StoreMaps"`
|
StoreMaps []*model.StoreMap `json:"StoreMaps"`
|
||||||
CourierMaps []*model.StoreCourierMap `json:"CourierMaps"`
|
CourierMaps []*model.StoreCourierMap `json:"CourierMaps"`
|
||||||
// BussinessStatus int `json:"bussinessStatus"` //上下线状态,-1下线,1上线
|
BussinessStatus int `json:"bussinessStatus"` //上下线状态,-1下线,1上线
|
||||||
|
|
||||||
OrderCount int `json:"orderCount"`
|
OrderCount int `json:"orderCount"`
|
||||||
}
|
}
|
||||||
@@ -685,6 +685,11 @@ func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorS
|
|||||||
if !jxutils.IsLegalStoreID(retVal.ID) {
|
if !jxutils.IsLegalStoreID(retVal.ID) {
|
||||||
retVal.ID = 0
|
retVal.ID = 0
|
||||||
}
|
}
|
||||||
|
if retVal.Status == model.StoreStatusDisabled {
|
||||||
|
retVal.BussinessStatus = -1
|
||||||
|
} else {
|
||||||
|
retVal.BussinessStatus = 1
|
||||||
|
}
|
||||||
return retVal, nil
|
return retVal, nil
|
||||||
}
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@@ -432,9 +432,9 @@ func doDailyWork2() {
|
|||||||
globals.SugarLogger.Debug("doDailyWork2")
|
globals.SugarLogger.Debug("doDailyWork2")
|
||||||
|
|
||||||
//同步京东商城门店的商品
|
//同步京东商城门店的商品
|
||||||
cms.CurVendorSync.SyncJdsStoresSkus(jxcontext.AdminCtx, nil, true, true)
|
// cms.CurVendorSync.SyncJdsStoresSkus(jxcontext.AdminCtx, nil, true, true)
|
||||||
//刷新京东商城的门店库存
|
//刷新京东商城的门店库存
|
||||||
cms.SyncJdsStoreStock(jxcontext.AdminCtx, true, true)
|
// cms.SyncJdsStoreStock(jxcontext.AdminCtx, true, true)
|
||||||
//刷新京东商城订单结算价
|
//刷新京东商城订单结算价
|
||||||
orderman.RefreshJdShopOrdersEarningPrice(jxcontext.AdminCtx, utils.Time2Str(time.Now().AddDate(0, 0, -2)), utils.Time2Str(time.Now()))
|
orderman.RefreshJdShopOrdersEarningPrice(jxcontext.AdminCtx, utils.Time2Str(time.Now().AddDate(0, 0, -2)), utils.Time2Str(time.Now()))
|
||||||
//刷新门店分组管理
|
//刷新门店分组管理
|
||||||
|
|||||||
Reference in New Issue
Block a user