正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -167,7 +167,7 @@ func (repository *TaskRepository) Find(queryOptions map[string]interface{}) (int | @@ -167,7 +167,7 @@ func (repository *TaskRepository) Find(queryOptions map[string]interface{}) (int | ||
167 | query = query.Where(`task.participators @> '[{"uid":?}]'`, participator) | 167 | query = query.Where(`task.participators @> '[{"uid":?}]'`, participator) |
168 | } | 168 | } |
169 | if assignedPerson, ok := queryOptions["assignedPerson"]; ok && (assignedPerson != int64(0)) { | 169 | if assignedPerson, ok := queryOptions["assignedPerson"]; ok && (assignedPerson != int64(0)) { |
170 | - query = query.Where(`task.assignedPerson @> '{"uid":?}'`, assignedPerson) | 170 | + query = query.Where(`task.assigned_person @> '{"uid":?}'`, assignedPerson) |
171 | } | 171 | } |
172 | if taskIds, ok := queryOptions["taskIds"]; ok { | 172 | if taskIds, ok := queryOptions["taskIds"]; ok { |
173 | query = query.Where(`task.id IN (?)`, pg.In(taskIds.([]int64))) | 173 | query = query.Where(`task.id IN (?)`, pg.In(taskIds.([]int64))) |
-
请 注册 或 登录 后发表评论