|
@@ -1369,6 +1369,8 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
//无意向几天以内不参与分配
|
|
|
} else if trailstatus == "09" && (topname != "付费产品落地页主动留资" || topname != "受理系统") {
|
|
|
//线索状态为“拒绝沟通客户”,则仅针对线索来源一级分类为“付费产品落地页主动留资”和“受理系统”产生的线索进行线索分配,其他类线上线索只做线索更新但不再自动分配。
|
|
|
+ positionId = 0
|
|
|
+ seatNumber = ""
|
|
|
} else {
|
|
|
clueUpdateData["seatNumber"] = seatNumber
|
|
|
clueUpdateData["position_id"] = positionId
|
|
@@ -1712,7 +1714,16 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
})
|
|
|
}
|
|
|
if old_role != role && role != "" {
|
|
|
- updateId9 = TiDb.InsertByTx(tx, "dwd_f_crm_clue_change_record", map[string]interface{}{"clue_id": clueId, "position_id": common.If(trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400, -1, common.If(trailstatus == "00" || is_assign == 0, positionId, common.Int64All(data["position_id"]))), "change_field": "role", "change_type": "基本信息变更", "old_value": common.If(old_role != "", old_role, "/"), "new_value": common.If(role != "", role, "/"), "createtime": nowTime, "BCPCID": BCPCID, "operator_id": -1})
|
|
|
+ updateId9 = TiDb.InsertByTx(tx, "dwd_f_crm_clue_change_record", map[string]interface{}{
|
|
|
+ "clue_id": clueId,
|
|
|
+ "position_id": common.If(trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400, -1, common.If(trailstatus == "00" || is_assign == 0, positionId, common.Int64All(data["position_id"]))),
|
|
|
+ "change_field": "role",
|
|
|
+ "change_type": "基本信息变更",
|
|
|
+ "old_value": common.If(old_role != "", old_role, "/"),
|
|
|
+ "new_value": common.If(role != "", role, "/"),
|
|
|
+ "createtime": nowTime,
|
|
|
+ "BCPCID": BCPCID,
|
|
|
+ "operator_id": -1})
|
|
|
}
|
|
|
if old_follow_project_area != follow_project_area && follow_project_area != "" {
|
|
|
old_area, old_area_arr := "", []string{}
|