This commit is contained in:
邹宗楠
2021-12-30 15:54:43 +08:00
parent 0367c61d05
commit 84a2921cfa
6 changed files with 22 additions and 7 deletions

View File

@@ -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
}

View File

@@ -501,8 +501,7 @@ type StoreAcctOrder struct {
VendorOrderID string `orm:"column(vendor_order_id);size(48)" json:"vendorOrderID"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
StoreID int `orm:"column(store_id)" json:"storeID"` // 外部系统里记录的 jxstoreid
BrandID int `orm:"column(brand_id)" json:"brandID"`
ActualPayPrice int `json:"actualPayPrice"` // 单位为分 顾客实际支付
ActualPayPrice int `json:"actualPayPrice"` // 单位为分 顾客实际支付
UserID string `orm:"column(user_id);size(48);index" json:"userID"`
OrderType int `json:"orderType"`
Status int `json:"status"` // 参见OrderStatus*相关的常量定义

View File

@@ -815,6 +815,7 @@ func (*StoreAudit) TableIndex() [][]string {
type Brand struct {
ModelIDCULD
ID int `json:"Brand_id"`
Name string `orm:"size(255)" json:"name"` //品牌名
Logo string `orm:"size(255)" json:"logo"` //品牌logo
BrandType int `json:"brandType"` //品牌类型