...
|
...
|
@@ -95,7 +95,7 @@ func isNotWarnFlag(transactionContext application.TransactionContext, taskData * |
|
|
})
|
|
|
_, oldAnomaly, err := taskAnomalyRepo.Find(map[string]interface{}{
|
|
|
"isLast": 1,
|
|
|
"category": 1,
|
|
|
"category": domain.AnomalyCategoryType1,
|
|
|
"limit": 1,
|
|
|
"taskId": taskData.Id,
|
|
|
"taskStageCheck": fmt.Sprintf(`{"id":"%d"}`, taskRecord.TaskStageCheck.Id),
|
...
|
...
|
@@ -126,7 +126,7 @@ func isWarnFlag(transactionContext application.TransactionContext, taskData *dom |
|
|
|
|
|
_, oldAnomaly, err := taskAnomalyRepo.Find(map[string]interface{}{
|
|
|
"isLast": 1,
|
|
|
"category": 1,
|
|
|
"category": domain.AnomalyCategoryType1,
|
|
|
"limit": 1,
|
|
|
"taskId": taskData.Id,
|
|
|
"taskStageCheck": fmt.Sprintf(`{"id":"%d"}`, taskRecord.TaskStageCheck.Id),
|
...
|
...
|
@@ -142,7 +142,7 @@ func isWarnFlag(transactionContext application.TransactionContext, taskData *dom |
|
|
CompanyId: taskData.CompanyId,
|
|
|
TaskId: taskData.Id,
|
|
|
TaskRecordId: taskRecord.Id,
|
|
|
Category: 1,
|
|
|
Category: domain.AnomalyCategoryType1,
|
|
|
CurrentStage: taskData.CurrentStage,
|
|
|
LastStage: taskData.LastStage,
|
|
|
TaskStageCheck: taskRecord.TaskStageCheck,
|
...
|
...
|
@@ -153,7 +153,7 @@ func isWarnFlag(transactionContext application.TransactionContext, taskData *dom |
|
|
RecordBegin: taskRecord.CreatedAt.Unix(),
|
|
|
NoticeWho: []map[string]string{},
|
|
|
Marks: map[string]string{
|
|
|
"a": "", "b": "", "c": "", "d": "",
|
|
|
"a": "去更新", "b": "去反馈", "c": "找上级", "d": "去辅导",
|
|
|
},
|
|
|
}
|
|
|
if len(oldAnomaly) > 0 {
|
...
|
...
|
@@ -203,7 +203,7 @@ func isNotAssistFlag(transactionContext application.TransactionContext, taskData |
|
|
|
|
|
_, oldAnomaly, err := taskAnomalyRepo.Find(map[string]interface{}{
|
|
|
"isLast": 1,
|
|
|
"category": 3,
|
|
|
"category": domain.AnomalyCategoryType3,
|
|
|
"limit": 1,
|
|
|
"taskId": taskData.Id,
|
|
|
})
|
...
|
...
|
@@ -233,7 +233,7 @@ func isAssistFlag(transactionContext application.TransactionContext, taskData *d |
|
|
|
|
|
_, oldAnomaly, err := taskAnomalyRepo.Find(map[string]interface{}{
|
|
|
"isLast": 1,
|
|
|
"category": 3,
|
|
|
"category": domain.AnomalyCategoryType3,
|
|
|
"limit": 1,
|
|
|
"taskId": taskData.Id,
|
|
|
})
|
...
|
...
|
@@ -247,7 +247,7 @@ func isAssistFlag(transactionContext application.TransactionContext, taskData *d |
|
|
UpdatedAt: time.Now(),
|
|
|
CompanyId: taskData.CompanyId,
|
|
|
TaskId: taskData.Id,
|
|
|
Category: 3,
|
|
|
Category: domain.AnomalyCategoryType3,
|
|
|
CurrentStage: taskData.CurrentStage,
|
|
|
LastStage: taskData.LastStage,
|
|
|
TaskStageCheck: taskRecord.TaskStageCheck,
|
...
|
...
|
@@ -258,7 +258,7 @@ func isAssistFlag(transactionContext application.TransactionContext, taskData *d |
|
|
RecordBegin: taskRecord.CreatedAt.Unix(),
|
|
|
NoticeWho: []map[string]string{},
|
|
|
Marks: map[string]string{
|
|
|
"a": "", "b": "", "c": "", "d": "",
|
|
|
"a": "去更新", "b": "去反馈", "c": "找上级", "d": "去辅导",
|
|
|
},
|
|
|
}
|
|
|
|
...
|
...
|
@@ -319,7 +319,7 @@ func isNotAssessFlag(transactionContext application.TransactionContext, taskData |
|
|
|
|
|
_, oldAnomaly, err := taskAnomalyRepo.Find(map[string]interface{}{
|
|
|
"isLast": 1,
|
|
|
"category": 2,
|
|
|
"category": domain.AnomalyCategoryType2,
|
|
|
"limit": 1,
|
|
|
"taskId": taskData.Id,
|
|
|
})
|
...
|
...
|
@@ -347,7 +347,7 @@ func isAssessFlag(transactionContext application.TransactionContext, taskData *d |
|
|
})
|
|
|
_, oldAnomaly, err := taskAnomalyRepo.Find(map[string]interface{}{
|
|
|
"isLast": 1,
|
|
|
"category": 2,
|
|
|
"category": domain.AnomalyCategoryType2,
|
|
|
"limit": 1,
|
|
|
"taskId": taskData.Id,
|
|
|
})
|
...
|
...
|
@@ -361,7 +361,7 @@ func isAssessFlag(transactionContext application.TransactionContext, taskData *d |
|
|
UpdatedAt: time.Now(),
|
|
|
CompanyId: taskData.CompanyId,
|
|
|
TaskId: taskData.Id,
|
|
|
Category: 2,
|
|
|
Category: domain.AnomalyCategoryType2,
|
|
|
CurrentStage: taskData.CurrentStage,
|
|
|
LastStage: taskData.LastStage,
|
|
|
TaskStageCheck: taskRecord.TaskStageCheck,
|
...
|
...
|
@@ -372,7 +372,7 @@ func isAssessFlag(transactionContext application.TransactionContext, taskData *d |
|
|
RecordBegin: taskRecord.CreatedAt.Unix(),
|
|
|
NoticeWho: []map[string]string{},
|
|
|
Marks: map[string]string{
|
|
|
"a": "", "b": "", "c": "", "d": "",
|
|
|
"a": "去更新", "b": "去反馈", "c": "找上级", "d": "去辅导",
|
|
|
},
|
|
|
}
|
|
|
if len(oldAnomaly) > 0 {
|
...
|
...
|
|