|
@@ -152,7 +152,7 @@ func WillWarningByDm(dname, to string, toCc []string) {
|
|
|
content := "“%s”的所有参与线索分配的电销人员,私海线索都已达到%d条(不包含成交客户),即将达到私海线索上限%d条(不包含成交客户),请及时通知电销人员将无需跟进的线索退回公海,以避免无法接收新线索。"
|
|
|
title = fmt.Sprintf(title, dname)
|
|
|
content = fmt.Sprintf(content, dname, cfg.WarningValue, cfg.AllocationCap)
|
|
|
- sendInfo(to, strings.Join(toCc, ","), title, content)
|
|
|
+ sendInfo(to, strings.Join(toCc, ";"), title, content)
|
|
|
}
|
|
|
|
|
|
// @Author jianghan
|
|
@@ -168,7 +168,7 @@ func WillWarningByAll() {
|
|
|
}
|
|
|
}
|
|
|
content = fmt.Sprintf(content, cfg.WarningValue)
|
|
|
- sendInfo(strings.Join(to, ","), "", title, content)
|
|
|
+ sendInfo(strings.Join(to, ";"), "", title, content)
|
|
|
}
|
|
|
|
|
|
// @Author jianghan
|
|
@@ -201,7 +201,7 @@ func ExceedLimitByDm(dname, to string, toCc []string) {
|
|
|
content := "“%s”的所有参与线索分配的电销人员,私海线索都已达到私海线索上限%d条(不包含成交客户),当前无法接收新线索,请及时通知电销人员将无需跟进的线索退回公海"
|
|
|
title = fmt.Sprintf(title, dname)
|
|
|
content = fmt.Sprintf(content, dname, cfg.AllocationCap)
|
|
|
- sendInfo(to, strings.Join(toCc, ","), title, content)
|
|
|
+ sendInfo(to, strings.Join(toCc, ";"), title, content)
|
|
|
}
|
|
|
|
|
|
// @Author jianghan
|
|
@@ -229,7 +229,7 @@ func AutoReleaseNots() {
|
|
|
}
|
|
|
}
|
|
|
toCc = append(toCc, getMailAds("shenbingyi@topnet.net.cn", "沈炳毅"))
|
|
|
- sendInfo(strings.Join(to, ","), strings.Join(toCc, ","), title, fmt.Sprintf(content, cfg.AllocationCap))
|
|
|
+ sendInfo(strings.Join(to, ","), strings.Join(toCc, ";"), title, fmt.Sprintf(content, cfg.AllocationCap))
|
|
|
}
|
|
|
|
|
|
// @Author jianghan
|
|
@@ -257,7 +257,7 @@ func CantBeAssignedNots() {
|
|
|
}
|
|
|
}
|
|
|
toCc = append(toCc, getMailAds("shenbingyi@topnet.net.cn", "沈炳毅"))
|
|
|
- sendInfo(strings.Join(to, ","), strings.Join(toCc, ","), title, fmt.Sprintf(content, cfg.AllocationCap))
|
|
|
+ sendInfo(strings.Join(to, ","), strings.Join(toCc, ";"), title, fmt.Sprintf(content, cfg.AllocationCap))
|
|
|
}
|
|
|
|
|
|
// @Author jianghan
|
|
@@ -269,6 +269,15 @@ func HandOverFail(posid int64) {
|
|
|
|
|
|
toMail := ""
|
|
|
toCc := ""
|
|
|
+ info := TiDb.SelectBySql(selfMail, posid)
|
|
|
+ if info != nil && len(*info) > 0 {
|
|
|
+ toMail = getMailAds(common.ObjToString((*info)[0]["mail"]), common.ObjToString((*info)[0]["name"]))
|
|
|
+ }
|
|
|
+ if toMail == "" {
|
|
|
+ log.Println("未查询到邮箱地址, position id: ", posid)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ toCc = getCc(posid)
|
|
|
sendInfo(toMail, toCc, title, content)
|
|
|
}
|
|
|
|