|
@@ -10,24 +10,26 @@ import (
|
|
|
)
|
|
|
|
|
|
type ClueInfo struct {
|
|
|
- Id int64 `json:"id"`
|
|
|
- ClueName string `json:"cluename"`
|
|
|
- PositionId int64 `json:"position_id"`
|
|
|
- SeatNumber string `json:"seatNumber"`
|
|
|
- CompanyNature int `json:"company_natural"` // 公司性质 集团/非集团
|
|
|
- LockStatus int `json:"lock_status"` // 锁定状态
|
|
|
- LockPerson string `json:"lock_person"` // 锁定人
|
|
|
- LockTime string `json:"lock_time"` // 锁定时间
|
|
|
- Name string `json:"name"` // 联系人
|
|
|
- SalesPeople int `json:"sales_people"` // 销售人员
|
|
|
- IsAssign int `json:"is_assign"` // 线索池
|
|
|
- CustomerDemand string `json:"customer_demand"` // 客户需求
|
|
|
- IntendedProducts string `json:"intended_products"` // 意向产品
|
|
|
- CustomerBudget int64 `json:"customer_budget"` // 客户预算
|
|
|
- Content string `json:"content"` // 最近跟进内容
|
|
|
- TrailTime string `json:"trail_time"` // 最近跟进时间
|
|
|
- StartTrailTime string `json:"start_trail_time"` // 开始跟进时间
|
|
|
- ClueStatus string `json:"clue_status"` // 线索状态
|
|
|
+ Id int64 `json:"id"`
|
|
|
+ ClueName string `json:"cluename"`
|
|
|
+ PositionId int64 `json:"position_id"`
|
|
|
+ SeatNumber string `json:"seatNumber"`
|
|
|
+ CompanyNature int `json:"company_natural"` // 公司性质 集团/非集团
|
|
|
+ LockStatus int `json:"lock_status"` // 锁定状态
|
|
|
+ LockPerson string `json:"lock_person"` // 锁定人
|
|
|
+ LockTime string `json:"lock_time"` // 锁定时间
|
|
|
+ Name string `json:"name"` // 联系人
|
|
|
+ SalesPeople int `json:"sales_people"` // 销售人员
|
|
|
+ IsAssign int `json:"is_assign"` // 线索池
|
|
|
+ CustomerDemand string `json:"customer_demand"` // 客户需求
|
|
|
+ IntendedProducts string `json:"intended_products"` // 意向产品
|
|
|
+ CustomerBudget int64 `json:"customer_budget"` // 客户预算
|
|
|
+ Content string `json:"content"` // 最近跟进内容
|
|
|
+ TrailTime string `json:"trail_time"` // 最近跟进时间
|
|
|
+ StartTrailTime string `json:"start_trail_time"` // 开始跟进时间
|
|
|
+ ClueStatus string `json:"clue_status"` // 线索状态
|
|
|
+ IsTransfer int `json:"is_transfer"`
|
|
|
+ CompanyVerification int `json:"company_verification"`
|
|
|
//客成
|
|
|
SucManager string `json:"suc_manager"` // 客成经理
|
|
|
// 企业
|
|
@@ -94,21 +96,23 @@ func CheckingList(in *pb.ClueInfoReq) *pb.BiReply {
|
|
|
|
|
|
func getClueInfo(tmp map[string]interface{}) *ClueInfo {
|
|
|
clueInfo := &ClueInfo{
|
|
|
- Id: common.Int64All(tmp["id"]),
|
|
|
- ClueName: common.ObjToString(tmp["cluename"]),
|
|
|
- SeatNumber: common.ObjToString(tmp["seatNumber"]),
|
|
|
- CompanyNature: common.IntAll(tmp["COMPANY_NATURE"]),
|
|
|
- LockStatus: common.IntAll(tmp["lock_status"]),
|
|
|
- LockTime: common.ObjToString(tmp["lock_time"]),
|
|
|
- Name: common.ObjToString(tmp["name"]),
|
|
|
- IsAssign: common.IntAll(tmp["is_assign"]),
|
|
|
- CustomerDemand: common.ObjToString(tmp["customer_demand"]),
|
|
|
- IntendedProducts: common.ObjToString(tmp["intended_products"]),
|
|
|
- CustomerBudget: common.Int64All(tmp["customer_budget"]),
|
|
|
- Content: common.ObjToString(tmp["content"]),
|
|
|
- TrailTime: common.ObjToString(tmp["trail_time"]),
|
|
|
- SucManager: common.ObjToString(tmp["customer"]),
|
|
|
- ClueStatus: common.ObjToString(tmp["trailstatus_name"]),
|
|
|
+ Id: common.Int64All(tmp["id"]),
|
|
|
+ ClueName: common.ObjToString(tmp["cluename"]),
|
|
|
+ SeatNumber: common.ObjToString(tmp["seatNumber"]),
|
|
|
+ CompanyNature: common.IntAll(tmp["COMPANY_NATURE"]),
|
|
|
+ LockStatus: common.IntAll(tmp["lock_status"]),
|
|
|
+ LockTime: common.ObjToString(tmp["lock_time"]),
|
|
|
+ Name: common.ObjToString(tmp["name"]),
|
|
|
+ IsAssign: common.IntAll(tmp["is_assign"]),
|
|
|
+ CustomerDemand: common.ObjToString(tmp["customer_demand"]),
|
|
|
+ IntendedProducts: common.ObjToString(tmp["intended_products"]),
|
|
|
+ CustomerBudget: common.Int64All(tmp["customer_budget"]),
|
|
|
+ Content: common.ObjToString(tmp["content"]),
|
|
|
+ TrailTime: common.ObjToString(tmp["trail_time"]),
|
|
|
+ SucManager: common.ObjToString(tmp["customer"]),
|
|
|
+ ClueStatus: common.ObjToString(tmp["trailstatus_name"]),
|
|
|
+ IsTransfer: common.IntAll(tmp["IS_TRANSFER"]),
|
|
|
+ CompanyVerification: common.IntAll(tmp["COMPANY_VERIFICATION"]),
|
|
|
}
|
|
|
clueInfo.LockPerson, _ = getSeatNumber(common.Int64All(tmp["lock_position_id"]))
|
|
|
if common.IntAll(tmp["COMPANY_VERIFICATION"]) == 1 {
|