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