123
This commit is contained in:
@@ -68,6 +68,9 @@ type StoreDetail struct {
|
||||
BrandIsOpen int `json:"brandIsOpen"`
|
||||
BrandIsPrint int `json:"brandIsPrint"`
|
||||
}
|
||||
type BrandID struct {
|
||||
BrandID int `orm:"column(brand_id)" json:"brandID"`
|
||||
}
|
||||
|
||||
// 带快递门店信息的
|
||||
type StoreDetail2 struct {
|
||||
@@ -1486,3 +1489,13 @@ func InsertBrandCategories(db *DaoDB, userName string, brandID int) (err error)
|
||||
_, err = ExecuteSQL(db, sql, sqlParams)
|
||||
return err
|
||||
}
|
||||
func GetStoreBrandID(db *DaoDB, storeID int) (brandID int, err error) {
|
||||
sql := `
|
||||
SELECT *
|
||||
FROM store
|
||||
WHERE store_id = ?
|
||||
`
|
||||
sqlparams := []interface{}{utils.DefaultTimeValue, storeID}
|
||||
err = GetRows(db, &brandID, sql, sqlparams)
|
||||
return brandID, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user