1
This commit is contained in:
@@ -1562,3 +1562,20 @@ func GetStoreBrandInfos(storeID int) (date *BrandInfos, err error) {
|
|||||||
}
|
}
|
||||||
return detail, err
|
return detail, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//查询门店绑定的运费模板
|
||||||
|
func QueryStoreBindInfo(storeID int) (*model.FreightTemplate, error) {
|
||||||
|
var (
|
||||||
|
sqlParams = []interface{}{}
|
||||||
|
bindInfo *model.FreightTemplate
|
||||||
|
)
|
||||||
|
sql := "SELECT a.store_id,a.vendor_store_id,a.template_id,a.warehouse_id,a.fence_id FROM freight_template a "
|
||||||
|
if storeID != 0 {
|
||||||
|
sql += "WHERE store_id = ? "
|
||||||
|
sqlParams = append(sqlParams, storeID)
|
||||||
|
}
|
||||||
|
if err := GetRow(GetDB(), &bindInfo, sql, sqlParams); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return bindInfo, nil
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user