作者 tangxvhui

日常保存

... ... @@ -67,12 +67,16 @@ func checkTaskRecordV2(param *domain.TaskRecord) error {
// 检查里程碑异常
if param.IsTaskStageAnomaly() {
taskData.WarnFlag = domain.TaskWarn
anomalyDataTmp.Category = 1
anomalyList = append(anomalyList, anomalyDataTmp)
} else {
taskData.WarnFlag = domain.TaskWarnNull
}
// 检查辅导异常
if param.IsAssistAnomaly() {
taskData.AssistFlag += 1
anomalyDataTmp.Category = 3
anomalyList = append(anomalyList, anomalyDataTmp)
} else {
taskData.AssistFlag = 0
}
... ...