This commit is contained in:
苏尹岚
2021-04-07 09:00:38 +08:00
parent d1bf1cc6b3
commit d030002bf6
2 changed files with 10 additions and 5 deletions

View File

@@ -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

View File

@@ -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()))
//刷新门店分组管理