From 0685feaf6890fe2ee7bdb4fce9153c19bc596bfb Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 30 Jun 2017 10:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=8F=91=E5=B8=83=E8=A2=AB?= =?UTF-8?q?=E8=B6=85=E7=BA=A7=E7=AE=A1=E7=90=86=E5=91=98=E6=8B=92=E7=BB=9D?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=9B=A0=E7=B3=BB=E7=BB=9F=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=9C=AA=E4=B8=8A=EF=BC=8C=E8=AF=B7=E5=B0=86=E6=8B=92=E7=BB=9D?= =?UTF-8?q?=E5=8E=9F=E5=9B=A0=E4=BB=A5=E7=95=99=E8=A8=80=E7=9A=84=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F=E5=8F=91=E9=80=81=E7=BB=99=E6=95=B4=E4=B8=AA=E5=90=88?= =?UTF-8?q?=E4=BD=9C=E5=9B=A2=E9=98=9F=E7=9A=84=E6=88=90=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 2836158a7..2cc980981 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 class ManagementsController < ApplicationController before_filter :require_admin layout 'base_management' @@ -242,6 +243,10 @@ class ManagementsController < ApplicationController if type == 0 shixun.update_column('status', 0) apply_action.update_attributes(:status => 2, :reason => params[:reject_reason], :dealer_id => User.current.id) + notes = "您所在团队提交的项目实训发布申请:#{shixun.name},审核未通过。
原因:#{params[:reject_reason]}" + shixun.shixun_members.each do |member| + JournalsForMessage.create(:jour_id => member.user_id, :jour_type => 'Principal', :user_id => User.current.id, :notes => notes, :private => 1, :reply_id => 0) + end else shixun.update_column('status', 2) apply_action.update_attributes(:status => 1, :dealer_id => User.current.id)