缺陷状态更新后,按天发送邮件通知

This commit is contained in:
huang 2015-06-15 10:53:57 +08:00
parent 75c8d6f422
commit aacd3af1fe
1 changed files with 1 additions and 1 deletions

View File

@ -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提交作业