...
|
...
|
@@ -447,8 +447,31 @@ func (srv TaskService) UserSelect(param *command.UserSelectCommand) []adapter.Us |
|
|
|
|
|
// 对异常记录的操作标记
|
|
|
func (srv TaskService) MarkTaskAnomaly(param *command.MarkTaskAnomalyCommand) (map[string]string, error) {
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return map[string]string{}, nil
|
|
|
}
|
|
|
if err := transactionContext.StartTransaction(); err != nil {
|
|
|
return map[string]string{}, nil
|
|
|
}
|
|
|
defer func() {
|
|
|
_ = transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
// taskAnomalyRepo := factory.CreateTaskAnomalyRepository(map[string]interface{}{
|
|
|
// "transactionContext": transactionContext,
|
|
|
// })
|
|
|
//MarkType= "a" 或者 MarkType= "b"
|
|
|
//检查最新的异常记录,进行标记
|
|
|
// 检查是否有任务相关连的每日评估
|
|
|
//检查是否有任务相关连的每日评估
|
|
|
if param.MarkType == "a" || param.MarkType == "b" {
|
|
|
|
|
|
}
|
|
|
|
|
|
//MarkTYpe="c" 或者 MarkType = "d"
|
|
|
//检查最新的异常记录,进行标记
|
|
|
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return map[string]string{}, nil
|
|
|
}
|
|
|
return nil, nil
|
|
|
} |
...
|
...
|
|