...
|
...
|
@@ -118,7 +118,7 @@ func (d *TaskAnomalyDao) List1(userId int, companyId int, taskName string, categ |
|
|
|
|
|
}
|
|
|
condition = append(condition, limit, offset)
|
|
|
sqlStr1 += ` order by task_anomaly.id desc limit ? offset ? `
|
|
|
sqlStr1 += ` order by task_anomaly.id desc,task.sort_by limit ? offset ? `
|
|
|
result := []ListTaskAnomaly{}
|
|
|
tx := d.transactionContext.PgTx
|
|
|
_, err := tx.Query(&result, sqlStr1, condition...)
|
...
|
...
|
@@ -268,7 +268,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ |
|
|
sqlStr1 += ` and t_task.leader_id in (?) `
|
|
|
}
|
|
|
condition = append(condition, limit, offset)
|
|
|
sqlStr1 += ` order by task_anomaly.id desc limit ? offset ? `
|
|
|
sqlStr1 += ` order by task_anomaly.id desc,t_task.task_sort_by limit ? offset ? `
|
|
|
|
|
|
result := []ListTaskAnomaly{}
|
|
|
tx := d.transactionContext.PgTx
|
...
|
...
|
@@ -356,7 +356,7 @@ func (d *TaskAnomalyDao) List3(userId int, companyId int, taskName string, categ |
|
|
sqlStr2 += ` and task.leader->>'id' in (?) `
|
|
|
}
|
|
|
condition = append(condition, limit, offset)
|
|
|
sqlStr1 += ` order by task_anomaly.id desc limit ? offset ? `
|
|
|
sqlStr1 += ` order by task_anomaly.id desc,task.sort_by limit ? offset ? `
|
|
|
result := []ListTaskAnomaly{}
|
|
|
tx := d.transactionContext.PgTx
|
|
|
_, err := tx.Query(&result, sqlStr1, condition...)
|
...
|
...
|
|