|
|
@ -124,8 +124,8 @@ class Mailer < ActionMailer::Base
|
|
|
|
attachments = courses[i].attachments.where("attachments.created_on between '#{date_from}' and '#{date_to}'").order('attachments.created_on DESC')
|
|
|
|
attachments = courses[i].attachments.where("attachments.created_on between '#{date_from}' and '#{date_to}'").order('attachments.created_on DESC')
|
|
|
|
@bids += bids if bids.count > 0
|
|
|
|
@bids += bids if bids.count > 0
|
|
|
|
@attachments += attachments if attachments.count > 0
|
|
|
|
@attachments += attachments if attachments.count > 0
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
@bids.sort {|a, b| a.created_at <=> b.created_at}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# 项目附件
|
|
|
|
# 项目附件
|
|
|
|