动态一致问题

This commit is contained in:
huang 2016-04-01 11:54:58 +08:00
parent aee695e94d
commit a9412b959e
1 changed files with 2 additions and 1 deletions

View File

@ -165,7 +165,8 @@ class OrganizationsController < ApplicationController
def get_project_activities_org org
project_ids = org.projects.map{|project| project.id}.join(",")
unless project_ids.blank?
project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{project_ids}) and container_type = 'project' order by updated_at desc limit 8;")
project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{project_ids}) and container_type = 'project'
and org_act_type in ('Message', 'Issue') order by updated_at desc limit 8;")
else
project_acts = nil
end