作者 linmadan

修复指派任务搜索参数bug

@@ -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)))