Merge branch 'dev-tangxvhui' into test
正在显示
3 个修改的文件
包含
6 行增加
和
3 行删除
@@ -477,6 +477,7 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess) | @@ -477,6 +477,7 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess) | ||
477 | TaskLeader: taskList[0].Leader, | 477 | TaskLeader: taskList[0].Leader, |
478 | AssistLevel: 0, | 478 | AssistLevel: 0, |
479 | AssistContent: "", | 479 | AssistContent: "", |
480 | + AnomalyState: domain.AnomalyState1, | ||
480 | TaskStages: []domain.TaskStage{}, | 481 | TaskStages: []domain.TaskStage{}, |
481 | TaskStageCheck: domain.TaskStage{}, | 482 | TaskStageCheck: domain.TaskStage{}, |
482 | } | 483 | } |
@@ -462,7 +462,7 @@ func (d *TaskDao) TaskAnomalyByLeader(leaderId []string, anomaly int) ([]TaskDat | @@ -462,7 +462,7 @@ func (d *TaskDao) TaskAnomalyByLeader(leaderId []string, anomaly int) ([]TaskDat | ||
462 | return result, err | 462 | return result, err |
463 | } | 463 | } |
464 | 464 | ||
465 | -// 统计任务异常的数量,以非hrbp角色统计 | 465 | +// 统计任务反馈异常的数量,以非hrbp角色统计 |
466 | func (d *TaskDao) CountTaskAnomalyNotHrbp(param ListTaskCondition) (int, error) { | 466 | func (d *TaskDao) CountTaskAnomalyNotHrbp(param ListTaskCondition) (int, error) { |
467 | task1 := d.catchTaskIdByPermission(param.UserId) | 467 | task1 := d.catchTaskIdByPermission(param.UserId) |
468 | withSql := task1 + ` select count(*) | 468 | withSql := task1 + ` select count(*) |
@@ -487,7 +487,7 @@ func (d *TaskDao) CountTaskAnomalyNotHrbp(param ListTaskCondition) (int, error) | @@ -487,7 +487,7 @@ func (d *TaskDao) CountTaskAnomalyNotHrbp(param ListTaskCondition) (int, error) | ||
487 | return cnt, err | 487 | return cnt, err |
488 | } | 488 | } |
489 | 489 | ||
490 | -// 统计任务异常的数量,以hrbp角色统计 | 490 | +// 统计任务反馈异常的数量,以hrbp角色统计 |
491 | func (d *TaskDao) CountTaskAnomalyByHrbp(param ListTaskCondition) (int, error) { | 491 | func (d *TaskDao) CountTaskAnomalyByHrbp(param ListTaskCondition) (int, error) { |
492 | withSql := `with | 492 | withSql := `with |
493 | t_task_ignore as ( | 493 | t_task_ignore as ( |
@@ -130,7 +130,9 @@ func (repo *TaskRepository) Find(queryOptions map[string]interface{}) (int, []*d | @@ -130,7 +130,9 @@ func (repo *TaskRepository) Find(queryOptions map[string]interface{}) (int, []*d | ||
130 | if val, ok := queryOptions["companyId"]; ok { | 130 | if val, ok := queryOptions["companyId"]; ok { |
131 | query.Where("task.company_id = ?", val) | 131 | query.Where("task.company_id = ?", val) |
132 | } | 132 | } |
133 | - | 133 | + if val, ok := queryOptions["id"]; ok { |
134 | + query.Where("task.id=?", val) | ||
135 | + } | ||
134 | if val, ok := queryOptions["leaderId"]; ok { | 136 | if val, ok := queryOptions["leaderId"]; ok { |
135 | query.Where("task.leader->>'id'=?", val) | 137 | query.Where("task.leader->>'id'=?", val) |
136 | } | 138 | } |
-
请 注册 或 登录 后发表评论