...
|
...
|
@@ -663,7 +663,7 @@ func (d *TaskDao) ListTaskIgnore(param ListTaskCondition) ([]ListTask, error) { |
|
|
t_task_ignore as(
|
|
|
select task_ignore.task_id
|
|
|
from task_ignore
|
|
|
where user_id =3252522494124032
|
|
|
where user_id =?
|
|
|
)select
|
|
|
task.id as task_id ,
|
|
|
task.alias ,
|
...
|
...
|
@@ -681,7 +681,7 @@ func (d *TaskDao) ListTaskIgnore(param ListTaskCondition) ([]ListTask, error) { |
|
|
from task
|
|
|
join t_task_ignore on t_task_ignore.task_id=task.id
|
|
|
where 1=1 and task.company_id=? and task.deleted_at isnull `
|
|
|
condition := []interface{}{param.CompanyId}
|
|
|
condition := []interface{}{param.UserId, param.CompanyId}
|
|
|
whereSql := ``
|
|
|
if param.OnlyMy {
|
|
|
condition = append(condition, param.UserId)
|
...
|
...
|
@@ -709,13 +709,13 @@ func (d *TaskDao) CountTaskIgnore(param ListTaskCondition) (int, error) { |
|
|
t_task_ignore as(
|
|
|
select task_ignore.task_id
|
|
|
from task_ignore
|
|
|
where user_id =3252522494124032
|
|
|
where user_id =?
|
|
|
)select
|
|
|
count(*) as cnt
|
|
|
from task
|
|
|
join t_task_ignore on t_task_ignore.task_id=task.id
|
|
|
where 1=1 and task.company_id=? and task.deleted_at isnull `
|
|
|
condition := []interface{}{param.CompanyId}
|
|
|
condition := []interface{}{param.UserId, param.CompanyId}
|
|
|
whereSql := ``
|
|
|
if param.OnlyMy {
|
|
|
condition = append(condition, param.UserId)
|
...
|
...
|
|