|
@@ -21,8 +21,9 @@ import (
|
|
|
|
|
|
// user 信息
|
|
// user 信息
|
|
type UserTask struct {
|
|
type UserTask struct {
|
|
- MgoUserId string //用户id
|
|
|
|
- PositionId int64
|
|
|
|
|
|
+ MgoUserId string //用户id
|
|
|
|
+ PositionId int64 //职位id
|
|
|
|
+ Phone string //手机号
|
|
StartTime int64 //开始时间
|
|
StartTime int64 //开始时间
|
|
EndTime int64 //结束时间
|
|
EndTime int64 //结束时间
|
|
IsEnd bool //是否结束
|
|
IsEnd bool //是否结束
|
|
@@ -1208,7 +1209,7 @@ func (ut *UserTask) ResultSave() {
|
|
func (ut *UserTask) SendMsg() {
|
|
func (ut *UserTask) SendMsg() {
|
|
//分析报告离线分析异常
|
|
//分析报告离线分析异常
|
|
if ut.IsFalse {
|
|
if ut.IsFalse {
|
|
- content := fmt.Sprintf(g.Cfg("task.yaml").MustGet(model.Ctx, "falseMsg").String(), ut.RId, ut.MgoUserId, ut.PositionId, ut.AnalysisParam.KeysItemsStr, ut.AnalysisParam.Area, ut.AnalysisParam.Industry, ut.AnalysisParam.BuyerClass, ut.MatchingMode)
|
|
|
|
|
|
+ content := fmt.Sprintf(g.Cfg("task.yaml").MustGet(model.Ctx, "falseMsg").String(), ut.RId, ut.MgoUserId, ut.PositionId, ut.Phone, ut.AnalysisParam.KeysItemsStr, ut.AnalysisParam.Area, ut.AnalysisParam.Industry, ut.AnalysisParam.BuyerClass, ut.MatchingMode)
|
|
SendAlarmMail(model.Ctx, content)
|
|
SendAlarmMail(model.Ctx, content)
|
|
} else {
|
|
} else {
|
|
SendReportMsg(model.Ctx, ut.MgoUserId, ut.PositionId, ut.RId)
|
|
SendReportMsg(model.Ctx, ut.MgoUserId, ut.PositionId, ut.RId)
|