首页推荐商家
This commit is contained in:
@@ -1537,3 +1537,22 @@ func GetBrandBill2(db *DaoDB, brandID int, vendorOrderID string, billType, feeTy
|
||||
}
|
||||
return data, err
|
||||
}
|
||||
|
||||
type BrandInfos struct {
|
||||
Name string
|
||||
Logo string
|
||||
}
|
||||
|
||||
//获取门店品牌信息
|
||||
func GetStoreBrandInfos(storeID int) (date *BrandInfos, err error) {
|
||||
var detail *BrandInfos
|
||||
sqlParams := []interface{}{}
|
||||
sql := "SELECT b.`name`,b.logo FROM store s LEFT JOIN brand b ON s.brand_id = b.id WHERE s.id= ? "
|
||||
if storeID >= 0 {
|
||||
sqlParams = append(sqlParams, storeID)
|
||||
}
|
||||
if err := GetRow(GetDB(), &detail, sql, sqlParams); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return detail, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user