|
@@ -293,6 +293,28 @@ func OrderCreateFail(posid int64, bname string) {
|
|
sendInfo(toMail, toCc, title, content)
|
|
sendInfo(toMail, toCc, title, content)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// @Author jianghan
|
|
|
|
+// @Description 非集团公司线索分配失败
|
|
|
|
+// @Date 2024/5/11
|
|
|
|
+func AssFail(posid int64, ent, iname string) {
|
|
|
|
+ title := "您跟进的非集团公司线上线索分配失败"
|
|
|
|
+ content := "您的私海线索已达到私海线索上限**条(不包含成交客户),导致您正在跟进的非集团公司“%s”产生的新线索“%s”无法进入您的私海,请及时将无需跟进的线索退回公海,退回后联系您的电销经理将此线索再划转至您的私海。"
|
|
|
|
+
|
|
|
|
+ toMail := ""
|
|
|
|
+ toCc := ""
|
|
|
|
+ content = fmt.Sprintf(content, LimitSize, ent, iname)
|
|
|
|
+ info := Mysql.SelectBySql(selfMail, posid)
|
|
|
|
+ if info != nil && len(*info) > 0 {
|
|
|
|
+ toMail = common.ObjToString((*info)[0]["mail"])
|
|
|
|
+ }
|
|
|
|
+ if toMail == "" {
|
|
|
|
+ log.Println("未查询到邮箱地址, position id: ", posid)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ toCc = getCc(posid)
|
|
|
|
+ sendInfo(toMail, toCc, title, content)
|
|
|
|
+}
|
|
|
|
+
|
|
// @Author jianghan
|
|
// @Author jianghan
|
|
// @Description 发邮件
|
|
// @Description 发邮件
|
|
// @Date 2024/5/8
|
|
// @Date 2024/5/8
|