|
@@ -318,7 +318,7 @@ func CompanyRemind15Day(seller *models.Sellers) {
|
|
|
var isSend bool
|
|
|
msgContent := ``
|
|
|
emailContents := "<div><p>您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于15天后到期,请注意查看</p>"
|
|
|
- emailContents += "<table border='1'><tr><td width='200'>30天后到期客户名称</td><td width='200'>到期日期</td><td width='200'>销售人员</td><td>客户类型</td></tr>"
|
|
|
+ emailContents += "<table border='1'><tr><td width='200'>15天后到期客户名称</td><td width='200'>到期日期</td><td width='200'>销售人员</td><td>客户类型</td></tr>"
|
|
|
for _, v := range companyItems {
|
|
|
emailContents += `<tr><td>` + v.CompanyName + `</td><td>` + v.EndDate + `</td><td>` + seller.RealName + `</td><td>` + v.Status + `</td></tr>`
|
|
|
msgContent += `客户:` + v.CompanyName + ";状态:" + v.Status + "\n"
|
|
@@ -328,12 +328,12 @@ func CompanyRemind15Day(seller *models.Sellers) {
|
|
|
|
|
|
if isSend {
|
|
|
if seller.Email != "" {
|
|
|
- utils.SendEmailByHongze("到期前30天提醒", emailContents, seller.Email, "", "")
|
|
|
+ utils.SendEmailByHongze("到期前15天提醒", emailContents, seller.Email, "", "")
|
|
|
}
|
|
|
|
|
|
if seller.OpenId != "" {
|
|
|
- first := "您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于30天后到期,请注意查看"
|
|
|
- keyword1 := "到期前30天提醒"
|
|
|
+ first := "您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于15天后到期,请注意查看"
|
|
|
+ keyword1 := "到期前15天提醒"
|
|
|
keyword2 := remindEndDate
|
|
|
remark := msgContent
|
|
|
|
|
@@ -362,7 +362,7 @@ func CompanyRemind7Day(seller *models.Sellers) {
|
|
|
var isSend bool
|
|
|
msgContent := ``
|
|
|
emailContents := "<div><p>您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于7天后到期,请注意查看</p>"
|
|
|
- emailContents += "<table border='1'><tr><td width='200'>30天后到期客户名称</td><td width='200'>到期日期</td><td width='200'>销售人员</td><td>客户类型</td></tr>"
|
|
|
+ emailContents += "<table border='1'><tr><td width='200'>7天后到期客户名称</td><td width='200'>到期日期</td><td width='200'>销售人员</td><td>客户类型</td></tr>"
|
|
|
for _, v := range companyItems {
|
|
|
emailContents += `<tr><td>` + v.CompanyName + `</td><td>` + v.EndDate + `</td><td>` + seller.RealName + `</td><td>` + v.Status + `</td></tr>`
|
|
|
msgContent += `客户:` + v.CompanyName + ";状态:" + v.Status + "\n"
|
|
@@ -372,12 +372,12 @@ func CompanyRemind7Day(seller *models.Sellers) {
|
|
|
|
|
|
if isSend {
|
|
|
if seller.Email != "" {
|
|
|
- utils.SendEmailByHongze("到期前30天提醒", emailContents, seller.Email, "", "")
|
|
|
+ utils.SendEmailByHongze("到期前7天提醒", emailContents, seller.Email, "", "")
|
|
|
}
|
|
|
|
|
|
if seller.OpenId != "" {
|
|
|
- first := "您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于30天后到期,请注意查看"
|
|
|
- keyword1 := "到期前30天提醒"
|
|
|
+ first := "您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于7天后到期,请注意查看"
|
|
|
+ keyword1 := "到期前7天提醒"
|
|
|
keyword2 := remindEndDate
|
|
|
remark := msgContent
|
|
|
|
|
@@ -406,7 +406,7 @@ func CompanyRemind1Day(seller *models.Sellers) {
|
|
|
var isSend bool
|
|
|
msgContent := ``
|
|
|
emailContents := "<div><p>您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于今天后到期,请注意查看</p>"
|
|
|
- emailContents += "<table border='1'><tr><td width='200'>30天后到期客户名称</td><td width='200'>到期日期</td><td width='200'>销售人员</td><td>客户类型</td></tr>"
|
|
|
+ emailContents += "<table border='1'><tr><td width='200'>1天后到期客户名称</td><td width='200'>到期日期</td><td width='200'>销售人员</td><td>客户类型</td></tr>"
|
|
|
for _, v := range companyItems {
|
|
|
emailContents += `<tr><td>` + v.CompanyName + `</td><td>` + v.EndDate + `</td><td>` + seller.RealName + `</td><td>` + v.Status + `</td></tr>`
|
|
|
msgContent += `客户:` + v.CompanyName + ";状态:" + v.Status + "\n"
|
|
@@ -416,12 +416,12 @@ func CompanyRemind1Day(seller *models.Sellers) {
|
|
|
|
|
|
if isSend {
|
|
|
if seller.Email != "" {
|
|
|
- utils.SendEmailByHongze("到期前30天提醒", emailContents, seller.Email, "", "")
|
|
|
+ utils.SendEmailByHongze("到期前1天提醒", emailContents, seller.Email, "", "")
|
|
|
}
|
|
|
|
|
|
if seller.OpenId != "" {
|
|
|
- first := "您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于30天后到期,请注意查看"
|
|
|
- keyword1 := "到期前30天提醒"
|
|
|
+ first := "您有【" + strconv.Itoa(len(companyItems)) + "】 客户将于1天后到期,请注意查看"
|
|
|
+ keyword1 := "到期前1天提醒"
|
|
|
keyword2 := remindEndDate
|
|
|
remark := msgContent
|
|
|
|