缺陷状态更新后,按天发送邮件通知
This commit is contained in:
parent
75c8d6f422
commit
aacd3af1fe
|
@ -104,7 +104,7 @@ class Mailer < ActionMailer::Base
|
|||
|
||||
# 查询user的缺陷,项目中成员都能收到
|
||||
sql = "select DISTINCT * from members m, issues i where i.project_id = m.project_id and m.user_id='#{user.id}'
|
||||
and (i.created_on between '#{date_from}' and '#{date_to}') order by i.created_on desc"
|
||||
and (i.updated_on between '#{date_from}' and '#{date_to}') order by i.updated_on desc"
|
||||
@issues = Issue.find_by_sql(sql)
|
||||
|
||||
# @bids 查询课程作业,包括老师发布的作业,以及user提交作业
|
||||
|
|
Loading…
Reference in New Issue