|
@@ -106,8 +106,8 @@ func getClueInfo(tmp map[string]interface{}) *ClueInfo {
|
|
|
ClueName: common.ObjToString(tmp["cluename"]),
|
|
|
SeatNumber: common.ObjToString(tmp["seatNumber"]),
|
|
|
PositionId: common.Int64All(tmp["position_id"]),
|
|
|
- CompanyNature: common.IntAll(tmp["COMPANY_NATURE"]),
|
|
|
- CompanyNatureStr: common.ObjToString(common.If(common.IntAll(tmp["COMPANY_NATURE"]) == 0, "非集团公司", "集团公司")),
|
|
|
+ CompanyNature: common.IntAll(tmp["company_nature"]),
|
|
|
+ CompanyNatureStr: common.ObjToString(common.If(common.IntAll(tmp["company_nature"]) == 0, "非集团公司", "集团公司")),
|
|
|
LockStatus: common.IntAll(tmp["lock_status"]),
|
|
|
LockTime: common.ObjToString(tmp["lock_time"]),
|
|
|
LockPositionId: common.Int64All(tmp["lock_position_id"]),
|
|
@@ -121,8 +121,8 @@ func getClueInfo(tmp map[string]interface{}) *ClueInfo {
|
|
|
SalesPeople: common.ObjToString(tmp["sales_people"]),
|
|
|
SucManager: common.ObjToString(common.If(common.ObjToString(tmp["customer"]) != "", common.ObjToString(tmp["customer"]), "/")),
|
|
|
ClueStatus: common.ObjToString(tmp["trailstatus_name"]),
|
|
|
- IsTransfer: common.IntAll(tmp["IS_TRANSFER"]),
|
|
|
- CompanyVerification: common.IntAll(tmp["COMPANY_VERIFICATION"]),
|
|
|
+ IsTransfer: common.IntAll(tmp["is_transfer"]),
|
|
|
+ CompanyVerification: common.IntAll(tmp["company_verification"]),
|
|
|
}
|
|
|
switch clueInfo.IsAssign {
|
|
|
case 0:
|
|
@@ -151,14 +151,14 @@ func getClueInfo(tmp map[string]interface{}) *ClueInfo {
|
|
|
clueInfo.LockStatusStr = "无需锁定"
|
|
|
}
|
|
|
clueInfo.LockPerson, _ = getSeatNumber(common.Int64All(tmp["lock_position_id"]))
|
|
|
- if common.IntAll(tmp["COMPANY_VERIFICATION"]) == 1 {
|
|
|
+ if common.IntAll(tmp["company_verification"]) == 1 {
|
|
|
ent, b := entity.MgoQyxy.FindOneByField("qyxy_std", map[string]interface{}{"company_name": clueInfo.ClueName},
|
|
|
map[string]interface{}{"legal_person": 1})
|
|
|
if b && len(*ent) > 0 {
|
|
|
clueInfo.LegalPerson = common.ObjToString((*ent)["legal_person"])
|
|
|
}
|
|
|
}
|
|
|
- if common.IntAll(tmp["IS_TRANSFER"]) == 1 {
|
|
|
+ if common.IntAll(tmp["is_transfer"]) == 1 {
|
|
|
clueInfo.ClueOwn = "客户成功组"
|
|
|
} else if clueInfo.IsAssign == 0 && clueInfo.PositionId == 0 {
|
|
|
clueInfo.ClueOwn = "销售一部、三部"
|