正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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') =? ` |
-
请 注册 或 登录 后发表评论