...
|
...
|
@@ -125,7 +125,7 @@ func (d *TaskDao) ListTaskStageNotHrbp(param ListTaskCondition) ([]ListTaskStage |
|
|
join t_task_1 on task.id=t_task_1.id
|
|
|
join task_stage on task.id =task_stage.task_id
|
|
|
where 1=1 and task.company_id=?
|
|
|
order by diff_time,task."level",task.created_at
|
|
|
order by diff_time,task."level",task.created_at desc
|
|
|
),
|
|
|
-- 按任务数据分页获取
|
|
|
t_task_page as (
|
...
|
...
|
@@ -234,7 +234,7 @@ func (d *TaskDao) ListTaskStageByHrbp(param ListTaskCondition) ([]ListTaskStage, |
|
|
from task
|
|
|
join task_stage on task.id =task_stage.task_id
|
|
|
where 1=1 and task.company_id=?
|
|
|
order by diff_time,task."level",task.created_at
|
|
|
order by diff_time,task."level",task.created_at desc
|
|
|
),
|
|
|
-- 按任务数据分页获取
|
|
|
t_task_page as (
|
...
|
...
|
@@ -274,7 +274,7 @@ func (d *TaskDao) ListTaskStageByHrbp(param ListTaskCondition) ([]ListTaskStage, |
|
|
}
|
|
|
if param.SearchWord != "" {
|
|
|
condition = append(condition, param.SearchWord, param.SearchWord)
|
|
|
whereSql += ` and (t_task_tage_1.leader_name like ? or t_task_tage_1.task_alias_name like ?)`
|
|
|
whereSql += ` and (t_task_tage_1.leader_name like ? or t_task_tage_1.task_alias_name like ?) `
|
|
|
}
|
|
|
condition = append(condition, param.Limit, param.Offset)
|
|
|
sqlStr := fmt.Sprintf(withSql, whereSql)
|
...
|
...
|
@@ -374,6 +374,9 @@ func (d *TaskDao) CountTaskStageAnomalyByHrbp(param ListTaskCondition) (int, err |
|
|
}
|
|
|
|
|
|
func (d *TaskDao) IncreaseAnomaly(id []int, incr int) error {
|
|
|
if len(id) == 0 {
|
|
|
return nil
|
|
|
}
|
|
|
sqlStr := `update task set anomaly=task.anomaly+?
|
|
|
where id in(?)`
|
|
|
tx := d.transactionContext.PgTx
|
...
|
...
|
|