|
@@ -176,13 +176,12 @@ func GetCompanySellerName(companyId int) (sellerName string, err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-type CompanyProduct struct {
|
|
|
+type CompanyProductDetial struct {
|
|
|
IsSuspend int `description:"1:暂停,0:启用"`
|
|
|
Scale string `description:"管理规模,空不填,1::50亿以下,2:50~100亿,3:100亿以上。多个用, 隔开"`
|
|
|
}
|
|
|
|
|
|
-//获取对应销售以及销售的手机号
|
|
|
-func GetCompanyProductDetail(companyId, productId int) (item *CompanyProductStatus, err error) {
|
|
|
+func GetCompanyProductDetail(companyId, productId int) (item *CompanyProductDetial, err error) {
|
|
|
sql := ` SELECT * FROM company_product WHERE company_id = ? AND product_id = ?; `
|
|
|
o := orm.NewOrm()
|
|
|
err = o.Raw(sql, companyId, productId).QueryRow(&item)
|