|
@@ -23,6 +23,7 @@ type Custom struct {
|
|
Source int `description:"来源:1,英文客户,2:客户列表"`
|
|
Source int `description:"来源:1,英文客户,2:客户列表"`
|
|
OverseasLabel int `description:"海外客户试用子标签:1未分类、2 推进、3 跟踪、4 预备、"`
|
|
OverseasLabel int `description:"海外客户试用子标签:1未分类、2 推进、3 跟踪、4 预备、"`
|
|
ResetBtn int `description:"转正式和重置按钮:同步过来默认为0:显示转正式为1:显示重置为2"`
|
|
ResetBtn int `description:"转正式和重置按钮:同步过来默认为0:显示转正式为1:显示重置为2"`
|
|
|
|
+ Status string `description:"客户状态"`
|
|
}
|
|
}
|
|
|
|
|
|
type CustomTotal struct {
|
|
type CustomTotal struct {
|
|
@@ -168,7 +169,7 @@ func (obj *Custom) GetCustomList(condition string, pars []interface{}, sortField
|
|
sql = `SELECT * FROM (
|
|
sql = `SELECT * FROM (
|
|
SELECT a.company_id,a.company_name,a.nation,b.seller_id,b.seller_name,
|
|
SELECT a.company_id,a.company_name,a.nation,b.seller_id,b.seller_name,
|
|
b.view_total,b.road_show_total,a.created_time AS create_time,b.last_view_time,a.is_hide,a.overseas_status,
|
|
b.view_total,b.road_show_total,a.created_time AS create_time,b.last_view_time,a.is_hide,a.overseas_status,
|
|
- 2 AS source,b.overseas_label,a.reset_btn
|
|
|
|
|
|
+ 2 AS source,b.overseas_label,a.reset_btn,b.status
|
|
FROM company AS a
|
|
FROM company AS a
|
|
INNER JOIN company_product AS b ON a.company_id=b.company_id
|
|
INNER JOIN company_product AS b ON a.company_id=b.company_id
|
|
INNER JOIN overseas_custom_seller AS c ON b.seller_id=c.seller_id
|
|
INNER JOIN overseas_custom_seller AS c ON b.seller_id=c.seller_id
|
|
@@ -177,7 +178,7 @@ func (obj *Custom) GetCustomList(condition string, pars []interface{}, sortField
|
|
UNION ALL
|
|
UNION ALL
|
|
SELECT t.company_id+10000000,t.company_name,t.nation,t.seller_id,t.seller_name,
|
|
SELECT t.company_id+10000000,t.company_name,t.nation,t.seller_id,t.seller_name,
|
|
t.view_total,t.road_show_total,t.create_time,t.last_view_time,t.is_hide,t.overseas_status,
|
|
t.view_total,t.road_show_total,t.create_time,t.last_view_time,t.is_hide,t.overseas_status,
|
|
- 1 AS source,t.overseas_label,t.reset_btn
|
|
|
|
|
|
+ 1 AS source,t.overseas_label,t.reset_btn,CASE t.enabled WHEN 0 THEN '关闭' WHEN 1 THEN '试用' WHEN 2 THEN '试用' END status
|
|
FROM %s.english_company AS t
|
|
FROM %s.english_company AS t
|
|
INNER JOIN overseas_custom_seller AS n ON t.seller_id=n.seller_id
|
|
INNER JOIN overseas_custom_seller AS n ON t.seller_id=n.seller_id
|
|
WHERE 1=1 AND t.is_deleted=0 `
|
|
WHERE 1=1 AND t.is_deleted=0 `
|