作者 tangxvhui

调整异常检查规则

... ... @@ -316,6 +316,7 @@ func anomalyIsAssistFlag(transactionContext application.TransactionContext, task
// 辅导异常通知该条任务负责人的上级,通知任务负责人的上上级
if len(oldAnomaly) > 0 {
taskAnomalyData.RecordBegin = oldAnomaly[0].RecordBegin
taskAnomalyData.AssistFlag += oldAnomaly[0].AssistFlag
oldAnomaly[0].IsLast = 2
err = taskAnomalyRepo.Save(oldAnomaly[0])
if err != nil {
... ...
... ... @@ -129,7 +129,7 @@ func (t *TaskAnomaly) IsAssessFlag(taskData *Task, taskRecordData *TaskRecord) b
CurrentStage: taskData.CurrentStage,
LastStage: taskData.LastStage,
TaskStageCheck: taskRecordData.TaskStageCheck,
AssessFlag: taskData.AssistFlag,
AssessFlag: taskData.Anomaly,
WarnFlag: 0,
AssistFlag: 0,
IsLast: 1,
... ... @@ -196,7 +196,7 @@ func (t *TaskAnomaly) IsAssistFlag(taskData *Task, taskRecordData *TaskRecord) b
TaskStageCheck: taskRecordData.TaskStageCheck,
AssessFlag: taskData.Anomaly,
WarnFlag: 0,
AssistFlag: taskData.AssistFlag,
AssistFlag: 1,
IsLast: 1,
RecordBegin: xtime.DayZeroTime(taskRecordData.CreatedAt).Unix(),
NoticeWho: []map[string]string{},
... ...