切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
25786d0657ec4c2a4bbc6e5ecbe0094b66916ae3
1 个父辈
f78cf9bf
调整sql
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
pkg/infrastructure/dao/task_dao.go
pkg/infrastructure/dao/task_dao.go
查看文件 @
25786d0
...
...
@@ -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
)
...
...
请
注册
或
登录
后发表评论