|
@@ -1039,7 +1039,7 @@ func WorkUpdateClue(data map[string]interface{}, saleData []map[string]interface
|
|
|
if is_transfer != 1 {
|
|
|
updateId5 = TiDb.InsertByTx(tx, "dwd_f_crm_clue_change_record", map[string]interface{}{
|
|
|
"clue_id": clueId,
|
|
|
- "position_id": common.If(trailstatus == "00" || is_assign == 0, positionId, common.If(is_assign == 1, positionId, common.Int64All(data["position_id"]))),
|
|
|
+ "position_id": common.If(trailstatus == "00" || is_assign == 0 || is_assign == -1, positionId, common.If(is_assign == 1, positionId, common.Int64All(data["position_id"]))),
|
|
|
"change_type": "加入任务车",
|
|
|
"new_value": "线索来源自动更新" + "-" + topname + "-" + subname,
|
|
|
"createtime": nowTime,
|
|
@@ -1592,7 +1592,7 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
if is_transfer != 1 {
|
|
|
updateId5 = TiDb.InsertByTx(tx, "dwd_f_crm_clue_change_record", map[string]interface{}{
|
|
|
"clue_id": clueId,
|
|
|
- "position_id": common.If(trailstatus == "00" || is_assign == 0, positionId, common.Int64All(data["position_id"])),
|
|
|
+ "position_id": common.If(trailstatus == "00" || is_assign == 0 || is_assign == -1, positionId, common.Int64All(data["position_id"])),
|
|
|
"change_type": "加入任务车",
|
|
|
"new_value": "线索来源自动更新" + "-" + topname + "-" + subname,
|
|
|
"createtime": nowTime,
|