aa
This commit is contained in:
@@ -82,9 +82,9 @@ type StoreExt struct {
|
||||
BrandLogo string `json:"brandLogo"`
|
||||
// StoreMaps []map[string]interface{} `orm:"-"`
|
||||
// CourierMaps []map[string]interface{} `orm:"-"`
|
||||
StoreMaps []*model.StoreMap `json:"StoreMaps"`
|
||||
CourierMaps []*model.StoreCourierMap `json:"CourierMaps"`
|
||||
// BussinessStatus int `json:"bussinessStatus"` //上下线状态,-1下线,1上线
|
||||
StoreMaps []*model.StoreMap `json:"StoreMaps"`
|
||||
CourierMaps []*model.StoreCourierMap `json:"CourierMaps"`
|
||||
BussinessStatus int `json:"bussinessStatus"` //上下线状态,-1下线,1上线
|
||||
|
||||
OrderCount int `json:"orderCount"`
|
||||
}
|
||||
@@ -685,6 +685,11 @@ func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorS
|
||||
if !jxutils.IsLegalStoreID(retVal.ID) {
|
||||
retVal.ID = 0
|
||||
}
|
||||
if retVal.Status == model.StoreStatusDisabled {
|
||||
retVal.BussinessStatus = -1
|
||||
} else {
|
||||
retVal.BussinessStatus = 1
|
||||
}
|
||||
return retVal, nil
|
||||
}
|
||||
return nil, err
|
||||
|
||||
@@ -432,9 +432,9 @@ func 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()))
|
||||
//刷新门店分组管理
|
||||
|
||||
Reference in New Issue
Block a user