|
@@ -215,6 +215,7 @@ func GetSellerDetailAllByCompanyId(companyId int) (item *CompanyDetail, err erro
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+// 获取FICC与权益销售
|
|
|
func GetCompanySellerName(companyId int) (sellerName string, err error) {
|
|
|
sql := ` SELECT
|
|
|
GROUP_CONCAT( DISTINCT p.seller_name SEPARATOR '/' ) AS sellerName
|
|
@@ -227,6 +228,19 @@ func GetCompanySellerName(companyId int) (sellerName string, err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+// 获取权益销售
|
|
|
+func GetCompanySellerNameRai(companyId int) (sellerName string, err error) {
|
|
|
+ sql := ` SELECT
|
|
|
+ seller_name AS sellerName
|
|
|
+ FROM
|
|
|
+ company_product AS p
|
|
|
+ WHERE
|
|
|
+ p.company_id = ? AND product_id = 2 `
|
|
|
+ o := orm.NewOrmUsingDB("weekly_report")
|
|
|
+ err = o.Raw(sql, companyId).QueryRow(&sellerName)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
type CompanyProductStatus struct {
|
|
|
IsSuspend int `description:"1:暂停,0:启用"`
|
|
|
}
|