正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -268,7 +268,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ | @@ -268,7 +268,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ | ||
| 268 | sqlStr1 += ` and t_task.leader_id in (?) ` | 268 | sqlStr1 += ` and t_task.leader_id in (?) ` |
| 269 | } | 269 | } |
| 270 | condition = append(condition, limit, offset) | 270 | condition = append(condition, limit, offset) |
| 271 | - sqlStr1 += ` order by task.sort_by ,task_anomaly.id desc limit ? offset ? ` | 271 | + sqlStr1 += ` order by t_task.task_sort_by ,task_anomaly.id desc limit ? offset ? ` |
| 272 | 272 | ||
| 273 | result := []ListTaskAnomaly{} | 273 | result := []ListTaskAnomaly{} |
| 274 | tx := d.transactionContext.PgTx | 274 | tx := d.transactionContext.PgTx |
| @@ -431,7 +431,7 @@ func (d TaskAnomalyDao) SearchForUser(userId int, companyId int, taskName string | @@ -431,7 +431,7 @@ func (d TaskAnomalyDao) SearchForUser(userId int, companyId int, taskName string | ||
| 431 | task_anomaly.created_at | 431 | task_anomaly.created_at |
| 432 | from t_task | 432 | from t_task |
| 433 | join task_anomaly on t_task.task_id= task_anomaly.task_id | 433 | join task_anomaly on t_task.task_id= task_anomaly.task_id |
| 434 | - where t_task.task_alias like ?` | 434 | + where t_task.task_alias like ?` |
| 435 | condition := []interface{}{userId, userId, companyId, fmt.Sprintf("[%d]", userId)} | 435 | condition := []interface{}{userId, userId, companyId, fmt.Sprintf("[%d]", userId)} |
| 436 | condition = append(condition, "%"+taskName+"%") | 436 | condition = append(condition, "%"+taskName+"%") |
| 437 | result := []ListTaskAnomaly{} | 437 | result := []ListTaskAnomaly{} |
-
请 注册 或 登录 后发表评论