|
@@ -46,8 +46,8 @@ type CustomService struct {
|
|
Remarks string //备注
|
|
Remarks string //备注
|
|
CreateName string //创建人
|
|
CreateName string //创建人
|
|
Source string
|
|
Source string
|
|
- OwnerId int64 //潜客收录id(人脉)
|
|
|
|
- BusinessId int64 //商机收录id(人脉)
|
|
|
|
|
|
+ OwnerId string //潜客收录id(人脉)
|
|
|
|
+ BusinessId string //商机收录id(人脉)
|
|
}
|
|
}
|
|
|
|
|
|
// Add 创建客户
|
|
// Add 创建客户
|
|
@@ -229,7 +229,7 @@ func EmployUpdate(tx *sql.Tx, employ_info_id, employ_custom_id, positionId int64
|
|
return employ_info_id, employ_custom_id
|
|
return employ_info_id, employ_custom_id
|
|
}
|
|
}
|
|
|
|
|
|
-func SaveCustom(ctx context.Context, argsCustom, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id, ownerId, connectionBusinessId, positionId int64, createPerson string, transferArr []int64, entId, entUserId, entDeptId int64) (int64, int64) {
|
|
|
|
|
|
+func SaveCustom(ctx context.Context, argsCustom, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id int64, ownerId, connectionBusinessId string, positionId int64, createPerson string, transferArr []int64, entId, entUserId, entDeptId int64) (int64, int64) {
|
|
customId := int64(-1)
|
|
customId := int64(-1)
|
|
taskId := int64(-1)
|
|
taskId := int64(-1)
|
|
//存库
|
|
//存库
|
|
@@ -250,7 +250,7 @@ func SaveCustom(ctx context.Context, argsCustom, argsTask, argsTaskTeam []interf
|
|
//插入台账
|
|
//插入台账
|
|
ok2 := SaveLedger(ctx, positionId, customId, taskId, "创建客户", fmt.Sprintf("%s创建了客户", createPerson), createPerson)
|
|
ok2 := SaveLedger(ctx, positionId, customId, taskId, "创建客户", fmt.Sprintf("%s创建了客户", createPerson), createPerson)
|
|
//人脉信息添加
|
|
//人脉信息添加
|
|
- if ownerId != 0 || connectionBusinessId != 0 {
|
|
|
|
|
|
+ if ownerId != "" || connectionBusinessId != "" {
|
|
SaveConnection(tx, positionId, connectionBusinessId, ownerId, entId, entDeptId, entUserId)
|
|
SaveConnection(tx, positionId, connectionBusinessId, ownerId, entId, entDeptId, entUserId)
|
|
}
|
|
}
|
|
if customId > 0 && taskId > 0 && ok2 {
|
|
if customId > 0 && taskId > 0 && ok2 {
|
|
@@ -329,11 +329,11 @@ func GetOtherKey(key string) []string {
|
|
}
|
|
}
|
|
return parameters[key]
|
|
return parameters[key]
|
|
}
|
|
}
|
|
-func SaveConnection(tx *sql.Tx, positionId, businessId, ownerId, entId, entDeptId, entUserId int64) bool {
|
|
|
|
- if businessId != 0 || ownerId != 0 {
|
|
|
|
|
|
+func SaveConnection(tx *sql.Tx, positionId int64, businessId, ownerId string, entId, entDeptId, entUserId int64) bool {
|
|
|
|
+ if businessId != "" || ownerId != "" {
|
|
table := entity.CONNECTION_STATUS
|
|
table := entity.CONNECTION_STATUS
|
|
sourceType := 2
|
|
sourceType := 2
|
|
- if businessId == 0 {
|
|
|
|
|
|
+ if businessId == "" {
|
|
businessId = ownerId
|
|
businessId = ownerId
|
|
sourceType = 1
|
|
sourceType = 1
|
|
}
|
|
}
|