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
|
||||
|
||||
Reference in New Issue
Block a user