xuzhiheng 2 rokov pred
rodič
commit
8468ab1866
1 zmenil súbory, kde vykonal 11 pridanie a 0 odobranie
  1. 11 0
      service/clue.go

+ 11 - 0
service/clue.go

@@ -197,6 +197,17 @@ func DistributeClueMore(saleMap map[string]map[string]interface{}, distributedAr
 								"BCPCID":       common.GetRandom(32),
 								"operator_id":  thispositionId,
 							})
+							JyBiTidb.Insert("dwd_f_crm_clue_change_record", map[string]interface{}{
+								"clue_id":      v,
+								"position_id":  positionId,
+								"change_field": "trailstatus",
+								"change_type":  "基本信息变更",
+								"old_value":    CodeTrail[trailstatus],
+								"new_value":    "商机线索",
+								"createtime":   nowTime,
+								"BCPCID":       common.GetRandom(32),
+								"operator_id":  thispositionId,
+							})
 						}
 					} else {
 						log.Println("私海插入失败 ", v, positionId, seatNumber)