|
@@ -1094,7 +1094,7 @@ func ExitKcSaleSend(positionId int64, infoList []map[string]interface{}) {
|
|
|
Pwd: db.Mail.Pwd,
|
|
|
}
|
|
|
//正文拼接
|
|
|
- startStr := `<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport"content="width=device-width, initial-scale=1.0"><style>table{width:100%;border-collapse:collapse}th,td{border:1px solid#000;padding:8px;text-align:left}th{background-color:#f2f2f2}</style></head><body><p>以下客户已从或即将从客成系统退出,并移交销售跟进,请收悉,客户明细如下:</p><table><thead><tr><th>序号</th><th>线索名称</th><th>联系人</th><th>姓名</th><th>移交状态</th><th>移交销售原因</th></tr></thead><tbody>`
|
|
|
+ startStr := `<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport"content="width=device-width, initial-scale=1.0"><style>table{width:100%;border-collapse:collapse}th,td{border:1px solid#000;padding:8px;text-align:left}th{background-color:#f2f2f2}</style></head><body><table><thead><tr><th>序号</th><th>线索名称</th><th>联系人</th><th>姓名</th><th>移交状态</th><th>移交销售原因</th></tr></thead><tbody>`
|
|
|
for i, v := range infoList {
|
|
|
startStr += fmt.Sprintf(`<tr><td>%d</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>`, i+1, gconv.String(v["cluename"]), gconv.String(v["phone"]), gconv.String(v["userName"]), gconv.String(v["remrk"]), gconv.String(v["reason"]))
|
|
|
}
|
|
@@ -1171,6 +1171,7 @@ func CustomerChange() {
|
|
|
if (oldPerson == "" || oldPerson == "/") && newPerson != "" && newPerson != "/" && positionId > 0 {
|
|
|
//之前没有可成人员
|
|
|
saleNobodyCustomMapMap[positionId] = append(saleNobodyCustomMapMap[positionId], data)
|
|
|
+
|
|
|
} else if newPerson != "" && newPerson != "/" && oldPerson != "" && oldPerson != "/" && positionId > 0 {
|
|
|
//之前有客成
|
|
|
saleMap[positionId] = append(saleMap[positionId], data)
|
|
@@ -1188,7 +1189,7 @@ func CustomerChange() {
|
|
|
ChangeSendKc(customMap1, 1)
|
|
|
}
|
|
|
if len(customMap2) > 0 {
|
|
|
- ChangeSendKc(customMap1, 2)
|
|
|
+ ChangeSendKc(customMap2, 2)
|
|
|
}
|
|
|
if len(saleMap) > 0 {
|
|
|
ChangeSendSale(saleMap, 2)
|