aa
This commit is contained in:
@@ -94,7 +94,7 @@ func GetPlaces(db *DaoDB, cityCodes []int) (places []*model.Place, err error) {
|
||||
`
|
||||
sqlParams := []interface{}{}
|
||||
if len(cityCodes) > 0 {
|
||||
sql += " AND city_code IN (" + GenQuestionMarks(len(cityCodes)) + ")"
|
||||
sql += " AND code IN (" + GenQuestionMarks(len(cityCodes)) + ")"
|
||||
sqlParams = append(sqlParams, cityCodes)
|
||||
}
|
||||
return places, err
|
||||
|
||||
@@ -228,10 +228,12 @@ func (v *UserMember) TableIndex() [][]string {
|
||||
type Role struct {
|
||||
ModelIDCULD
|
||||
|
||||
Name string `json:"name"` //角色名
|
||||
BrandID int `orm:"column(brand_id)" json:"brandID"`
|
||||
CityCodes string `orm:"type(text)" json:"cityCodes"`
|
||||
StoreIDs string `orm:"column(store_ids);type(text)" json:"storeIDs"`
|
||||
Name string `json:"name"` //角色名
|
||||
BrandID int `orm:"column(brand_id)" json:"brandID"`
|
||||
CityCodes string `orm:"type(text)" json:"cityCodes"`
|
||||
StoreIDs string `orm:"column(store_ids);type(text)" json:"storeIDs"`
|
||||
CityInfo []*Place `orm:"-" json:"cityInfo"`
|
||||
Stores []*Store `orm:"-" json:"storeInfo"`
|
||||
}
|
||||
|
||||
func (*Role) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user