作者 tangxvhui

调整sql 错误

@@ -241,7 +241,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ @@ -241,7 +241,7 @@ func (d *TaskAnomalyDao) List2(userId int, companyId int, taskName string, categ
241 select count(*) as cnt 241 select count(*) as cnt
242 from t_task 242 from t_task
243 join task_anomaly on t_task.task_id= task_anomaly.task_id ` 243 join task_anomaly on t_task.task_id= task_anomaly.task_id `
244 - condition := []interface{}{userId, userId, companyId} 244 + condition := []interface{}{userId, userId, companyId, subLevel}
245 if len(dayTime) > 0 { 245 if len(dayTime) > 0 {
246 condition = append(condition, dayTime) 246 condition = append(condition, dayTime)
247 sqlStr2 += ` and to_char(task_anomaly.created_at,'yyyy-MM-dd') =? ` 247 sqlStr2 += ` and to_char(task_anomaly.created_at,'yyyy-MM-dd') =? `