...
|
...
|
@@ -304,6 +304,25 @@ func anomalyIsAssistFlag(transactionContext application.TransactionContext, task |
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
|
|
|
//检查任务负责人是否有上级
|
|
|
|
|
|
_, userList, _ := userRepo.Find(map[string]interface{}{
|
|
|
"id": taskData.Leader.Id,
|
|
|
"limit": 1,
|
|
|
})
|
|
|
if len(userList) == 0 {
|
|
|
return nil
|
|
|
}
|
|
|
if userList[0].ParentId > 0 {
|
|
|
_, leaderList, _ := userRepo.Find(map[string]interface{}{
|
|
|
"id": userList[0].ParentId,
|
|
|
"limit": 1,
|
|
|
})
|
|
|
if len(leaderList) == 0 {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_, oldAnomaly, err := taskAnomalyRepo.Find(map[string]interface{}{
|
|
|
"isLast": 1,
|
|
|
"category": domain.AnomalyCategoryType3,
|
...
|
...
|
|