|
@@ -32,7 +32,7 @@ var (
|
|
|
func WarningPerl() {
|
|
|
sql := `SELECT count(*) FROM dwd_f_crm_clue_info where position_id = ? and trailstatus <> '08'`
|
|
|
sql1 := `UPDATE dwd_f_crm_personnel_management SET send_mail = (%s) where position_id = ?`
|
|
|
- pp := TiDb.SelectBySql(`SELECT name, position_id, send_mail & 1 AS flag_1, (send_mail >> 1) & 1 AS flag_2 FROM dwd_f_crm_personnel_management WHERE assign_type >= 1`)
|
|
|
+ pp := TiDb.SelectBySql(`SELECT name, position_id, send_mail & 1 AS flag_1, (send_mail >> 1) & 1 AS flag_2 FROM dwd_f_crm_personnel_management WHERE resign = 0`)
|
|
|
if pp != nil && len(*pp) > 0 {
|
|
|
for _, m := range *pp {
|
|
|
sendFlag1 := common.IntAll(m["flag_1"]) //预警邮件发送
|
|
@@ -364,7 +364,8 @@ func getCc(posid int64) (to string) {
|
|
|
if m != nil && len(*m) > 0 {
|
|
|
to = getMailAds(common.ObjToString((*m)[0]["mail"]), common.ObjToString((*m)[0]["name"]))
|
|
|
}
|
|
|
- } else {
|
|
|
+ to = getMailAds("shenbingyi@topnet.net.cn", "沈炳毅")
|
|
|
+ } else if common.IntAll((*info)[0]["role_id"]) == 3 {
|
|
|
to = getMailAds("shenbingyi@topnet.net.cn", "沈炳毅")
|
|
|
}
|
|
|
}
|