...
|
...
|
@@ -457,17 +457,23 @@ func (srv TaskService) MarkTaskAnomaly(param *command.MarkTaskAnomalyCommand) (m |
|
|
defer func() {
|
|
|
_ = transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
// taskAnomalyRepo := factory.CreateTaskAnomalyRepository(map[string]interface{}{
|
|
|
// "transactionContext": transactionContext,
|
|
|
// })
|
|
|
//MarkType= "a" 或者 MarkType= "b"
|
|
|
taskAnomalyRepo := factory.CreateTaskAnomalyRepository(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
_, anomalyList, err := taskAnomalyRepo.Find(map[string]interface{}{"id": param.Id, "limit": 1})
|
|
|
if err != nil {
|
|
|
|
|
|
}
|
|
|
_ = anomalyList
|
|
|
//MarkType= "a" 去更新,对应里程碑异常
|
|
|
//检查最新的异常记录,进行标记
|
|
|
//检查是否有任务相关连的每日评估
|
|
|
if param.MarkType == "a" || param.MarkType == "b" {
|
|
|
if param.MarkType == "a" {
|
|
|
|
|
|
}
|
|
|
|
|
|
//MarkTYpe="c" 或者 MarkType = "d"
|
|
|
// 或者 MarkType= "b" 去反馈,对应反馈异常
|
|
|
//MarkTYpe="c" //
|
|
|
//MarkType = "d"
|
|
|
//检查最新的异常记录,进行标记
|
|
|
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
...
|
...
|
|