WH01243 1 vuosi sitten
vanhempi
commit
80e598d90a
1 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. 11 1
      clueSync/autoTask.go

+ 11 - 1
clueSync/autoTask.go

@@ -446,7 +446,7 @@ func Thaw() {
 				}) {
 					TiDb.Insert("dwd_f_crm_clue_change_record", map[string]interface{}{
 						"clue_id":      clueId,
-						"position_id":  positionId,
+						"position_id":  0,
 						"change_field": "position_id",
 						"change_type":  "所属人变更",
 						"old_value":    nameMap[positionId],
@@ -456,6 +456,16 @@ func Thaw() {
 						"operator_id":  -1,
 					})
 				}
+				TiDb.Insert("dwd_f_crm_clue_change_record", map[string]interface{}{
+					"clue_id":      clueId,
+					"position_id":  0,
+					"change_field": "position_id",
+					"change_type":  "线索解冻",
+					"new_value":    "自动退回公海",
+					"createtime":   nowTime,
+					"BCPCID":       common.GetRandom(32),
+					"operator_id":  -1,
+				})
 			}
 
 		}