|
@@ -5,6 +5,7 @@ import (
|
|
"database/sql"
|
|
"database/sql"
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
|
|
+ "github.com/gogf/gf/v2/util/gconv"
|
|
"io/ioutil"
|
|
"io/ioutil"
|
|
"math"
|
|
"math"
|
|
"net/http"
|
|
"net/http"
|
|
@@ -809,11 +810,12 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
|
|
companyName = phone
|
|
companyName = phone
|
|
}
|
|
}
|
|
isOK, isOks, dataMap := false, true, map[string]interface{}{
|
|
isOK, isOks, dataMap := false, true, map[string]interface{}{
|
|
- "cluename": companyName,
|
|
|
|
- "name": name,
|
|
|
|
- "phone": phone,
|
|
|
|
- "position": position,
|
|
|
|
- "clueSource": clueSource,
|
|
|
|
|
|
+ "cluename": companyName,
|
|
|
|
+ "companyName": companyName,
|
|
|
|
+ "name": name,
|
|
|
|
+ "phone": phone,
|
|
|
|
+ "position": position,
|
|
|
|
+ "clueSource": clueSource,
|
|
}
|
|
}
|
|
if phone == "" {
|
|
if phone == "" {
|
|
isOks = false
|
|
isOks = false
|
|
@@ -971,6 +973,16 @@ func ClueImportSync(this *biservice.ClueImportReq) (string, int) {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ isUpdate := gconv.Int64((*clueData)["is_artificially_modified"])
|
|
|
|
+ if isUpdate == 1 {
|
|
|
|
+ cluename = ""
|
|
|
|
+ } else {
|
|
|
|
+ if gconv.String(v["companyName"]) != "" {
|
|
|
|
+ cluename = gconv.String(v["companyName"])
|
|
|
|
+ } else {
|
|
|
|
+ cluename = ""
|
|
|
|
+ }
|
|
|
|
+ }
|
|
is_assign := common.IntAll((*clueData)["is_assign"])
|
|
is_assign := common.IntAll((*clueData)["is_assign"])
|
|
clueId := common.Int64All((*clueData)["id"])
|
|
clueId := common.Int64All((*clueData)["id"])
|
|
batch_import := common.ObjToString((*clueData)["batch_import"])
|
|
batch_import := common.ObjToString((*clueData)["batch_import"])
|