Class: EricWeixin::Cms::Weixin::CustomsServiceRecordsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/eric_weixin/cms/weixin/customs_service_records_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
# File 'app/controllers/eric_weixin/cms/weixin/customs_service_records_controller.rb', line 3

def index
  options = params.permit(:public_account_id, :opercode, :chat_date, :chat_content, :worker, :nick_name)
  @customs_service_records = ::EricWeixin::CustomsServiceRecord.common_query options
  @customs_service_records = @customs_service_records.order(:time).paginate(page: params[:page], per_page:20)
end