作者 tangxvhui

调整sql 错误

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