|
|
|
@ -107,6 +107,11 @@ class Mailer < ActionMailer::Base
|
|
|
|
|
and (i.updated_on between '#{date_from}' and '#{date_to}') order by i.updated_on desc"
|
|
|
|
|
@issues = Issue.find_by_sql(sql)
|
|
|
|
|
|
|
|
|
|
# issue回复
|
|
|
|
|
@issues_journals = Journal.find_by_sql("select j.* from journals j, members m, projects p, issues i
|
|
|
|
|
where m.user_id = '#{user.id}' and p.id = m.project_id and i.project_id = p.id and j.journalized_id = i.id
|
|
|
|
|
and j.journalized_type='Issue' and (j.created_on between '#{date_from}' and '#{date_to}') order by updated_on desc")
|
|
|
|
|
|
|
|
|
|
# @bids 查询课程作业,包括老师发布的作业,以及user提交作业
|
|
|
|
|
# @attachments查询课程课件更新
|
|
|
|
|
@attachments ||= []
|
|
|
|
|