linkStoreCount
This commit is contained in:
@@ -66,6 +66,7 @@ type StoreExt struct {
|
|||||||
StoreMapStr string `json:"-"`
|
StoreMapStr string `json:"-"`
|
||||||
CourierMapStr string `json:"-"`
|
CourierMapStr string `json:"-"`
|
||||||
PayeeBankName string `json:"payeeBankName"` // 开户行名称
|
PayeeBankName string `json:"payeeBankName"` // 开户行名称
|
||||||
|
LinkStoreCount int `json:"linkStoreCount"`
|
||||||
// StoreMaps []map[string]interface{} `orm:"-"`
|
// StoreMaps []map[string]interface{} `orm:"-"`
|
||||||
// CourierMaps []map[string]interface{} `orm:"-"`
|
// CourierMaps []map[string]interface{} `orm:"-"`
|
||||||
StoreMaps []*model.StoreMap `json:"StoreMaps"`
|
StoreMaps []*model.StoreMap `json:"StoreMaps"`
|
||||||
@@ -452,7 +453,8 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
|
|||||||
province.code province_code,
|
province.code province_code,
|
||||||
province.name province_name,
|
province.name province_name,
|
||||||
city.name city_name,
|
city.name city_name,
|
||||||
district.name district_name
|
district.name district_name,
|
||||||
|
(SELECT COUNT(*) FROM store t11 WHERE t11.link_store_id = t1.id) link_store_count
|
||||||
` + sql + `
|
` + sql + `
|
||||||
ORDER BY t1.id DESC
|
ORDER BY t1.id DESC
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ type Store struct {
|
|||||||
ChangePriceType int8 `json:"changePriceType"` // 修改价格类型,即是否需要审核
|
ChangePriceType int8 `json:"changePriceType"` // 修改价格类型,即是否需要审核
|
||||||
SMSNotify int8 `orm:"column(sms_notify);" json:"smsNotify"` // 是否通过短信接收订单消息
|
SMSNotify int8 `orm:"column(sms_notify);" json:"smsNotify"` // 是否通过短信接收订单消息
|
||||||
AutoReplyType int8 `json:"autoReplyType"` // 订单评价自动回复类型
|
AutoReplyType int8 `json:"autoReplyType"` // 订单评价自动回复类型
|
||||||
LinkStoreID int `orm:"column(link_store_id);default(0)" json:"linkStoreID"` // 关联门店ID
|
LinkStoreID int `orm:"column(link_store_id);default(0);index" json:"linkStoreID"` // 关联门店ID
|
||||||
|
|
||||||
PrinterDisabled int8 `orm:"default(0)" json:"printerDisabled"` // 是否禁用网络打印机
|
PrinterDisabled int8 `orm:"default(0)" json:"printerDisabled"` // 是否禁用网络打印机
|
||||||
PrinterFontSize int8 `orm:"default(0)" json:"printerFontSize"` // 打印字体-1:小,0:正常,1:大
|
PrinterFontSize int8 `orm:"default(0)" json:"printerFontSize"` // 打印字体-1:小,0:正常,1:大
|
||||||
|
|||||||
Reference in New Issue
Block a user